<div dir="ltr">Hello, Francesco, <div><br></div><div>I created two files manually:</div><div><font face="monospace"><b>cat /usr/lib64/pkgconfig/ldap.pc</b><br>prefix=/usr<br>exec_prefix=/usr<br>includedir=/usr/include<br>libdir=/usr/lib64<br><br>Name: ldap (OpenLDAP)<br>Description: OpenLDAP Lightweight Directory Access Protocol library<br>URL: <a href="https://www.openldap.org">https://www.openldap.org</a><br>Version: 2.4.46<br>Requires: lber<br>Cflags: -I${includedir}<br>Libs: -L${libdir} -lldap<br>Libs.private: -levent  -lsasl2 -lssl -lcrypto<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace"><b>cat /usr/lib64/pkgconfig/lber.pc</b><br>prefix=/usr<br>exec_prefix=/usr<br>includedir=/usr/include<br>libdir=/usr/lib64<br><br>Name: lber (OpenLDAP)<br>Description: OpenLDAP Lightweight ASN.1 Basic Encoding Rules library<br>URL: <a href="https://www.openldap.org">https://www.openldap.org</a><br>Version: 2.4.46<br>Cflags: -I${includedir}<br>Libs: -L${libdir} -llber<br>Libs.private: -levent</font><br></div><div><br></div><div><br></div><div>Now the configure script works well.</div><div><br></div><div>Thank you for the help.</div><div><br></div><div>Kind regards,</div><div>      Ankor.</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">вт, 15 июл. 2025 г. в 13:26, Andrey K <<a href="mailto:ankor2023@gmail.com">ankor2023@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello, Francesco, <div><br></div><div>I found that ldap.pc <span>has</span><span> been added to </span><span>the</span><span> openldap package since version 2.5.</span></div><div><span>Should I manually add the file from version 2.6 to my host?</span></div><div><span><br></span></div><div>Kind regards,</div><div>    Ankor.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 15 июл. 2025 г. в 12:41, Andrey K <<a href="mailto:ankor2023@gmail.com" target="_blank">ankor2023@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, Francesco,<div><br></div><div>The output of the command:</div><div><font face="monospace">pkg-config --libs ldap<br>Package ldap was not found in the pkg-config search path.<br>Perhaps you should add the directory containing `ldap.pc'<br>to the PKG_CONFIG_PATH environment variable<br>Package 'ldap', required by 'virtual:world', not found</font><br></div><div><br></div><div>However, the libldap is installed in the system as a part of the openldap package:</div><div><font face="monospace">locate libldap<br>/usr/lib64/libldap-2.4.so.2<br>/usr/lib64/libldap-2.4.so.2.10.9<br>/usr/lib64/libldap.so<br>/usr/lib64/libldap_r-2.4.so.2<br>/usr/lib64/libldap_r-2.4.so.2.10.9<br>/usr/lib64/libldap_r.so</font><br></div><div><br></div><div>There is no ldap.pc file in the standard OEL openldap packages:</div><div><font face="monospace">openldap-devel-2.4.46-18.el8.x86_64<br>openldap-2.4.46-18.el8.x86_64</font><br></div><div><br></div><div><br></div><div>Kind regards,</div><div>    Ankor</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 15 июл. 2025 г. в 10:42, Francesco Chemolli <<a href="mailto:gkinkie@gmail.com" target="_blank">gkinkie@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrey,<br>
  looking at the code changes, the main reason I can see is that<br>
