Re: [squid-users] ldap on sun

From: Marc Elsen <marc.elsen@dont-contact.us>
Date: Wed, 11 Dec 2002 15:37:19 +0100

Tomas Palfi wrote:
>
> to all,
>
> trying to compile ldap on sun and can't get beyond this point. previously i
> have installed openldap as i was missing header files. the openldap
> installation has been done with these parameters disabled ldbm and slapd.
> but that should not affect this helper's installation and why is it failing
> at the link aditor. please help if you know (i've been running squid-2.5
> for some time and this is an addtional module)
>
> gcc -g -Wall -g -o squid_ldap_group squid_ldap_group.o -lldap -llber
> 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 squid_ldap_group
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `squid_ldap_group'
>

 Try giving these extra arguments to the linker :
 
            "-lsocket -lnsl"

 M.
> --
> end
>
> Tomas Palfi
> IT Department
> Phoenix Medical Supplies Ltd.
> 00 44 (0)1928 750707
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

-- 
 'Time is a consequence of Matter thus
 General Relativity is a direct consequence of QM
 (M.E. Mar 2002)
Received on Wed Dec 11 2002 - 07:37:27 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:02 MST