Thank you a lot for the help, IT WORKED!!!! Weeeeee
//jd On Mon, 8 Mar 2004, Hans Werner Strube wrote: > > From: Jockum Djupsund Sun, 7 Mar 2004 09:58:38 +0100 (CET) > > > I have encountered problems during compilation of IP Filter 4.1 on Soalris > > 9 on X86 hardware, I have tried different versions of gcc ( 3.3 3.2.3 > > 3.2.1) but I still get the following error > > > > > > (cd SunOS5/i386-5.9; make build TOP=../.. "CC=gcc" 'CFLAGS=-I$(TOP) > > -D_BSD_SOURCE -DSOLARIS2=9 ' "IPFLOG=-DIPFILTER_LOG" > > "LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_BLOCK" > > "SOLARIS2=-DSOLARIS2=9" "DEBUG=-g" "DCPU=" "LIBBPF=" "CPUDIR=i386-5.9" > > "IPFBPF=" 'STATETOP_CFLAGS=' "BPFILTER=" 'STATETOP_INC=' 'STATETOP_LIB=' > > "BITS=32" "OBJ=." "LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN" "COMPIPF=" > > 'SYNC=' 'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_COMPILED -DIPFILTER_LOOKUP > > -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' > > "IPFLKM=-DIPFILTER_LKM" "SOLARIS2=-DSOLARIS2=9" "CPU=-Di86pc -Di386 > > -D__i386__"; cd ..) > > gcc -I. -g -I../.. -D_BSD_SOURCE -DSOLARIS2=9 -DIPFILTER_LOG > > -DIPFILTER_COMPILED -DIPFILTER_LOOKUP -DIPFILTER_SCAN -DIPFILTER_SYNC > > -DIPFILTER_CKSUM -c ../../ip_rules.c -o ip_rules_u.o > > In file included from /usr/include/sys/devops.h:20, > > from > > /usr/local/lib/gcc-lib/i386-pc-solaris2.9/3.2.3/include/sys/ddi_impldefs.h:24, > > from /usr/include/sys/promif.h:16, > > from /usr/include/inet/ip.h:1854, > > from ../../netinet/ip_compat.h:166, > > from ../../ip_rules.c:30: > > Try preventing inclusion of /usr/include/sys/promif.h. There are two ways: > (1) in (ipf top)/sys, make an empty promif.h; > (2) in the Makefile, add -D_SYS_PROMIF_H after CFLAGS=-I$$(TOP) . > > I have reported this several times in this mailing list for Solaris 7_x86. > Darren: this may convince you that this is necessary even on more recent > Solaris x86 versions. >