pkg-config needs to be present and working in order to Squid the<br>
libraries it needs.<br>
Could you try running<br>
<br>
pkg-config --libs ldap<br>
<br>
on your system?<br>
<br>
On Tue, Jul 15, 2025 at 7:13 AM Andrey K <<a href="mailto:ankor2023@gmail.com" target="_blank">ankor2023@gmail.com</a>> wrote:<br>
><br>
> Hello, Francesco,<br>
><br>
> I have also run a configure script with the same arguments on the Squid 6.13 sources.<br>
> It finished without errors.<br>
><br>
> The link to the 6.13 logs: <a href="https://drive.google.com/file/d/16DY4uCM5cAbsNC8NcaoM8YB6GT8oUW3-/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/16DY4uCM5cAbsNC8NcaoM8YB6GT8oUW3-/view?usp=sharing</a><br>
> The excerpt on the LDAP filter:<br>
><br>
> grep -i ldap /tmp/configure.6.13.log<br>
> checking for LIBLDAP... no<br>
> checking for ldap_init in -lldap... yes<br>
> checking ldap.h usability... yes<br>
> checking ldap.h presence... yes<br>
> checking for ldap.h... yes<br>
> checking mozldap/ldap.h usability... no<br>
> checking mozldap/ldap.h presence... no<br>
> checking for mozldap/ldap.h... no<br>
> checking for LDAP... 1<br>
> checking for OpenLDAP... 1<br>
> checking for Sun LDAP SDK... 0<br>
> checking for Mozilla LDAP SDK... 0<br>
> checking for LDAP_OPT_DEBUG_LEVEL... 1<br>
> checking for LDAP_SCOPE_DEFAULT... 1<br>
> checking for LDAP_REBIND_PROC... 1<br>
> checking for LDAP_REBINDPROC_CALLBACK... 0<br>
> checking for LDAP_REBIND_FUNCTION... 0<br>
> checking for LDAP_URL_LUD_SCHEME... 0<br>
> checking for ldapssl_client_init in -lldap... no<br>
> checking for library containing ldap_url_desc2str... -lldap<br>
> checking for library containing ldap_url_parse... none required<br>
> checking for library containing ldap_start_tls_s... none required<br>
> configure: checking auth/basic helpers: LDAP SMB SMB_LM<br>
> checking for ldap.h... (cached) yes<br>
> checking winldap.h usability... no<br>
> checking winldap.h presence... no<br>
> checking for winldap.h... no<br>
> configure: auth/basic helpers to be built:  LDAP SMB SMB_LM<br>
> configure: checking auth/digest helpers: LDAP eDirectory file<br>
> checking for ldap.h... (cached) yes<br>
> checking for winldap.h... (cached) no<br>
> checking for ldap.h... (cached) yes<br>
> checking for winldap.h... (cached) no<br>
> configure: auth/digest helpers to be built:  LDAP eDirectory file<br>
> configure: checking acl/external helpers: kerberos_ldap_group wbinfo_group<br>
> configure: acl/external helpers to be built:  kerberos_ldap_group wbinfo_group<br>
> config.status: creating src/acl/external/kerberos_ldap_group/Makefile<br>
> config.status: creating src/acl/external/LDAP_group/Makefile<br>
> config.status: creating src/auth/basic/LDAP/Makefile<br>
> config.status: creating src/auth/digest/LDAP/Makefile<br>
> configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local/squid'  '--enable-auth-basic=LDAP,SMB,SMB_LM' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=SMB_LM' '--enable-external-acl-helpers=kerberos_ldap_group,wbinfo_group' --cache-file=/dev/null --srcdir=.<br>
><br>
><br>
> Kind regards,<br>
>      Ankor.<br>
><br>
><br>
><br>
><br>
><br>
> вт, 15 июл. 2025 г. в 06:05, Andrey K <<a href="mailto:ankor2023@gmail.com" target="_blank">ankor2023@gmail.com</a>>:<br>
>><br>
>> Hello, Francesco,<br>
>><br>
>> Thank you for the help.<br>
>><br>
>> Full logs of the configure command are available at the link: <a href="https://drive.google.com/file/d/1wxAmtK2PDTuS41vvM0kuAS-1TtlzZKFl/view?usp=sharing" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1wxAmtK2PDTuS41vvM0kuAS-1TtlzZKFl/view?usp=sharing</a><br>
>><br>
>> Here is a short excerpt on the LDAP filter:<br>
>> cat /tmp/configure.log | grep -i ldap<br>
>> checking for LIBLDAP... no<br>
>> checking for ldap.h... yes<br>
>> checking for mozldap/ldap.h... no<br>
>> checking for LDAP... 1<br>
>> checking for OpenLDAP... 1<br>
>> checking for Sun LDAP SDK... 0<br>
>> checking for Mozilla LDAP SDK... 0<br>
>> checking for LDAP_OPT_DEBUG_LEVEL... 1<br>
>> checking for LDAP_SCOPE_DEFAULT... 1<br>
>> checking for LDAP_REBIND_PROC... 1<br>
>> checking for LDAP_REBINDPROC_CALLBACK... 0<br>
>> checking for LDAP_REBIND_FUNCTION... 0<br>
>> checking for LDAP_URL_LUD_SCHEME... 0<br>
>> checking for ldapssl_client_init in -lldap... no<br>
>> checking for library containing ldap_url_desc2str... no<br>
>> checking for library containing ldap_url_parse... no<br>
>> checking for library containing ldap_start_tls_s... no<br>
>> configure: Library 'ldap' support: no (auto)<br>
>> configure: checking auth/basic helpers: LDAP SMB SMB_LM<br>
>> configure: error: required helper auth/basic/LDAP ... found but cannot be built<br>
>><br>
>> Kind regards,<br>
>>       Ankor.<br>
>><br>
>><br>
>> пн, 14 июл. 2025 г. в 18:10, Francesco Chemolli <<a href="mailto:gkinkie@gmail.com" target="_blank">gkinkie@gmail.com</a>>:<br>
>>><br>
>>> Hi Ankor,<br>
>>>   it's really hard to help you with this little context. The main<br>
>>> reason why both these helpers may fail to build is because the LDAP<br>
>>> libraries were not found on the system. Would you mind running on your<br>
>>> system:<br>
>>><br>
>>> $ ./configure --enable-auth-basic=LDAP,SMB,SMB_LM<br>
>>> --enable-auth-negotiate=kerberos,wrapper --enable-auth-ntlm=SMB_LM<br>
>>> --enable-external-acl-helpers=kerberos_ldap_group,wbinfo_group<br>
>>> >/tmp/configure.log 2>&1 && grep -i ldap /tmp/configure.log<br>
>>><br>
>>> and sharing the output from that command?<br>
>>><br>
>>> On Mon, Jul 14, 2025 at 10:38 AM Andrey K <<a href="mailto:ankor2023@gmail.com" target="_blank">ankor2023@gmail.com</a>> wrote:<br>
>>> ><br>
>>> > Hello,<br>
>>> ><br>
>>> > I tried to build squid-7.0.2, but ./configure failed if I use:<br>
>>> > --enable-auth-basic=LDAP,SMB,SMB_LM --enable-auth-negotiate=kerberos,wrapper --enable-auth-ntlm=SMB_LM --enable-external-acl-helpers=kerberos_ldap_group,wbinfo_group<br>
>>> ><br>
>>> > configure: Authentication support enabled: yes<br>
>>> > configure: checking auth/basic helpers: LDAP SMB SMB_LM<br>
>>> > configure: error: required helper auth/basic/LDAP ... found but cannot be built<br>
>>> ><br>
>>> > configure: checking acl/external helpers: kerberos_ldap_group wbinfo_group<br>
>>> > configure: error: required helper acl/external/kerberos_ldap_group ... found but cannot be built<br>
>>> ><br>
>>> > When I remove the LDAP and kerberos_ldap_group options,  ./configure passes smoothly.<br>
>>> ><br>
>>> > I did not observe a similar problem in the Squid-6.<br>
>>> ><br>
>>> > I am building Squid on an OEL-8 Linux with installed openldap-devel and openldap packages.<br>
>>> ><br>
>>> > Kind regards,<br>
>>> >      Ankor.<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > squid-users mailing list<br>
>>> > <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
>>> > <a href="https://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>>     Francesco<br>
<br>
<br>
<br>
-- <br>
    Francesco<br>
</blockquote></div>
</blockquote></div>
</div>
</blockquote></div>