Re: [squid-users] compiling 2.5 with ldap helper and squid_ldap_match?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 31 Jan 2003 09:28:02 +0100

Rolf wrote:

> During the make process it fails when trying to make squid_ldap_group.
> Undefined reference to ldap_build_filter.
>
> Further resaerch indicates that the function ldap_build_filter has been
> removed from the openldap libs since some recent version 2 release.
> I discovered that squid_ldap_match available at
> http://marasystems.com/download/LDAP_Group/ does what squid_ldap_group does
> without relying on ldap_build_filter.

The two are infact the same program.

The update is also available in the current nightly snapshots of
Squid-2.5 or as a patch from the Squid-2.5 known bugs page
<http://www.squid-cache.org/Versions/v2/2.5/bugs/>

> So I presume I can use that. But I am now stuck. How do I incorporate and
> build that file (the c source file and the man page) into the main squid
> make process? If its as simple as passing a line to gcc to produce a
> binary, what might that line be? In that event, what do I need to change to
> stop the main build failing when it gets to the squid_ldap_group makefiles
> (in helpers/external_acl/ldap_group? (tried moving that helper out of the
> source tree but then it couldn't find it and complained)

  gcc -o squid_ldap_match squid_ldap_match.c -lldap -llber

should work.

Regards
Henrik
Received on Fri Jan 31 2003 - 02:34:57 MST

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