Trying 4.1.31 on Solaris 10 10/08 x86 using GCC native to this release of solaris... build command was simply 'make solaris'.

It seems this file:
"/usr/include/inet/ip_ire.h"  has been causing issues.

#pragma ident   "@(#)ip_ire.h   1.62    08/12/10 SMI"

It was updated recently during a patch upgrade.

Here is where it fails:

gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10   \
        -c ../../tools/ipfstat.c -o ipfstat.o
gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 ./ipfstat.o -o ipfstat -lsocket -lnsl -lelf -L. -lipf -lkvm gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -c ../../tools/ipftest.c -o ipftest.o gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=10 -DIPFILTER_LOG -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM -c ../../ip_fil.c -o ip_fil_u.o
In file included from ../../netinet/ip_compat.h:181,
                 from ../../ip_fil.c:115:
/usr/include/inet/ip_ire.h:186: error: syntax error before '*' token
/usr/include/inet/ip_ire.h:190: error: syntax error before '}' token
*** Error code 1
make: Fatal error: Command failed for target `ip_fil_u.o'
Current working directory /junk/ip_fil4.1.31/SunOS5/i386-5.10
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /junk/ip_fil4.1.31
*** Error code 1
make: Fatal error: Command failed for target `solaris'



-JD

Reply via email to