[Snort-devel] Barnyard Solaris 8 compile issue

Steve Rudolph srudolph at ...1213...
Thu May 2 09:09:05 EDT 2002


I still seem to be getting the same error after using solution 1.
What did you mean add -lnsl to the link line?  Do you mean the ./config -lnsl ?
Here is the error agian:

gcc  -g -O2 -Wall  -L/usr/local/mysql/lib/mysql -lmysqlclient -o barnyard  barnyard.o
configparse.o  mstring.o strlcatu.o strlcpyu.o  util.o spool.o sid.o debug.o 
classification.o output-plugins/libop.a input-plugins/libdp.a -lsocket
Undefined                       first referenced
 symbol                             in file
inet_ntoa                           output-plugins/libop.a(op_logdump.o)  (symbol belongs
to implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to barnyard
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `barnyard'

Roelof JT Jonkman wrote:
> 
> Steve,
> 
> > gcc  -g -O2 -Wall  -L/usr/local/mysql/lib/mysql -lmysqlclient -o
> > barnyard  barnyard.o configparse.o  mstring.o strlcatu.o strlcpyu.o
> > util.o spool.o sid.o debug.o  classification.o output-plugins/libop.a
> > input-plugins/libdp.a -lsocket
> > Undefined                       first referenced
> >  symbol                             in file
> > inet_ntoa
> > output-plugins/libop.a(op_logdump.o)  (symbol belongs to implicit
> > dependency /usr/lib/libnsl.so.1)
> > ld: fatal: Symbol referencing errors. No output written to barnyard
> > collect2: ld returned 1 exit status
> > *** Error code 1
> > make: Fatal error: Command failed for target `barnyard'
> 
> Solution 1:
> 
> make distclean
> aclocal
> automake
> ./configure
> 
> Solution 2:
> 
> Or just simply add '-lnsl' to the link line. (cut and paste, add -lnsl, sorry
> I'm lazy that way.)
> 
> Solaris (as do most typical system V derrivatives) have most internet specific
> routines living outside libc, hence you need to link in additional libraries.
> 
> Hope this helps, and good luck.
> 
>                 roel

-- 
Steve Rudolph CCSA, CCSE
Network Security Engineer 
Internet Operations Center
Southfield, MI
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2037 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20020502/63bddf19/attachment.bin>


More information about the Snort-devel mailing list