[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 17:29:11 UTC 2017


Hello Alex
  Sorry and Thanks for the response , I have attached Outputs of both
Configure and Make
  And  libecap.pc contents are as below 

# cat /usr/local/lib/pkgconfig/libecap.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: eCAP
Description: Allows a network application to outsource content analysis and
adaptation to a loadable module.
URL: http://www.e-cap.org/
Version: 1.0.1
Libs: -L${libdir} -lecap
Cflags: -I${includedir}


&&& From make the first instance would be 

libtool: link: rm -f .libs/squid.nm .libs/squid.nmS .libs/squid.nmT
libtool: link: rm -f ".libs/squid.nmI"
libtool: link: (cd .libs && gcc -Wall -g -O2 -c -fno-builtin "squidS.c")
libtool: link: rm -f ".libs/squidS.c" ".libs/squid.nm" ".libs/squid.nmS"
".libs/squid.nmT" ".libs/squid.nmI"

libtool: link: g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow
-Woverloaded-virtual -Werror -pipe -D_REENTRANT -g -O2 -march=native
-std=c++11 .libs/squidS.o -g -o squid AclRegs.o AuthReg.o AccessLogEntry.o
AsyncEngine.o YesNoNone.o cache_cf.o CacheDigest.o cache_manager.o carp.o
cbdata.o ChunkedCodingParser.o client_db.o client_side.o client_side_reply.o
client_side_request.o BodyPipe.o clientStream.o CollapsedForwarding.o
CompletionDispatcher.o ConfigOption.o ConfigParser.o CpuAffinity.o
CpuAffinityMap.o CpuAffinitySet.o debug.o disk.o DiskIO/DiskIOModule.o
DiskIO/ReadRequest.o DiskIO/WriteRequest.o dlink.o dns_internal.o
DnsLookupDetails.o errorpage.o ETag.o event.o EventLoop.o external_acl.o
ExternalACLEntry.o FadingCounter.o fatal.o fd.o fde.o filemap.o fqdncache.o
FwdState.o gopher.o helper.o htcp.o http.o HttpHdrCc.o HttpHdrRange.o
HttpHdrSc.o HttpHdrScTarget.o HttpHdrContRange.o HttpHeader.o
HttpHeaderTools.o HttpBody.o HttpMsg.o HttpParser.o HttpReply.o
RequestFlags.o HttpRequest.o HttpRequestMethod.o icp_v2.o icp_v3.o int.o
internal.o ipc.o ipcache.o SquidList.o main.o MasterXaction.o mem.o
mem_node.o MemBuf.o MemObject.o mime.o mime_header.o multicast.o neighbors.o
Notes.o Packer.o Parsing.o pconn.o peer_digest.o peer_proxy_negotiate_auth.o
peer_select.o peer_sourcehash.o peer_userhash.o PeerPoolMgr.o redirect.o
refresh.o RemovalPolicy.o send-announce.o MemBlob.o SBuf.o SBufExceptions.o
SBufDetailedStats.o SBufStatsAction.o snmp_core.o snmp_agent.o SquidMath.o
SquidNew.o stat.o StatCounters.o StatHist.o String.o StrList.o stmem.o
store.o StoreFileSystem.o store_io.o StoreIOState.o store_client.o
store_digest.o store_dir.o store_key_md5.o store_log.o store_rebuild.o
store_swapin.o store_swapmeta.o store_swapout.o StoreMetaUnpacker.o
StoreMeta.o StoreMetaMD5.o StoreMetaSTD.o StoreMetaSTDLFS.o StoreMetaURL.o
StoreMetaVary.o StoreStats.o StoreSwapLogData.o SwapDir.o Transients.o
MemStore.o time.o tools.o tunnel.o unlinkd.o url.o urn.o wccp.o wccp2.o
whois.o wordlist.o LoadableModule.o LoadableModules.o
DiskIO/DiskIOModules_gen.o err_type.o err_detail_type.o globals.o
hier_code.o icp_opcode.o LogTags.o lookup_t.o repl_modules.o swap_log_op.o
DiskIO/AIO/AIODiskIOModule.o DiskIO/Blocking/BlockingDiskIOModule.o
DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o
DiskIO/DiskThreads/DiskThreadsDiskIOModule.o
DiskIO/IpcIo/IpcIoDiskIOModule.o DiskIO/Mmapped/MmappedDiskIOModule.o
-Wl,--export-dynamic  /root/install/squid-3.5.26/libltdl/./.libs/dlopen.a
auth/.libs/libacls.a ident/.libs/libident.a acl/.libs/libacls.a
acl/.libs/libstate.a auth/.libs/libauth.a libAIO.a libBlocking.a
libDiskDaemon.a libDiskThreads.a libIpcIo.a libMmapped.a acl/.libs/libapi.a
base/.libs/libbase.a ./.libs/libsquid.a ip/.libs/libip.a fs/.libs/libfs.a
ipc/.libs/libipc.a mgr/.libs/libmgr.a anyp/.libs/libanyp.a
comm/.libs/libcomm.a eui/.libs/libeui.a helper/.libs/libhelper.a
http/.libs/libsquid-http.a icmp/.libs/libicmp.a icmp/.libs/libicmp-core.a
log/.libs/liblog.a format/.libs/libformat.a clients/.libs/libclients.a
servers/.libs/libservers.a ftp/.libs/libftp.a repl/liblru.a -lpthread
-lcrypt adaptation/.libs/libadaptation.a snmp/.libs/libsnmp.a
../lib/snmplib/.libs/libsnmplib.a parser/.libs/libsquid-parser.a
../lib/.libs/libmisccontainers.a ../lib/.libs/libmiscencoding.a
../lib/.libs/libmiscutil.a -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
../compat/.libs/libcompat-squid.a -lm -lnsl -lresolv -lrt -L..
../libltdl/.libs/libltdlc.a -ldl
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
Thanks
Naveen

-----Original Message-----
From: Alex Rousskov [mailto:rousskov at measurement-factory.com] 
Sent: Monday, June 12, 2017 10:20 PM
To: norbert.naveen at tayana.in; squid-users at lists.squid-cache.org
Subject: Re: [squid-users] Error Compiling squid-3.5.26 with libecap-1.0.1
on CentOS Linux release 7.3.1611

On 06/12/2017 10:36 AM, Norbert Naveen wrote:
> I have CentOS Linux release 7.3.1611 64 bit

> 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
> /root/install/squid-3.5.26/src/adaptation/ecap/Host.cc:41: undefined 
> reference to `libecap::headerTransferEncoding'

It looks like Squid found eCAP header files but did not find libecap.
Posting ./configure output and the failed linker command (should be right
above the first "undefined reference" error) may help triage this further.
Linking to a complete build log (starting with ./configure) may reduce the
number of follow up questions.

Also, what does /usr/local/lib/pkgconfig/libecap.pc contain?

HTH,

Alex.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ConfigureOutput.txt
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170612/370e861f/attachment-0001.txt>


More information about the squid-users mailing list