[squid-users] Error Compiling squid-3.5.26 with libecap-1.0.1 on CentOS Linux release 7.3.1611

Norbert Naveen norbert.naveen at tayana.in
Mon Jun 12 16:36:34 UTC 2017


Hello 

 

I have CentOS Linux release 7.3.1611 64 bit 

 On the same I tried to Install the below 

 

cd libecap-1.0.1

./configure 'CXXFLAGS=-O2 -m64 -pipe' 'CFLAGS=-O2 -m64 -pipe'

gmake

gmake install-strip

 

cd squid-3.5.26

./configure '--enable-ecap' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig'

make 

 

Towards the end receive the error as below . Attaching the complete 

 

 

adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o): In function
`Adaptation::Ecap::Host::Host()':

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:41: undefined
reference to `libecap::headerTransferEncoding'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:41: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:42: undefined
reference to `libecap::headerReferer'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:42: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:43: undefined
reference to `libecap::headerContentLength'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:43: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:44: undefined
reference to `libecap::headerVia'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:44: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:48: undefined
reference to `libecap::protocolHttp'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:48: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:49: undefined
reference to `libecap::protocolHttps'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:49: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:50: undefined
reference to `libecap::protocolFtp'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:50: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:51: undefined
reference to `libecap::protocolGopher'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:51: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:52: undefined
reference to `libecap::protocolWais'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:52: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:53: undefined
reference to `libecap::protocolUrn'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:53: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:54: undefined
reference to `libecap::protocolWhois'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:54: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:55: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:56: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:58: undefined
reference to `libecap::Name::assignHostId(int) const'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:60: undefined
reference to `libecap::Name::assignHostId(int) const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o):/root/install/squi
d-3.5.26/src/adaptation/ecap/Host.cc:61: more undefined references to
`libecap::Name::assignHostId(int) const' follow

adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o): In function
`Adaptation::Ecap::Host::Register()':

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:178: undefined
reference to `libecap::VersionString()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:180: undefined
reference to
`libecap::RegisterHost(std::tr1::shared_ptr<libecap::host::Host> const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-Host.o): In function
`_GLOBAL__sub_I_Host.cc':

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:22: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:22: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:23: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:23: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:24: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:24: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:26: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:26: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:28: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:28: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:29: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:29: undefined
reference to `libecap::Name::Name(std::string const&, int)'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:31: undefined
reference to `libecap::Name::NextId()'

/root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:31: undefined
reference to `libecap::Name::Name(std::string const&, int)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::MessageRep::~MessageRep()':

/usr/local/include/libecap/common/message.h:16: undefined reference to
`vtable for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::RequestLineRep::method(libecap::Name const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:231: undefined
reference to `libecap::Name::assignedHostId() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::RequestLineRep::uri() const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:225: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::StatusLineRep::reasonPhrase() const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:321: undefined
reference to `libecap::Area::FromTempString(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::RequestLineRep::uri(libecap::Area const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:213: undefined
reference to `libecap::Area::toString() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::RequestLineRep::method() const':

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodDelete'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodGet'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodPost'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodPut'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodHead'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodConnect'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::methodTrace'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::RequestLineRep::method() const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:262: undefined
reference to `libecap::Name::Name(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::HeaderRep::image() const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:99: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::HeaderRep::TranslateHeaderId(libecap::Name const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:116: undefined
reference to `libecap::Name::assignedHostId() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::HeaderRep::add(libecap::Name const&, libecap::Area
const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:58: undefined
reference to `libecap::Area::toString() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::HeaderRep::value(libecap::Name const&) const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:50: undefined
reference to `libecap::Area::FromTempString(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::FirstLineRep::protocol() const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:182: undefined
reference to `libecap::Name::Name()'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::FirstLineRep::protocol() const':

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolHttp'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolFtp'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolHttps'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolGopher'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolWais'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolUrn'

/usr/local/include/libecap/common/name.h:14: undefined reference to
`libecap::protocolWhois'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::FirstLineRep::TranslateProtocolId(libecap::Name const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:195: undefined
reference to `libecap::Name::assignedHostId() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::MessageRep::MessageRep(HttpMsg*)':

/usr/local/include/libecap/common/message.h:16: undefined reference to
`vtable for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o): In function
`Adaptation::Ecap::HeaderRep::visitEach(libecap::NamedValueVisitor&) const':

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:83: undefined
reference to `libecap::Name::Name(std::string const&)'

/root/install/squid-3.5.26/src/adaptation/ecap/MessageRep.cc:84: undefined
reference to `libecap::Name::assignHostId(int) const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o):(.data.rel.r
o._ZTIN10Adaptation4Ecap10MessageRepE[_ZTIN10Adaptation4Ecap10MessageRepE]+0
x10): undefined reference to `typeinfo for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-MessageRep.o):(.data.rel.r
o._ZTVN10Adaptation4Ecap10MessageRepE[_ZTVN10Adaptation4Ecap10MessageRepE]+0
x60): undefined reference to `libecap::Message::addTrailer()'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-ServiceRep.o): In function
`Adaptation::Ecap::ConfigRep::option(libecap::Name const&) const':

