Hi, im having many problems compiling squid 2.5stable13 with ldap_auth, these is what i have done:

./configure --enable-basic-auth-helpers=LDAP \
--enable-external-acl-helpers=ldap_group \
--enable-auth=basic,ntlm --enable-pf-transparent

make all

this is the error message

squid_ldap_auth.c: In function `open_ldap_connection':
squid_ldap_auth.c:219: error: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:219: error: `ld' undeclared (first use in this function)
squid_ldap_auth.c:245: warning: implicit declaration of function `ldap_init'
squid_ldap_auth.c: In function `main':
squid_ldap_auth.c:315: error: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:315: error: `ld' undeclared (first use in this function)
squid_ldap_auth.c:317: error: `LDAP_PORT' undeclared (first use in this function) squid_ldap_auth.c:377: error: `LDAP_SCOPE_BASE' undeclared (first use in this function) squid_ldap_auth.c:379: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function) squid_ldap_auth.c:381: error: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function) squid_ldap_auth.c:405: error: `LDAP_DEREF_NEVER' undeclared (first use in this function) squid_ldap_auth.c:407: error: `LDAP_DEREF_ALWAYS' undeclared (first use in this function) squid_ldap_auth.c:409: error: `LDAP_DEREF_SEARCHING' undeclared (first use in this function) squid_ldap_auth.c:411: error: `LDAP_DEREF_FINDING' undeclared (first use in this function) squid_ldap_auth.c:538: error: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function) squid_ldap_auth.c:540: warning: implicit declaration of function `ldap_unbind' squid_ldap_auth.c:544: warning: implicit declaration of function `ldap_err2string'
squid_ldap_auth.c:544: warning: format argument is not a pointer (arg 2)
squid_ldap_auth.c:548: error: `LDAP_SUCCESS' undeclared (first use in this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:590: error: syntax error before '*' token
squid_ldap_auth.c: In function `checkLDAP':
squid_ldap_auth.c:594: error: `LDAP' undeclared (first use in this function)
squid_ldap_auth.c:594: error: `bind_ld' undeclared (first use in this function) squid_ldap_auth.c:597: error: `password' undeclared (first use in this function) squid_ldap_auth.c:608: error: `LDAPMessage' undeclared (first use in this function)
squid_ldap_auth.c:608: error: `res' undeclared (first use in this function)
squid_ldap_auth.c:609: error: `entry' undeclared (first use in this function) squid_ldap_auth.c:613: error: `search_ld' undeclared (first use in this function) squid_ldap_auth.c:613: error: `persistent_ld' undeclared (first use in this function) squid_ldap_auth.c:616: error: `ldapServer' undeclared (first use in this function)
squid_ldap_auth.c:616: error: `port' undeclared (first use in this function)
squid_ldap_auth.c:618: error: `userid' undeclared (first use in this function) squid_ldap_auth.c:620: warning: implicit declaration of function `ldap_simple_bind_s' squid_ldap_auth.c:621: error: `LDAP_SUCCESS' undeclared (first use in this function)
squid_ldap_auth.c:622: warning: format argument is not a pointer (arg 3)
squid_ldap_auth.c:630: warning: implicit declaration of function `ldap_search_s' squid_ldap_auth.c:632: error: `LDAP_PARTIAL_RESULTS' undeclared (first use in this function)
squid_ldap_auth.c:639: warning: format argument is not a pointer (arg 3)
squid_ldap_auth.c:650: warning: implicit declaration of function `ldap_first_entry' squid_ldap_auth.c:657: warning: implicit declaration of function `ldap_get_dn' squid_ldap_auth.c:657: warning: assignment makes pointer from integer without a cast squid_ldap_auth.c:673: warning: implicit declaration of function `ldap_msgfree' squid_ldap_auth.c:693: warning: implicit declaration of function `ldap_compare_s' squid_ldap_auth.c:693: error: `LDAP_COMPARE_TRUE' undeclared (first use in this function)
squid_ldap_auth.c: At top level:
squid_ldap_auth.c:118: warning: `use_tls' defined but not used
squid_ldap_auth.c:119: warning: `version' defined but not used
*** Error code 1

Stop in /usr/src/squid-2.5.STABLE13/helpers/basic_auth/LDAP.
*** Error code 1

Stop in /usr/src/squid-2.5.STABLE13/helpers/basic_auth (line 173 of Makefile).
*** Error code 1

Stop in /usr/src/squid-2.5.STABLE13/helpers (line 168 of Makefile).
*** Error code 1

Stop in /usr/src/squid-2.5.STABLE13 (line 228 of Makefile).
#


i have installed the ldap's server and client libraries.
I foun this post in the archives.
http://marc.theaimsgroup.com/?l=openbsd-misc&m=114334720314723&w=2
but the user is trying to install from ports, i want to compile from source, it seems like is a library missing somewhere, how can i be sure?

thanks

Reply via email to