lmtwl
谢谢大虾,帮看下make pfil时候gcc出现问题。谢谢
在make pfil的时候,到了最后出现错误。
cd `uname -s`; make package-`uname -s`)
make[1]: Entering directory `/root/pfil/SunOS'
gcc -c ../pfil.c -o pfil.o
In file included from /usr/include/sys/reg.h:13,
from /usr/include/sys/pcb.h:11,
from /usr/include/sys/klwp.h:16,
from /usr/include/sys/thread.h:13,
from /usr/include/sys/proc.h:20,
from /usr/include/sys/systm.h:19,
from ../pfil.c:17:
/usr/include/ia32/sys/reg.h:300: error: syntax error before "upad128_t"
/usr/include/ia32/sys/reg.h:302: error: syntax error before '}' token
/usr/include/ia32/sys/reg.h:309: error: field `kfpu_fx' has incomplete type
/usr/include/ia32/sys/reg.h:331: error: syntax error before "upad128_t"
/usr/include/ia32/sys/reg.h:338: error: syntax error before '}' token
/usr/include/ia32/sys/reg.h:339: error: syntax error before '}' token
/usr/include/ia32/sys/reg.h:376: error: syntax error before "fpregset_t"
In file included from /usr/include/sys/klwp.h:19,
from /usr/include/sys/thread.h:13,
from /usr/include/sys/proc.h:20,
from /usr/include/sys/systm.h:19,
from ../pfil.c:17:
/usr/include/sys/ucontext.h:69: error: syntax error before "mcontext_t"
/usr/include/sys/ucontext.h:71: error: syntax error before '}' token
In file included from ../pfil.c:53:
../compat.h:10:16: os.h: No such file or directory
In file included from ../pfil.c:54:
../qif.h:164: error: syntax error before '*' token
../pfil.c: In function `pfil_list_add':
../pfil.c:226: error: syntax error before "struct"
make[1]: *** [pfil.o] Error 1
make[1]: Leaving directory `/root/pfil/SunOS'
make: *** [package] Error 2
应该怎么解决。。。。。。。。。。。
lmtwl
我看IP Filter FAQ
说我gcc版本太老~~~~~~~~~~~(我安装是gcc 3.4.6)叫我重建GCC。
应该怎么办,用那个版本的GCC
把我的GCC版本发出来
# gcc -v
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.9/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
[[i] 本帖最后由 lmtwl 于 2008-1-31 12:41 编辑 [/i]]
race
下载README里面对应的gcc版本再安装