Making, drinking tea and reading an opus magnum from Darren Reed:

> Does anyone know if this problem is solvable with code (combination
> of #ifdef's, etc) ?  It seems to keep popping up and isn't a problem
> if you are using the SUNWspro cc - or at least not that I've noticed
> :)

Actually its a bit bizarre problem that I've noticed. You need to
specify -I/usr/include and -L/usr/lib for STATETOP Includes and libs
respectively. Only then does the compile work.

I've tried -L/usr/lib -L/usr/local/lib (which contains a local copy of
ncurses) with no luck. (PS - /opt/sfw -> /usr/local)

> > gcc -m32 -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
> > 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 /home/root/ip_fil3.4.26/SunOS5/sparc-5.8
> > *** Error code 1
> > make: Fatal error: Command failed for target `sunos5'
> > Current working directory /home/root/ip_fil3.4.26
> > make: *** [solaris] Error 1
> > (bash) root@coreos:~/ip_fil3.4.26 #

[...]

-Bruno

-- 
If a team is in a positive frame of mind, it will have a good
attitude.  If it has a good attitude, it will make a commitment to
playing the game right.  If it plays the game right, it will win --
unless, of course, it doesn't have enough talent to win, and no manager
can make goose-liver pate out of goose feathers, so why worry?
                -- Sparky Anderson

Attachment: msg00084/pgp00000.pgp
Description: PGP signature

Reply via email to