On Sat, Aug 25, 2001 at 01:37:51PM +0800, roland wrote:
> dear everyone,
>
> I encounter problem while compiling qmail-ldap in solaris 7.
> Undefined first referenced
> symbol in file
> socket /usr/local/lib/libldap.so
> getpeername /usr/local/lib/libldap.so
> dn_expand /usr/local/lib/libldap.so
> gethostbyname_r /usr/local/lib/libldap.so
> setsockopt /usr/local/lib/libldap.so
> inet_aton /usr/local/lib/libldap.so
> inet_ntoa /usr/local/lib/libldap.so
> shutdown /usr/local/lib/libldap.so
> gethostbyaddr_r /usr/local/lib/libldap.so
> res_query /usr/local/lib/libldap.so
> connect /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
The answer is in the Makefile as well as in life with qmail-ldap as well as
in the archives.
Hint: look for LDAPLIBS and -lresolv.
--
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)