Al Hopper <[EMAIL PROTECTED]> wrote: > > > Undefined first referenced > > > symbol in file > > > gethostbyname /var/tmp//ccgyLdOf.o > > > socket /var/tmp//ccgyLdOf.o > > > connect /var/tmp//ccgyLdOf.o > > > ld: fatal: Symbol referencing errors. No output written to bkf > > > collect2: ld returned 1 exit status > > > make: *** [bkf] Error 1 > > > > -lsocket -lnsl > > Followup: > > In general, if you've looking for a "mysterious" undefined symbol within > Solaris, the general "brute force" solution is (something like [assuming > ksh as your shell]): > > for i in /lib/*.so > do > /usr/ccs/bin/nm -Ag $i |grep -v UNDEF |grep gethostbyname > done
In 99.99% of all cases, you find the right libraries by just calling e.g. "man socket" ;-) Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org