Re: RES: [squid-users] Problems compiling LDAP helpers

From: Schelstraete Bart <bart@dont-contact.us>
Date: Mon, 16 Jun 2003 18:21:14 +0200

Oswaldo Gomes wrote:

>Henrik,
>
> I tried:
>
>[/tmp/squid-2.5.STABLE3] # configure --enable-basic-auth-helpers="LDAP"
>[/tmp/squid-2.5.STABLE3] # make
>
>
> And get the following errors:
>
>
>/libufs.a auth/libbasic.a -lcrypt -lmiscutil -lm
>Making all in icons
>Making all in errors
>Making all in doc
>Making all in helpers
>Making all in basic_auth
>Making all in LDAP
>source='squid_ldap_auth.c' object='squid_ldap_auth.o' libtool=no
>depfile='.deps/squid_ldap_auth.Po' tmpdepfile='.deps/squid_ldap_auth.TPo'
>depmode=gcc /bin/sh ../../../cfgaux/depcomp gcc -DHAVE_CONFIG_H -I. -I.
>-I../../../include -I../../../include -g -O2 -Wall -c `test -f
>squid_ldap_auth.c || echo './'`squid_ldap_auth.c
>gcc -g -O2 -Wall -g -o squid_ldap_auth squid_ldap_auth.o -L../../../lib
>-lmiscutil -lldap -llber -lm
>/usr/libexec/elf/ld: cannot find -lldap
>*** Error code 1
>
>Stop in /tmp/squid-2.5.STABLE3/helpers/basic_auth/LDAP.
>*** Error code 1
>
>Stop in /tmp/squid-2.5.STABLE3/helpers/basic_auth.
>*** Error code 1
>
>Stop in /tmp/squid-2.5.STABLE3/helpers.
>*** Error code 1
>
>
>
Hello,

Try typing this before you run the configure: (first remove the 'old'
config.cache)

  export CFLAGS="-I/opt/openssl/include/ -I/opt/openldap/include"
  export CPPFLAGS="-I/opt/openssl/include/ -I/opt/openldap/include"
  export LDFLAGS="-L/opt/openssl/lib/ -L/opt/openldap/lib"

Where '/opt/openssl' is your dirctory to the LDAP librarbies/headers.

rgrds,
          Bart
Received on Mon Jun 16 2003 - 10:21:40 MDT

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