Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Compile problems on Solaris 8: msg#00014

Subject: Re: Compile problems on Solaris 8
John Creegan wrote:

The make fails:
-g -O2 -Wall  -lnsl -L/opt/csw/mysql4/lib/mysql -o barnyard  barnyard.o 
mstring.o  strlcatu.o strlcpyu.o util.o  spool.o sid.o debug.o  
classification.o CommandLineArgs.o  ConfigFile.o ProgVars.o 
output-plugins/libop.a input-plugins/libdp.a -lsocket  -lz -lssl -lmysqlclient
Undefined                       first referenced
 symbol                             in file
hstrerror                           output-plugins/libop.a(op_alert_syslog2...o)
inet_aton                           output-plugins/libop.a(op_alert_syslog2...o)

There is a problem finding the symbols "hsterror" and "inet_aton" for linking purposes. It should be picking these symbols up from libnsl, but that appears to be failing. The alternate location is libresolv, IIRC. Try adding a -lresolv to the libraries line. Unfortunately I do not have a Solaris system available to test on so I can only guess which libraries are needed.

-A



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>