LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 725|回复: 0

我安装Electric Fence出现个问题,麻烦各位帮帮忙,多谢!

[复制链接]
发表于 2004-6-13 17:11:11 | 显示全部楼层 |阅读模式
编译过程出现这个问题:
gcc -g -DUSE_SEMAPHORE -fPIC -c efence.c -o efence.o
gcc -g -DUSE_SEMAPHORE -fPIC -c page.c -o page.o
gcc -g -DUSE_SEMAPHORE -fPIC -c print.c -o print.o
print.c: In function `EF_Printv':
print.c:114: warning: `char' is promoted to `int' when passed through `...'
print.c:114: warning: (so you should pass `int' not `char' to `va_arg')
gcc -g -DUSE_SEMAPHORE -fPIC -c tstheap.c -o tstheap.o
gcc -g -DUSE_SEMAPHORE -fPIC -c eftest.c -o eftest.o
rm -f libefence.a
ar crv libefence.a efence.o page.o print.o
a - efence.o
a - page.o
a - print.o
gcc -g -shared -Wl,-soname,libefence.so.0 -o libefence.so.0.0 \
efence.o page.o print.o -lpthread -lc
rm -f tstheap
gcc -g -DUSE_SEMAPHORE -fPIC tstheap.o libefence.a -o tstheap -lpthread
libefence.a(page.o)(.text+0x30): In function `stringErrorReport':
/var/tmp/portage/efence-2.2.2/work/ElectricFence-2.2.2/page.c:46: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
libefence.a(page.o)(.text+0x24):/var/tmp/portage/efence-2.2.2/work/ElectricFence-2.2.2/page.c:45: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
rm -f eftest
gcc -g -DUSE_SEMAPHORE -fPIC eftest.o libefence.a -o eftest -lpthread
libefence.a(page.o)(.text+0x30): In function `stringErrorReport':
/var/tmp/portage/efence-2.2.2/work/ElectricFence-2.2.2/page.c:46: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
libefence.a(page.o)(.text+0x24):/var/tmp/portage/efence-2.2.2/work/ElectricFence-2.2.2/page.c:45: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead

Testing Electric Fence.
After the last test, it should print that the test has PASSED.
./eftest

Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce@perens.com>
make: *** [all] 段错误 (core dumped)

!!! ERROR: dev-util/efence-2.2.2 failed.
!!! Function src_compile, Line 21, Exitcode 2
!!! emake failed
能解决吗?非常感谢,我非常需要这个工具。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表