Re: squid_ldap_auth problem

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 25 Jun 2000 00:06:06 +0200

Solaris requires

  -lnsl -lsocket

I think..

Hmm.. configure should have set this in the Makefile... Aha,
$(XTRA_LIBS) is missing from the $(CC) line in
auth_modules/LDAP/Makefile.in

Add $(XTRA_LIBS) at the end of the line, and everything should be set
for you.

--
Henrik Nordstrom
Squid hacker
cesargomes@ig.com.br wrote:
> 
> Hello,
> 
> I've tried to compile the squid_ldap_auth of squid-2.3 STABLE2 in
> auth_modules.I'm using the Solaris 7 and OpenLDAP 1.2.10.
> The compilation of module returns this messages:
> 
> *********************************************
> 
> gcc -g -o squid_ldap_auth squid_ldap_auth.o -lldap -llber -lresolv
> 
> Undefined                       first referenced
> 
> symbol                             in file
> 
> socket                              /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libsocket.so.1)
> 
> gethostbyname                       /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libnsl.so.1)
> 
> setsockopt                          /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libsocket.so.1)
> 
> inet_addr                           /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libnsl.so.1)
> 
> inet_ntoa                           /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libnsl.so.1)
> 
> connect                             /usr/local/lib/libldap.a(os-ip.o)
> (symbol belongs to implicit dependency
> 
> /usr/lib/libsocket.so.1)
> 
> ld: fatal: Symbol referencing errors. No output written to squid_ldap_auth
> 
> *** Error code 1
> 
> make: Fatal error: Command failed for target `squid_ldap_auth'
> 
> ****************************************************
> 
> PLEASE I NEED YOUR HELP!!!!
> 
> THANKS
> 
> CESAR - cesargomes@ig.com.br
> 
> _________________________________________________________
> Oi! Você quer um iG-mail gratuito?
> Então clique aqui: http://www.ig.com.br/paginas/assineigmail.html
Received on Sat Jun 24 2000 - 16:15:40 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:10 MST