On Fri, Jul 2, 2010 at 3:44 PM, Zeller, Jan (ID) <jan.zeller@xxxxxxxxxxx> wrote: > Dear list, > > unfortunately I am unable to compile squid-3.1.5 on Debian lenny 5.0.5 > > $ uname -srvmpio > Linux 2.6.26-2-amd64 #1 SMP Sun Jun 20 20:16:30 UTC 2010 x86_64 unknown unknown GNU/Linux > > $ ./configure --prefix=/opt/squid-3.1.5 --enable-icap-client --enable-ssl --disable-translation --disable-auto-locale --enable-linux-netfilter --with-pthreads --with-filedescriptors=32768 --enable-storeio=ufs,aufs --enable-removal-policies=lru,heap > > . > . > > $ make > > . > . > > depbase=`echo LoadableModule.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/opt/squid-3.1.5/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid-3.1.5/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid-3.1.5/etc\" -I.. -I../include -I../src -I../include -I../src -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT LoadableModule.o -MD -MP -MF $depbase.Tpo -c -o LoadableModule.o LoadableModule.cc &&\ > mv -f $depbase.Tpo $depbase.Po > In file included from LoadableModule.cc:10: > ../libltdl/ltdl.h:36:31: error: libltdl/lt_system.h: No such file or directory > ../libltdl/ltdl.h:37:30: error: libltdl/lt_error.h: No such file or directory > ../libltdl/ltdl.h:38:33: error: libltdl/lt_dlloader.h: No such file or directory > depbase=`echo LoadableModules.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > g++ -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/opt/squid-3.1.5/etc/squid.conf\" -DDEFAULT_SQUID_DATA_DIR=\"/opt/squid-3.1.5/share\" -DDEFAULT_SQUID_CONFIG_DIR=\"/opt/squid-3.1.5/etc\" -I.. -I../include -I../src -I../include -I../src -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT LoadableModules.o -MD -MP -MF $depbase.Tpo -c -o LoadableModules.o LoadableModules.cc &&\ > mv -f $depbase.Tpo $depbase.Po > In file included from LoadableModule.cc:10: > ../libltdl/ltdl.h:50: error: expected constructor, destructor, or type conversion before 'typedef' > ../libltdl/ltdl.h:53: error: expected constructor, destructor, or type conversion before 'int' > . > . > > > ii libltdl3 1.5.26-4+lenny1 A system independent dlopen wrapper for GNU libtool > ii libltdl3-dev 1.5.26-4+lenny1 A system independent dlopen wrapper for GNU libtool > > are installed on my box but the necessary lt_system.h, lt_error.h, lt_dlloader.h seems not to be in those packages. > > see http://packages.debian.org > > What am I doing wrong ? I never had this problem before. Any hint ? > > kind regards, > > --- > > Jan > Try setting CPPFLAGS before running configure. Doing this lets you use the libtool version included with the source. I think the build scripts were supposed to take care of this but they don't. $ declare -x CPPFLAGS="-I../libltdl" $ ./configure (your configure options) $ make -- Sean