- 论坛徽章:
- 0
|
刚用vmware5安装了solaris9 由于没有自带ipfilter,于是下了ip_fil4.1.29.tar.gz,pfil-2.1.6.tar.gz,
make-3.81-sol9-x86-local.gz,gcc-3.4.6-sol9-x86-local.gz。
安装好gcc与make后,通过gzip,tar等解压了pfil,进入解压后的pfil文件夹make有错误(不是找不到CC命令问题),请问是什么原因?应如何解决?
错误如下
i=`uname -s`; case $i in HP-UX) make hpux;; *) make $i;; esac
make[1]: Entering directory `/opt/tmp/pfil'
make SunOS`optisa sparcv9 >/dev/null 2>&1; if [ $? -eq 0 ] ; then echo "64"; els
e echo "32"; fi`
make[2]: Entering directory `/opt/tmp/pfil'
(cd SunOS; make pfil "BITS=32" OS=solaris DO=pfil "ADEF=-I.. -I. -D_KERNEL -DSUN
DDI -DSOLARIS2="`uname -r | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/'`" -DPFILDEBUG")
make[3]: Entering directory `/opt/tmp/pfil/SunOS'
gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -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/semaphore.h:18,
from /usr/include/sys/t_lock.h:22,
from /usr/include/sys/systm.h:18,
from ../pfil.c:17:
/usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t"
/usr/include/ia32/sys/reg.h:302: error: parse 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: parse error before "upad128_t"
/usr/include/ia32/sys/reg.h:338: error: parse error before '}' token
/usr/include/ia32/sys/reg.h:339: error: parse error before '}' token
/usr/include/ia32/sys/reg.h:376: error: parse 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/semaphore.h:18,
from /usr/include/sys/t_lock.h:22,
from /usr/include/sys/systm.h:18,
from ../pfil.c:17:
/usr/include/sys/ucontext.h:69: error: parse error before "mcontext_t"
/usr/include/sys/ucontext.h:71: error: parse error before '}' token
In file included from /usr/include/sys/promif.h:17,
from /usr/include/inet/ip.h:1902,
from ../pfil.c:50:
/usr/include/sys/archsystm.h:64: error: parse error before "fpregset_t"
/usr/include/sys/archsystm.h:65: error: parse error before "fpregset_t"
make[3]: *** [pfil.o] Error 1
make[3]: Leaving directory `/opt/tmp/pfil/SunOS'
make[2]: *** [SunOS32] Error 2
make[2]: Leaving directory `/opt/tmp/pfil'
make[1]: [SunOS] Error 2 (ignored)
make[1]: Leaving directory `/opt/tmp/pfil'
[ 本帖最后由 上错花轿 于 2008-7-8 09:43 编辑 ] |
|