/root/install/squid-3.5.26/src/adaptation/ecap/ServiceRep.cc:86: undefined
reference to `libecap::Name::Name(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-ServiceRep.o): In function
`Adaptation::Ecap::ConfigRep::visitEachOption(libecap::NamedValueVisitor&)
const':

/root/install/squid-3.5.26/src/adaptation/ecap/ServiceRep.cc:102: undefined
reference to `libecap::Area::FromTempString(std::string const&)'

/root/install/squid-3.5.26/src/adaptation/ecap/ServiceRep.cc:102: undefined
reference to `libecap::Name::Name(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::clientIpValue() const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:140: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::usernameValue() const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:155: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:158: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::metaValue(libecap::Name const&) const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:194: undefined
reference to `libecap::Area::FromTempString(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::answer()':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:328: undefined
reference to `typeinfo for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::status() const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:718: undefined
reference to `typeinfo for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::moveAbContent()':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:681: undefined
reference to `libecap::nsize'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::visitEachMetaHeader(libecap::NamedValueVisito
r&) const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:216: undefined
reference to `libecap::Name::Name(std::string const&)'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:217: undefined
reference to `libecap::Area::FromTempString(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::updateHistory(HttpMsg*)':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:476: undefined
reference to `libecap::Name::Name(std::string const&)'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:478: undefined
reference to `libecap::Area::toString() const'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:485: undefined
reference to `libecap::metaNextServices'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:488: undefined
reference to `libecap::Area::toString() const'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::masterxSharedValue(libecap::Name const&)
const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:175: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::visitEachOption(libecap::NamedValueVisitor&)
const':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:106: undefined
reference to `libecap::metaClientIp'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:108: undefined
reference to `libecap::metaUserName'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:111: undefined
reference to `libecap::Name::Name(std::string const&)'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`libecap::Name::operator==(libecap::Name const&) const':

/usr/local/include/libecap/common/name.h:27: undefined reference to
`libecap::metaClientIp'

/usr/local/include/libecap/common/name.h:27: undefined reference to
`libecap::metaUserName'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`std::string::_M_data() const':

/usr/include/c++/4.8.2/bits/basic_string.h:293: undefined reference to
`libecap::metaClientIp'

/usr/include/c++/4.8.2/bits/basic_string.h:293: undefined reference to
`libecap::metaUserName'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::vbContent(unsigned long, unsigned long)':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:562: undefined
reference to `libecap::nsize'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:567: undefined
reference to `libecap::Area::FromTempBuffer(char const*, unsigned long)'

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:562: undefined
reference to `libecap::nsize'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`Adaptation::Ecap::XactionRep::useAdapted(std::tr1::shared_ptr<libecap::Mess
age> const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:430: undefined
reference to `typeinfo for libecap::Message'

adaptation/.libs/libadaptation.a(libsquid_ecap_la-XactionRep.o): In function
`OptionsExtractor::visit(libecap::Name const&, libecap::Area const&)':

/root/install/squid-3.5.26/src/adaptation/ecap/XactionRep.cc:41: undefined
reference to `libecap::Area::toString() const'

collect2: error: ld returned 1 exit status

libtool: link: rm -f ".libs/squidS.o"

make[3]: *** [squid] Error 1

make[3]: Leaving directory `/root/install/squid-3.5.26/src'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/root/install/squid-3.5.26/src'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/root/install/squid-3.5.26/src'

make: *** [all-recursive] Error 1

 

Shall attach the complete output of make subsequently if required

 

 

Thanks for the help in Advance 

 

Rgds

Naveen

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170612/b5095697/attachment-0001.html>


More information about the squid-users mailing list