----- Original Message ----- 
From: "tripivceta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 3:45 PM
Subject: IPFilter 3.4.33pre2 won't compile on Solaris9 x86


> The diagnostics are below.  What do I need to do to get it to compile?
What
> does the error output from `ld` mean???
>
>
> 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.9; make build TOP=../.. "CC=gcc"
"BINDEST=/usr/local/bin"
> "SBINDEST=/sbin" "MANDIR=/usr/local/man"
> CFLAGS=-I$(TOP)  -DSOLARIS2=9  -DIPFILTER_LOG'  "IPFLOG=-DIPFILTER_LOG"
> "LOGFAC=-DLOGFAC=LOG_LOCAL0" "POLICY=-DIPF_DEFAULT_PASS=FR_PASS"
> "SOLARIS2=-DSOLARIS2=9" "DEBUG=-g" "DCPU="  "CPUDIR=i386-5.9"
> 'STATETOP_CFLAGS=-DSTATETOP'  'STATETOP_INC=-I/opt/sfw/include'
> 'STATETOP_LIB=-lcurses'  "BITS=32" "OBJ=." "IPFLKM=-DIPFILTER_LKM"
> "SOLARIS2=-DSOLARIS2=9" "CPU=-Di86pc -Di386 -D__i386__"; cd ..)
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../ipf.c -o ipf.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../parse.c -o parse.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../common.c -o common.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../opt.c -o opt.o
> gcc -DNEED_INET_ATON -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c
> ./../inet_addr.c -o inet_addr.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../facpri.c -o facpri.o
> gcc -g -I../..  -DSOLARIS2=9  -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=9  -DIPFILTER_LOG -DSTATETOP -I/opt/sfw/include
\
>  -c ../../fils.c -o fils.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../kmem.c -o kmem.o
> gcc -g -I../..  -DSOLARIS2=9  -DIPFILTER_LOG -c ../../printstate.c -o
> printstate.o
> gcc -g -I../..  -DSOLARIS2=9  -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
> Undefined   first referenced
>  symbol         in file
> wattr_off                           ./fils.o
> wattr_on                            ./fils.o
> ld: fatal: Symbol referencing errors. No output written to ipfstat
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `ipfstat'
> Current working directory /export/scratch/ip_fil3.4.33pre2/SunOS5/i386-5.9
> *** Error code 1
> make: Fatal error: Command failed for target `sunos5x86'
> Current working directory /export/scratch/ip_fil3.4.33pre2
> *** Error code 1
> make: Fatal error: Command failed for target `solaris'
>
> Platform:
> SunOS 5.9 Generic_112234-08 i86pc i386 i86pc
>
> Compiler:
> Reading specs from /opt/csw/gcc3/lib/gcc-lib/i386-pc-solaris2.8/3.3/specs
> Configured with:
> ./gcc-3.3/configure --prefix=/opt/csw/gcc3 --enable-shared --disable-nls
> Thread model: posix
> gcc version 3.3
>
> System Configuration:  Sun Microsystems  i86pc
> Memory size: 240 Megabytes
> System Peripherals (Software Nodes):
>
> i86pc
>     options, instance #0
>     isa, instance #0
>         asy, instance #0
>         fdc, instance #0
>             fd, instance #0
>         i8042, instance #0
>             keyboard, instance #0
>             mouse, instance #0
>     pci, instance #0
>         pci1106,8305, instance #0
>             display, instance #0
>         pci-ide, instance #0
>             ide, instance #0
>                 cmdk, instance #0
>             ide, instance #1
>                 sd, instance #0
>         pci925,1234, instance #0
>         pci925,1234, instance #1
>         pci1186,1403, instance #0
>         pci1458,a000, instance #0
>     objmgr, instance #0
>     pseudo, instance #0
>     xsvc, instance #0

Solution:

Temporarily remove ncurses from the system (will cause `pkgadd` to complain
violently because quite a bit of packages depend on ncurses), compile
IPFilter, add ncurses back to the system with `pkgadd -d
<path_to_the_ncurses_package> SFWncur`:

pkgrm SFWncur && make clean && make solaris && cd SunOS5-i386 && make
package && pkgadd -d ./ ipf.pkg && pkgadd -d <path_to_the_ncurses_package>
SFWncur

Reply via email to