Re: [squid-users] Squid 2.5 S12 + LDAP

From: Guido Serassio <guido.serassio@dont-contact.us>
Date: Wed, 25 Jan 2006 21:58:14 +0100

Hi,

At 14.56 25/01/2006, Werner.Rost@zf.com wrote:

>There are problems configuring LDAP and Squid 2.5 Stable 12.
>
>Environment:
>------------
>Hardware: COMPAQ Professional Workstation XP1000
>OS: Tru64 V5.1A (OSF1 GOAW25 V5.1 1885 alpha)
>
>
>configure step runs without any problems:
>
>./configure --enable-auth="ntlm,basic" \
> --enable-external-acl-helpers="winbind_group,ldap_group" \
> --enable-basic-auth-helpers="winbind" \
> --enable-ntlm-auth-helpers="winbind" \
> --prefix=/usr/local/squid
>
>Now "make all" leads to following error:
>
>Making all in ldap_group
>source='squid_ldap_group.c' object='squid_ldap_group.o'
>libtool=no depfile='.de
>ps/squid_ldap_group.Po'
>tmpdepfile='.deps/squid_ldap_group.TPo' depmode=gcc3 /b
>in/sh ../../../cfgaux/depcomp gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
> -g -O2 -Wall -c `test -f squid_ldap_group.c || echo
> './'`squid_ldap_group.c
>squid_ldap_group.c:40:18: lber.h: No such file or directory
>squid_ldap_group.c:41:18: ldap.h: No such file or directory
>
>
>Therefore I copied missing files (and some others)
>from /usr/internet/openldap/include
>to /usr/local/squid-2.5.STABLE12/helpers/external_acl/ldap_group
>
>After that compilation of squid_ldap_group.c worked fine. But I get
>another error message:
>
>/usr/bin/ld:
>Can't locate file for: -lldap
>collect2: ld returned 1 exit status
>*** Exit 1

On your Tru64 the location of LDAP libraries and include files is not standard.
You can try this (on a single command line):

CPPFLAGS="-I/usr/internet/openldap/include"
LDFLAGS="-L/usr/internet/openldap/lib" ./configure

(I'm assuming that libldap.a is placed in /usr/internet/openldap/lib)

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Wed Jan 25 2006 - 13:58:23 MST

This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST