Dear List Members,

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.

I resolved all (known) dependencies, but keep running into this problem:
 ---------- 8< ----------------
make[3]: Entering directory '/home/lars/squid-3.5.26/helpers/basic_auth/LDAP'
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
/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
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
basic_ldap_auth.o: In function `open_ldap_connection':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:262: undefined reference to `ldap_initialize'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:297: undefined reference to `ldap_set_option'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:307: undefined reference to `ldap_start_tls_s'
basic_ldap_auth.o: In function `squid_ldap_set_timelimit':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:192: undefined reference to `ldap_set_option'
basic_ldap_auth.o: In function `squid_ldap_set_referrals':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:187: undefined reference to `ldap_set_option'
basic_ldap_auth.o: In function `squid_ldap_set_aliasderef':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:181: undefined reference to `ldap_set_option'
basic_ldap_auth.o: In function `squid_ldap_set_connect_timeout':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:201: undefined reference to `ldap_set_option'
basic_ldap_auth.o: In function `open_ldap_connection':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:285: undefined reference to `ldap_init'
basic_ldap_auth.o: In function `checkLDAP':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:683: undefined reference to `ldap_simple_bind_s'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:692: undefined reference to `ldap_search_s'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:711: undefined reference to `ldap_first_entry'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:717: undefined reference to `ldap_get_dn'
basic_ldap_auth.o: In function `squid_ldap_memfree':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:210: undefined reference to `ldap_memfree'
basic_ldap_auth.o: In function `checkLDAP':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:700: undefined reference to `ldap_err2string'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:733: undefined reference to `ldap_msgfree'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:752: undefined reference to `ldap_compare_s'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:758: undefined reference to `ldap_unbind'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:737: undefined reference to `ldap_unbind'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:685: undefined reference to `ldap_err2string'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:755: undefined reference to `ldap_simple_bind_s'
basic_ldap_auth.o: In function `squid_ldap_errno':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'
basic_ldap_auth.o: In function `main':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:605: undefined reference to `ldap_err2string'
basic_ldap_auth.o: In function `squid_ldap_errno':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'
basic_ldap_auth.o: In function `main':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:610: undefined reference to `ldap_unbind'
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:615: undefined reference to `ldap_unbind'
basic_ldap_auth.o: In function `squid_ldap_errno':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:175: undefined reference to `ldap_get_option'
basic_ldap_auth.o: In function `main':
/home/lars/squid-3.5.26/helpers/basic_auth/LDAP/basic_ldap_auth.cc:601: undefined reference to `ldap_unbind'
collect2: error: ld returned 1 exit status
Makefile:788: recipe for target 'basic_ldap_auth' failed
make[3]: *** [basic_ldap_auth] Error 1
make[3]: Leaving directory '/home/lars/squid-3.5.26/helpers/basic_auth/LDAP'
Makefile:530: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/lars/squid-3.5.26/helpers/basic_auth'
Makefile:529: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lars/squid-3.5.26/helpers'
Makefile:581: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
 ---------- 8< ----------------

my configure options:
 ---------- 8< ----------------
./configure --build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3 \
--srcdir=. \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--datadir=/usr/share/squid3 \
--sysconfdir=/etc/squid3 \
--mandir=/usr/share/man \
--enable-inline \
--disable-arch-native \
--enable-async-io=8 \
--enable-storeio=ufs,aufs,diskd,rock \
--enable-removal-policies=lru,heap \
--enable-delay-pools \
--enable-cache-digests \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB \
--enable-auth-digest=file,LDAP \
--enable-auth-negotiate=kerberos,wrapper \
--enable-auth-ntlm=fake,smb_lm \
--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group \
--enable-url-rewrite-helpers=fake \
--enable-eui \
--enable-esi \
--enable-icmp \
--enable-zph-qos \
--enable-ecap \
--disable-translation \
--with-swapdir=/var/spool/squid3 \
--with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--enable-ssl \
--with-open-ssl=/etc/ssl/openssl.cnf \
--enable-linux-netfilter \
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' \
'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' \
'CPPFLAGS=-D_FORTIFY_SOURCE=2' \
'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'

 ---------- 8< ----------------

any hints or ideas? I guess I am missing some dependency or using outdated/deprecated configure option?

Thanks a lot!
   Lars
 
_______________________________________________
squid-dev mailing list
[email protected]
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to