Hi, all
I use gcc to compile pfil as pre-requisite by IP Filter on Solaris 9
SPARC (UltraSPARC IIi, Blade 100). I got an error message:
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 -m64 -mcmodel=medlow
-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 -m64
-mcmodel=medlow -DDO=pfil64 -c ../pfil.c -o pfil.o
cc1: -m64 is not supported by this configuration
cc1: -mptr32 not allowed on -m64
cc1: -mcmodel= is not supported on 32 bit systems
../pfil.c: In function `pfil_report':
../pfil.c:130: internal error--unrecognizable insn:
(insn 31 29 33 (set (reg:DI 10 %o2)
(symbol_ref:DI ("*.LLC0"))) -1 (nil)
(nil))
*** Error code 1
make: Fatal error: Command failed for target `pfil.o'
Current working directory /export/home/rc6/pfil/SunOS
*** Error code 1
make: Fatal error: Command failed for target `SunOS64'
Current working directory /export/home/rc6/pfil
*** Error code 1 (ignored)
Can anyone help me out? Thanks.
Ryan
This message (including any attachments) is intended
solely for the specific individual(s) or entity(ies) named
above, and may contain legally privileged and
confidential information. If you are not the intended
recipient, please notify the sender immediately by
replying to this message and then delete it.
Any disclosure, copying, or distribution of this message, or the taking of any
action based on it, by other than the
intended recipient, is strictly prohibited.