[Sunhelp] library erors

Nicholas Dronen ndronen at frii.com
Thu Oct 5 09:39:42 CDT 2000


Suresh:

man nm

All of those symbols are in libresolv.  On other UNIXes they're
sometimes just in libc, so qmail doesn't add the right compiler/
linker directives in its makefiles.

$ nm -Ap /usr/lib/libresolv.so | egrep 'inet_aton|res_query|dn_expand'
/usr/lib/libresolv.so: 0000105880 T dn_expand
/usr/lib/libresolv.so: 0000021868 T inet_aton
/usr/lib/libresolv.so: 0000114500 T res_query

You need to link against libresolv.so.  Add -lresolv to the list
of libraries against which you're linking.

Regards,

Nick Dronen


On Thu, Oct 05, 2000 at 04:24:09PM +0100, suresh wrote:
> Hello
> I am installing qmail/ldap on a solaris 8x86 .But i keep getting this
> errors.I think it is looking for some library files.Can anybody tell me
> which one?
> thanx in advance
> 
> Suresh
> 
> Undefined                       first referenced
>  symbol                             in file
> dn_expand                           /usr/local/lib/libldap.so
> inet_aton                           /usr/local/lib/libldap.so
> res_query                           /usr/local/lib/libldap.so
> ld: fatal: Symbol referencing errors. No output written to qmail-lspawn
> collect2: ld returned 1 exit status
> make: *** [qmail-lspawn] Error 1
> 
> 
> 
> ___________________________________________
> 
> Makes Internet work in Indian languages
> ___________________________________________
> 







More information about the SunHELP mailing list