[squid-users] Compiling squid 3.5.4 with ecap enabled.
Ashish Behl
ashish_behl at yahoo.com
Thu May 21 07:58:50 UTC 2015
Hello All,
I am trying to compile squid with ecap enabled (--enable-ecap)
I have compiled ecap already and placed the install files in /opt/ecap-1.0
=========================================================
curl -LOR http://www.measurement-factory.com/tmp/ecap/libecap-1.0.0.tar.gz
tar -xzvf libecap-1.0.0.tar.gz && cd libecap-1.0.0.tar.gz
./configure --prefix=/opt/ecap-1.0 'CXXFLAGS=-O2 -pipe' 'CFLAGS=-O2 -pipe'
make
sudo make install
=========================================================
I then try to compile squid in following ways (ommitted other options,
thought they are non-relevant):
a)
./configure --prefix=/usr CFLAGS="-g -O2 -fPIC -Wall" LDFLAGS="-fPIC -pie
-Wl,-z,relro -Wl,-z,now" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2
-fPIC " --enable-ecap PKG_CONFIG_PATH=/opt/ecap-1.0/lib/pkgconfig
b)
./configure --prefix=/usr CFLAGS="-g -O2 -fPIC -Wall" LDFLAGS="-fPIC -pie
-Wl,-z,relro -Wl,-z,now" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2
-fPIC " --enable-ecap PKG_CONFIG=/opt/ecap-1.0/lib/pkgconfig/libecap.pc
c)
./configure --prefix=/usr CFLAGS="-g -O2 -fPIC -Wall" LDFLAGS="-fPIC -pie
-Wl,-z,relro -Wl,-z,now" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2
-fPIC " --enable-ecap PKG_CONFIG=/opt/ecap-1.0/lib/pkgconfig/libecap.pc
EXT_LIBECAP_CFLAGS='-I/opt/ecap-1.0/include -L/opt/ecap-1.0/lib'
EXT_LIBECAP_LIBS='/opt/ecap-1.0/lib/libecap.a'
I am not able to succeed and always get undefined references for libecap
methods.
Please let me know if anyone has tried it already, or there is a bug..
compiling output:
=========================================================
adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o): In function
`Adaptation::Ecap::Host::Host()':
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:41: undefined
reference to `libecap::headerTransferEncoding'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:41: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:42: undefined
reference to `libecap::headerReferer'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:42: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:43: undefined
reference to `libecap::headerContentLength'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:43: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:44: undefined
reference to `libecap::headerVia'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:44: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:48: undefined
reference to `libecap::protocolHttp'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:48: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:49: undefined
reference to `libecap::protocolHttps'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:49: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:50: undefined
reference to `libecap::protocolFtp'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:50: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:51: undefined
reference to `libecap::protocolGopher'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:51: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:52: undefined
reference to `libecap::protocolWais'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:52: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:53: undefined
reference to `libecap::protocolUrn'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:53: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:54: undefined
reference to `libecap::protocolWhois'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:54: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:55: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:56: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:58: undefined
reference to `libecap::Name::assignHostId(int) const'
/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:60: undefined
reference to `libecap::Name::assignHostId(int) const'
adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o):/root/installer/squid-ssl-3.5.4/src/adaptation/ecap/Host.cc:61:
more undefined references to `libecap::Name::assignHostId(int) const' follow
.....
and more....
======================================================================
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Compiling-squid-3-5-4-with-ecap-enabled-tp4671325.html
Sent from the Squid - Users mailing list archive at Nabble.com.
More information about the squid-users
mailing list