hi! gcc 2.95 cannot build 64bit-code - you should use gcc 3.x
regards andy On Tue, March 29, 2005 12:59, jing shen said: > Hi�� > > I'm trying to install IPFilter onto one of my Solaris 9 box. > > The Solaris is 64-bit with gcc2.95.3 installed. I download > ipfiter 4.1.4 & ipfilter4.1.7. > > After executing "CC=gcc make solaris" it shows it miss pfil; > When I tried to compile pfil-2.1.6.tar.gz, it failed to compile > pfil.o. ( I include it below) > > would anybody could do any help? > > > ======================================= > bash-2.05$ cd pfil > bash-2.05$ CC=gcc make package > i=`uname -s`; case $i in HP-UX) make hpux;; *) make $i;; esac > make SunOS`optisa sparcv9 >/dev/null 2>&1; if [ $? -eq 0 ] ; then echo "64"; > else echo "32"; fi` > (cd SunOS; make pfil "BITS=32" OS=solaris DO=pfil "ADEF=-I.. -I. -D_KERNEL > -DSUNDDI -DSOLARIS2="`uname -r | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/'`" > -DPFILDEBUG") > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c ../pfil.c -o > pfil.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c qif.c -o qif.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c pfildrv.c -o > pfildrv.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c ../pfilstream.c > -o pfilstream.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c pkt.c -o pkt.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c ../misc.c -o > misc.o > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -c ../ndd.c -o > ndd.o > ld -r pfil.o qif.o pfildrv.o pfilstream.o pkt.o misc.o ndd.o -o pfil32 > /bin/rm -f SunOS/*.o > (cd SunOS; make pfil`optisa sparcv9 >/dev/null 2>&1; if [ $? -eq 0 ] ; then > echo "64"; else echo "32"; fi` "BITS=64" OS=solaris DO=pfil64 "ADEF=-I.. -I. > -D_KERNEL -DSUNDDI -DSOLARIS2="`uname -r | sed -e > 's/[0-9]*\.\([0-9]*\).*/\1/'`" -DPFILDEBUG -xildoff -xarch=v9 -xchip=ultra > -dalign -xcode=abs32 -DDO=pfil`optisa sparcv9 >/dev/null 2>&1; if [ $? -eq 0 ] > ; then echo "64"; else echo "32"; fi`") > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c ../pfil.c -o pfil.o > gcc: language code=abs32 not recognized > gcc: ../pfil.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c qif.c -o qif.o > gcc: language code=abs32 not recognized > gcc: qif.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c pfildrv.c -o pfildrv.o > gcc: language code=abs32 not recognized > gcc: pfildrv.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c ../pfilstream.c -o > pfilstream.o > gcc: language code=abs32 not recognized > gcc: ../pfilstream.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c pkt.c -o pkt.o > gcc: language code=abs32 not recognized > gcc: pkt.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c ../misc.c -o misc.o > gcc: language code=abs32 not recognized > gcc: ../misc.c: linker input file unused since linking not done > gcc -I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DPFILDEBUG -xildoff -xarch=v9 > -xchip=ultra -dalign -xcode=abs32 -DDO=pfil64 -c ../ndd.c -o ndd.o > gcc: language code=abs32 not recognized > gcc: ../ndd.c: linker input file unused since linking not done > ld -r pfil.o qif.o pfildrv.o pfilstream.o pkt.o misc.o ndd.o -o pfil64 > ld: fatal: file pfil.o: open failed: No such file or directory > *** Error code 1 > make: Fatal error: Command failed for target `pfil64' > Current working directory /disk1/sj/pfil/SunOS > *** Error code 1 > make: Fatal error: Command failed for target `SunOS64' > Current working directory /disk1/sj/pfil > *** Error code 1 (ignored) > (cd `uname -s`; make package-`uname -s`) > gcc -c ../pfil.c -o pfil.o > In file included from ../pfil.c:53: > ../compat.h:10: os.h: No such file or directory > *** Error code 1 > make: Fatal error: Command failed for target `pfil.o' > Current working directory /disk1/sj/pfil/SunOS > *** Error code 1 > make: Fatal error: Command failed for target `package' > bash-2.05$ > > > ========================================= > > > -- > -- -- > Regards > > > Joe Shen > > ****************************************** > * The sunshine of lifetime is made up of * > * little beams which is bright all the * > * time. * > ****************************************** > > > > -- bashian roulette: $ ((RANDOM%6)) || rm -rf ~
