Not sure if version 5 is meant to run on Solaris 10, but it doesn't
seem to with either the recent release of gcc (3.4.6) or Studio 11's
cc:

For example, make solaris with gcc it fails at the definition of
u_int8_t in ip_compat.h:

MAKE="make" MAKEFLAGS="" BPFILTER= \
      CC="gcc -Wstrict-prototypes -Wmissing-prototypes -Wunused
-Wuninitialized" DEBUG="-g" ./buildsunos
make ok
(cd SunOS5/i386-5.10; make build TOP=../.. "CC=gcc"  'CFLAGS=-I$(TOP)
-D_BSD_SOURCE  -DSOLARIS2=10  '  "IPFLOG=-DIPFILTER_LOG"
"LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS"
"SOLARIS2=-DSOLARIS2=10" "DEBUG=-g" "DCPU="  "LIBBPF="
"CPUDIR=i386-5.10" "IPFBPF="  'STATETOP_CFLAGS=' "BPFILTER="
'STATETOP_INC=' 'STATETOP_LIB='  "BITS=32" "OBJ=."
"LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN" "COMPIPF="  'SYNC='
'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP  -DIPFILTER_SCAN
-DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' "IPFLKM=-DIPFILTER_LKM"
"SOLARIS2=-DSOLARIS2=10" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10 -c ../../lib/addicmp.c
-o addicmp.o
In file included from ../../ipf.h:69,
               from ../../lib/addicmp.c:11:
../../netinet/ip_compat.h:2486: error: syntax error before "u_int8_t"
../../netinet/ip_compat.h:2486: warning: no semicolon at end of struct or union
../../netinet/ip_compat.h:2487: warning: data definition has no type
or storage class
../../netinet/ip_compat.h:2488: error: syntax error before "ip6r_type"
../../netinet/ip_compat.h:2488: warning: data definition has no type
or storage class
../../netinet/ip_compat.h:2489: error: syntax error before "ip6r_segleft"
../../netinet/ip_compat.h:2489: warning: data definition has no type
or storage class
../../netinet/ip_compat.h:2490: error: syntax error before "ip6r_reserved"
../../netinet/ip_compat.h:2490: warning: data definition has no type
or storage class
*** Error code 1
make: Fatal error: Command failed for target `addicmp.o'
Current working directory /mydir/ipfilter-compile/ip_fil5.0/SunOS5/i386-5.10
*** Error code 1
make: Fatal error: Command failed for target `sunos5x86'
Current working directory /mydir/ipfilter-compile/ip_fil5.0
*** Error code 1
make: Fatal error: Command failed for target `solaris'

Reply via email to