<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear List Members,<br/>
<br/>
I tried to compile squid version 3.5.26 on my debian machine. Reason to do: enable the https capabilities and get a stable up-to-date system i can trust as a router.<br/>
<br/>
I resolved all (known) dependencies, but keep running into this problem:<br/>
 ---------- 8< ----------------<br/>
make[3]: Entering directory '/home/lars/squid-3.5.26/helpers/basic_auth/LDAP'<br/>
g++ -DHAVE_CONFIG_H   -I../../.. -I../../../include -I../../../lib -I../../../src -I../../../include  -isystem /usr/include/mit-krb5isystem /usr/include/mit-krb5   -I/usr/include/libxml2 -D_FORTIFY_SOURCE=2 -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-stris -Wcomments -Wshadow -Woverloaded-virtual -Werror -pipe -D_REENTRANT -m64 -I/usr/include/p11-kit-1  -g -O2 -fPIE -fstack-protector-rong -Wformat -Werror=format-security -std=c++11 -c -o basic_ldap_auth.o basic_ldap_auth.cc<br/>
/bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshow -Woverloaded-virtual -Werror -pipe -D_REENTRANT -m64 -I/usr/include/p11-kit-1  -g -O2 -fPIE -fstack-protector-strong -Wformat -Weor=format-security -std=c++11  -m64 -fPIE -pie -Wl,-z,relro -Wl,-z,now -o basic_ldap_auth basic_ldap_auth.o ../../../lib/libmiscencong.la ../../../compat/libcompat-squid.la   -llber<br/>
libtool: link: g++ -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual -Werror -pi -D_REENTRANT -m64 -I/usr/include/p11-kit-1 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -m64 -IE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o basic_ldap_auth basic_ldap_auth.o  ../../../lib/.libs/libmiscencoding.a ../../../compat/.bs/libcompat-squid.a -llber<br/>
basic_ldap_auth.o: In function `open_ldap_connection':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:262: undefined reference to `ldap_initialize'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:297: undefined reference to `ldap_set_option'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:307: undefined reference to `ldap_start_tls_s'<br/>
basic_ldap_auth.o: In function `squid_ldap_set_timelimit':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:192: undefined reference to `ldap_set_option'<br/>
basic_ldap_auth.o: In function `squid_ldap_set_referrals':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:187: undefined reference to `ldap_set_option'<br/>
basic_ldap_auth.o: In function `squid_ldap_set_aliasderef':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:181: undefined reference to `ldap_set_option'<br/>
basic_ldap_auth.o: In function `squid_ldap_set_connect_timeout':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:201: undefined reference to `ldap_set_option'<br/>
basic_ldap_auth.o: In function `open_ldap_connection':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:285: undefined reference to `ldap_init'<br/>
basic_ldap_auth.o: In function `checkLDAP':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:683: undefined reference to `ldap_simple_bind_s'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:692: undefined reference to `ldap_search_s'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:711: undefined reference to `ldap_first_entry'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:717: undefined reference to `ldap_get_dn'<br/>
basic_ldap_auth.o: In function `squid_ldap_memfree':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:210: undefined reference to `ldap_memfree'<br/>
basic_ldap_auth.o: In function `checkLDAP':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:700: undefined reference to `ldap_err2string'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:733: undefined reference to `ldap_msgfree'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:752: undefined reference to `ldap_compare_s'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:758: undefined reference to `ldap_unbind'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:737: undefined reference to `ldap_unbind'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:685: undefined reference to `ldap_err2string'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:755: undefined reference to `ldap_simple_bind_s'<br/>
basic_ldap_auth.o: In function `squid_ldap_errno':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'<br/>
basic_ldap_auth.o: In function `main':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:605: undefined reference to `ldap_err2string'<br/>
basic_ldap_auth.o: In function `squid_ldap_errno':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'<br/>
basic_ldap_auth.o: In function `main':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:610: undefined reference to `ldap_unbind'<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:615: undefined reference to `ldap_unbind'<br/>
basic_ldap_auth.o: In function `squid_ldap_errno':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'<br/>
basic_ldap_auth.o: In function `main':<br/>
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:601: undefined reference to `ldap_unbind'<br/>
collect2: error: ld returned 1 exit status<br/>
Makefile:788: recipe for target 'basic_ldap_auth' failed<br/>
make[3]: *** [basic_ldap_auth] Error 1<br/>
make[3]: Leaving directory '/home/lars/squid-3.5.26/helpers/basic_auth/LDAP'<br/>
Makefile:530: recipe for target 'all-recursive' failed<br/>
make[2]: *** [all-recursive] Error 1<br/>
make[2]: Leaving directory '/home/lars/squid-3.5.26/helpers/basic_auth'<br/>
Makefile:529: recipe for target 'all-recursive' failed<br/>
make[1]: *** [all-recursive] Error 1<br/>
make[1]: Leaving directory '/home/lars/squid-3.5.26/helpers'<br/>
Makefile:581: recipe for target 'all-recursive' failed<br/>
make: *** [all-recursive] Error 1<br/>
 ---------- 8< ----------------<br/>
<br/>
my configure options:<br/>
 ---------- 8< ----------------<br/>
<code>./configure --build=x86_64-linux-gnu \<br/>
--prefix=/usr \<br/>
--includedir=${prefix}/include \<br/>
--mandir=${prefix}/share/man \<br/>
--infodir=${prefix}/share/info \<br/>
--sysconfdir=/etc \<br/>
--localstatedir=/var \<br/>
--libexecdir=${prefix}/lib/squid3 \<br/>
--srcdir=. \<br/>
--disable-maintainer-mode \<br/>
--disable-dependency-tracking \<br/>
--disable-silent-rules \<br/>
--datadir=/usr/share/squid3 \<br/>
--sysconfdir=/etc/squid3 \<br/>
--mandir=/usr/share/man \<br/>
--enable-inline \<br/>
--disable-arch-native \<br/>
--enable-async-io=8 \<br/>
--enable-storeio=ufs,aufs,diskd,rock \<br/>
--enable-removal-policies=lru,heap \<br/>
--enable-delay-pools \<br/>
--enable-cache-digests \<br/>
--enable-icap-client \<br/>
--enable-follow-x-forwarded-for \<br/>
--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB \<br/>
--enable-auth-digest=file,LDAP \<br/>
--enable-auth-negotiate=kerberos,wrapper \<br/>
--enable-auth-ntlm=fake,smb_lm \<br/>
--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group \<br/>
--enable-url-rewrite-helpers=fake \<br/>
--enable-eui \<br/>
--enable-esi \<br/>
--enable-icmp \<br/>
--enable-zph-qos \<br/>
--enable-ecap \<br/>
--disable-translation \<br/>
--with-swapdir=/var/spool/squid3 \<br/>
--with-logdir=/var/log/squid3 \<br/>
--with-pidfile=/var/run/squid3.pid \<br/>
--with-filedescriptors=65536 \<br/>
--with-large-files \<br/>
--with-default-user=proxy \<br/>
--enable-ssl \<br/>
--with-open-ssl=/etc/ssl/openssl.cnf \<br/>
--enable-linux-netfilter \<br/>
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' \<br/>
'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' \<br/>
'CPPFLAGS=-D_FORTIFY_SOURCE=2' \<br/>
'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'</code><br/>
 ---------- 8< ----------------<br/>
<br/>
any hints or ideas? I guess I am missing some dependency or using outdated/deprecated configure option?<br/>
<br/>
Thanks a lot!<br/>
   Lars<br/>
 </div></div></body></html>