[squid-users] LDAP Compile Problem

From: Ric Lonsdale <ric.lonsdale@dont-contact.us>
Date: Wed, 11 May 2005 18:51:06 +0100

I'm trying to compile squid-2.5.STABLE7 on a server with RedHat ES3,
with the following options:-

./configure --prefix=/usr/local/squid --enable-removal-policies=heap,lru
--enable-basic-auth-helpers=LDAP
--enable-external-acl-helpers=ldap_group --enable-auth=basic,ntlm

However, when I run "make all" I receive the following errors (apologies
if there is too much detail) :-

make[3]: Entering directory
`/usr/local/squid/src/squid-2.5.STABLE7/helpers/basic_auth/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=gcc3 /bin/sh ../../../cfgaux/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -g
-O2 -Wall -D_REENTRANT -c `test -f squid_ldap_auth.c || echo
'./'`squid_ldap_auth.c
squid_ldap_auth.c:84:18: lber.h: No such file or directory
squid_ldap_auth.c:85:18: ldap.h: No such file or directory
squid_ldap_auth.c:98: `LDAP_SCOPE_SUBTREE' undeclared here (not in a
function)
squid_ldap_auth.c:102: `LDAP_DEREF_NEVER' undeclared here (not in a
function)
squid_ldap_auth.c:108: `LDAP_NO_LIMIT' undeclared here (not in a
function)
squid_ldap_auth.c:115: syntax error before '*' token
squid_ldap_auth.c:165: syntax error before '*' token
squid_ldap_auth.c: In function `squid_ldap_errno':
squid_ldap_auth.c:167: `ld' undeclared (first use in this function)
squid_ldap_auth.c:167: (Each undeclared identifier is reported only once
squid_ldap_auth.c:167: for each function it appears in.)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:170: syntax error before '*' token
squid_ldap_auth.c: In function `squid_ldap_set_aliasderef':
squid_ldap_auth.c:172: `ld' undeclared (first use in this function)
squid_ldap_auth.c:172: `deref' undeclared (first use in this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:175: syntax error before '*' token
squid_ldap_auth.c: In function `squid_ldap_set_referrals':
squid_ldap_auth.c:177: `referrals' undeclared (first use in this
function)
squid_ldap_auth.c:178: `ld' undeclared (first use in this function)
squid_ldap_auth.c:178: `LDAP_OPT_REFERRALS' undeclared (first use in
this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:183: syntax error before '*' token
squid_ldap_auth.c: In function `squid_ldap_set_timelimit':
squid_ldap_auth.c:185: `ld' undeclared (first use in this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:188: syntax error before '*' token
squid_ldap_auth.c:206: syntax error before '*' token
squid_ldap_auth.c:208: warning: return type defaults to `int'
squid_ldap_auth.c: In function `open_ldap_connection':
squid_ldap_auth.c:209: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:209: `ld' undeclared (first use in this function)
squid_ldap_auth.c:235: warning: implicit declaration of function
`ldap_init'
squid_ldap_auth.c: In function `main':
squid_ldap_auth.c:270: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:270: `ld' undeclared (first use in this function)
squid_ldap_auth.c:272: `LDAP_PORT' undeclared (first use in this
function)
squid_ldap_auth.c:332: `LDAP_SCOPE_BASE' undeclared (first use in this
function)
squid_ldap_auth.c:334: `LDAP_SCOPE_ONELEVEL' undeclared (first use in
this function)
squid_ldap_auth.c:336: `LDAP_SCOPE_SUBTREE' undeclared (first use in
this function)
squid_ldap_auth.c:360: `LDAP_DEREF_NEVER' undeclared (first use in this
function)
squid_ldap_auth.c:362: `LDAP_DEREF_ALWAYS' undeclared (first use in this
function)
squid_ldap_auth.c:364: `LDAP_DEREF_SEARCHING' undeclared (first use in
this function)
squid_ldap_auth.c:366: `LDAP_DEREF_FINDING' undeclared (first use in
this function)
squid_ldap_auth.c:489: `LDAP_INVALID_CREDENTIALS' undeclared (first use
in this function)
squid_ldap_auth.c:491: warning: implicit declaration of function
`ldap_unbind'
squid_ldap_auth.c:499: `LDAP_SUCCESS' undeclared (first use in this
function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:538: syntax error before '*' token
squid_ldap_auth.c: In function `checkLDAP':
squid_ldap_auth.c:542: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:542: `bind_ld' undeclared (first use in this function)
squid_ldap_auth.c:544: `password' undeclared (first use in this
function)
squid_ldap_auth.c:553: `LDAPMessage' undeclared (first use in this
function)
squid_ldap_auth.c:553: `res' undeclared (first use in this function)
squid_ldap_auth.c:554: `entry' undeclared (first use in this function)
squid_ldap_auth.c:559: `search_ld' undeclared (first use in this
function)
squid_ldap_auth.c:559: `persistent_ld' undeclared (first use in this
function)
squid_ldap_auth.c:562: `ldapServer' undeclared (first use in this
function)
squid_ldap_auth.c:562: `port' undeclared (first use in this function)
squid_ldap_auth.c:564: `userid' undeclared (first use in this function)
squid_ldap_auth.c:566: warning: implicit declaration of function
`ldap_simple_bind_s'
squid_ldap_auth.c:567: `LDAP_SUCCESS' undeclared (first use in this
function)
squid_ldap_auth.c:568: warning: implicit declaration of function
`ldap_err2string'
squid_ldap_auth.c:568: warning: format argument is not a pointer (arg 3)
squid_ldap_auth.c:576: warning: implicit declaration of function
`ldap_search_s'
squid_ldap_auth.c:578: `LDAP_PARTIAL_RESULTS' undeclared (first use in
this function)
squid_ldap_auth.c:583: warning: format argument is not a pointer (arg 3)
squid_ldap_auth.c:594: warning: implicit declaration of function
`ldap_first_entry'
squid_ldap_auth.c:599: warning: implicit declaration of function
`ldap_get_dn'
squid_ldap_auth.c:599: warning: assignment makes pointer from integer
without a cast
squid_ldap_auth.c:615: warning: implicit declaration of function
`ldap_msgfree'
squid_ldap_auth.c:634: warning: implicit declaration of function
`ldap_compare_s'
squid_ldap_auth.c:634: `LDAP_COMPARE_TRUE' undeclared (first use in this
function)
/usr/include/bits/socket.h: At top level:
squid_ldap_auth.c:112: warning: `use_tls' defined but not used
squid_ldap_auth.c:113: warning: `version' defined but not used
make[3]: *** [squid_ldap_auth.o] Error 1
make[3]: Leaving directory
`/usr/local/squid/src/squid-2.5.STABLE7/helpers/basic_auth/LDAP'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/squid/src/squid-2.5.STABLE7/helpers/basic_auth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/squid/src/squid-2.5.STABLE7/helpers'
make: *** [all-recursive] Error 1

I've read various mails from the list but these mainly seem to be for
people who haven't got openldap installed, which I have
(openldap-2.0.27).

Can anybody help?
Received on Wed May 11 2005 - 11:50:54 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:02 MDT