marcus,


i just ran through this same config, no problem. see below.

regards,
jim


(ronin)$ uname -a SunOS ronin 5.8 Generic_108529-23 i86pc i386 i86pc

(ronin)$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.8/3.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=
/usr/ccs/bin/ld
Thread model: posix
gcc version 3.3


(ronin)$ tar xf ip-fil3.4.33pre1.tar

(ronin)$ cd ip_fil3.4.33pre1

(ronin)$ whence make
/usr/ccs/bin/make

(ronin)$ make solaris
if [ ! -f netinet/done ] ; then \
(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .; ); \
(cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \
touch netinet/done; \
fi
CC="gcc -Wstrict-prototypes -Wmissing-prototypes" ./buildsunos
make ok
(cd SunOS5/i386-5.8; make build TOP=../.. "CC=gcc" "BINDEST=/usr/local/bin" "SBI
NDEST=/sbin" "MANDIR=/usr/local/man" 'CFLAGS=-I$(TOP) -DSOLARIS2=8 -DIPFILTER_
LOG' "IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT
_PASS=FR_PASS" "SOLARIS2=-DSOLARIS2=8" "DEBUG=-g" "DCPU=" "CPUDIR=i386-5.8" 'S
TATETOP_CFLAGS=-DSTATETOP' 'STATETOP_INC=' 'STATETOP_LIB=-lcurses' "BITS=32" "
OBJ=." "IPFLKM=-DIPFILTER_LKM" "SOLARIS2=-DSOLARIS2=8" "CPU=-Di86pc -Di386 -D__i
386__"; cd ..)
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipf.c -o ipf.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../parse.c -o parse.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../common.c -o common.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../opt.c -o opt.o
gcc -DNEED_INET_ATON -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../inet_addr
.c -o inet_addr.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../facpri.c -o facpri.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG ./ipf.o ./parse.o ./common.o ./opt.
o ./inet_addr.o ./facpri.o -o ipf.exe -lsocket -lnsl -lelf
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -DSTATETOP \
-c ../../fils.c -o fils.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../kmem.c -o kmem.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../printstate.c -o printstate
.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG ./fils.o ./parse.o ./kmem.o ./opt.o
./inet_addr.o ./facpri.o ./common.o ./printstate.o -o ipfstat -lsocket -lnsl -
lelf -lcurses -lkvm
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipt.c -o ipt.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../fil.c -o fil.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_sn.c -o ipft_sn.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_ef.c -o ipft_ef.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_td.c -o ipft_td.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_pc.c -o ipft_pc.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_tx.c -o ipft_tx.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../misc.c -o misc.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_state.c -o ip_state_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_frag.c -o ip_frag_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_nat.c -o ip_nat_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_fil.c -o ip_fil_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_log.c -o ip_log_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipft_hx.c -o ipft_hx.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_proxy.c -o ip_proxy_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ip_auth.c -o ip_auth_u.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../natparse.c -o natparse.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../printnat.c -o printnat.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG ./ipt.o ./parse.o ./common.o ./fil.
o ./ipft_sn.o ./ipft_ef.o ./ipft_td.o ./ipft_pc.o ./opt.o ./ipft_tx.o ./misc.
o ./ip_state_u.o ./ip_frag_u.o ./ip_nat_u.o ./inet_addr.o ./ip_fil_u.o ./ip_log
_u.o ./ipft_hx.o ./ip_proxy_u.o ./ip_auth_u.o ./natparse.o ./facpri.o ./printn
at.o ./printstate.o -o ipftest -lsocket -lnsl -lelf
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -DLOGFAC=LOG_LOCAL0 ../../ipmon.c -
o ipmon -lsocket -lnsl -lelf
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipnat.c -o ipnat.o
gcc -I../.. -DSOLARIS2=8 -DIPFILTER_LOG ./ipnat.o ./kmem.o ./natparse.o ./inet
_addr.o ./common.o ./printnat.o -o ipnat -lsocket -lnsl -lelf -lkvm
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_sfil.c -o ip_sfil.o
gcc -I../.. -DIPF_DEFAULT_PASS=FR_PASS -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -
DSUNDDI -DIPFILTER_LOG -DSOLARIS2=8 -c ../../fil.c -o fil_k.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../solaris.c -o solaris.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_state.c -o ip_state.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_frag.c -o ip_frag.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_nat.c -o ip_nat.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_proxy.c -o ip_proxy.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_auth.c -o ip_auth.o
gcc -I../.. -DIPFILTER_LKM -DIPFILTER_LOG -D_KERNEL -DSUNDDI -DIPFILTER_LOG -DSO
LARIS2=8 -c ../../ip_log.c -o ip_log.o
ld -r ./ip_sfil.o ./fil_k.o ./solaris.o ./ip_state.o ./ip_frag.o ./ip_nat.o ./i
p_proxy.o ./ip_auth.o ./ip_log.o -o ipf
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipfs.c -o ipfs.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG ./ipfs.o -o ipfs -lsocket -lnsl -le
lf
/bin/rm -f ../../ipf ../.././ipf
/bin/rm -f ../../ipftest ../.././ipftest
/bin/rm -f ../../ipmon ../.././ipmon
/bin/rm -f ../../ipnat ../.././ipnat
if [ -f /usr/lib/isaexec -a "." != . ] ; then \
mkdir -p ../../.; \
cp /usr/lib/isaexec ../../ipf; \
ln ../../ipf ../../ipftest; \
ln ../../ipf ../../ipmon; \
ln ../../ipf ../../ipnat; \
fi
ln -s `pwd`/./ipf.exe ../.././ipf
ln -s `pwd`/./ipmon ../.././ipmon
ln -s `pwd`/./ipftest ../.././ipftest
ln -s `pwd`/./ipnat ../.././ipnat
(cd SunOS5/i386-5.8; make -f Makefile.ipsend TOP=../.. "CC=gcc" "BINDEST=/usr/lo
cal/bin" "SBINDEST=/sbin" "MANDIR=/usr/local/man" 'CFLAGS=-I$(TOP) -DSOLARIS2=8
-DIPFILTER_LOG' "IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=
-DIPF_DEFAULT_PASS=FR_PASS" "SOLARIS2=-DSOLARIS2=8" "DEBUG=-g" "DCPU=" "CPUDIR
=i386-5.8" 'STATETOP_CFLAGS=-DSTATETOP' 'STATETOP_INC=' 'STATETOP_LIB=-lcurses'
"BITS=32" "OBJ=." "IPFLKM=-DIPFILTER_LKM"; cd ..)
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/ipsend.c -o ipsend.
o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/ip.c -o ip.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/ipsopt.c -o ipsopt.
o
yacc -d iplang_y.y
mv y.tab.c ../SunOS5/i386-5.8
mv y.tab.h ../SunOS5/i386-5.8
make: Warning: Too many rules defined for target ../SunOS5/i386-5.8/y.tab.o
Current working directory /ronin/home0/jds/tools2/ipf/ip_fil3.4.33pre1/iplang
gcc -g -I. -I.. -I../SunOS5/i386-5.8 -I../ipsend -I../.. -DSOLARIS2=8 -DIPFILT
ER_LOG -c ../SunOS5/i386-5.8/y.tab.c -o ../SunOS5/i386-5.8/y.tab.o
lex iplang_l.l
mv lex.yy.c ../SunOS5/i386-5.8
gcc -g -I. -I.. -I../SunOS5/i386-5.8 -I../ipsend -I../.. -DSOLARIS2=8 -DIPFILT
ER_LOG -c ../SunOS5/i386-5.8/lex.yy.c -o ../SunOS5/i386-5.8/lex.yy.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/dlcommon.c -o dlcom
mon.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/sdlpi.c -o sdlpi.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/arp.c -o arp.o
gcc -g ./ipsend.o ./ip.o ./ipsopt.o ./y.tab.o ./lex.yy.o ./dlcommon.o ./sdlpi.o
./arp.o -o ipsend -lsocket -lnsl -ll
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/ipresend.c -o ipres
end.o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/resend.c -o resend.
o
gcc -g ./ipresend.o ./ip.o ./resend.o ./ipft_ef.o ./ipft_hx.o ./ipft_pc.o ./ipft
_sn.o ./ipft_td.o ./ipft_tx.o ./inet_addr.o ./opt.o ./dlcommon.o ./sdlpi.o ./a
rp.o -o ipresend -lsocket -lnsl
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -c ../../ipsend/iptest.c -o iptest.
o
gcc -g -I../.. -DSOLARIS2=8 -DIPFILTER_LOG -Dsolaris -c ../../ipsend/iptests.c
-o iptests.o
gcc -g ./iptest.o ./iptests.o ./ip.o ./dlcommon.o ./sdlpi.o ./arp.o -o iptest -l
socket -lnsl


(ronin)$

Marcus Deubel wrote:

Hi fellows,
like the subject says: I want to compile ipf on Solaris 8 x86 with gcc 3.3.
Below is the result:
...




Reply via email to