trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Maidment <Rob.Maidm...@clearswift.com>
Subject RE: linker problem "defined in discarded section"
Date Mon, 12 Jul 2010 12:45:20 GMT
Ok, I'm making progress now.  I noticed in the thread that Alan referred me to that someone
had worked around the problem by disabling compiler optimisation.  That worked for me too,
although in fact all I needed to do was disable inline functions, ie:

-O3 -fno-inline-functions

This worked for 2.0.0 and 2.1.1-unstable.  

So now I have to decide which version to test with.  I'm interested in measuring performance
and trying out some of the plug-in interfaces to see if trafficserver might be suitable for
my application.  Which version do you recommend?  How unstable is 2.1.1?  

Rob.


-----Original Message-----
From: Rob Maidment [mailto:Rob.Maidment@clearswift.com] 
Sent: 12 July 2010 09:56
To: dev@trafficserver.apache.org
Subject: RE: linker problem "defined in discarded section"

Same problem with v2.1.1-unstable:

`.gnu.linkonce.t._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
referenced in section `.gnu.linkonce.r._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
of ../iocore/cache/libinkcache.a(Cache.o): defined in discarded section `.gnu.linkonce.t._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
of ../iocore/cache/libinkcache.a(Cache.o)



-----Original Message-----
From: Rob Maidment [mailto:Rob.Maidment@clearswift.com] 
Sent: 09 July 2010 17:04
To: dev@trafficserver.apache.org
Subject: linker problem "defined in discarded section"

Hello all, I hope someone can help.

I'm having problems building traffic server 2.0.0:


make[2]: Entering directory `/root/trafficserver/trafficserver-2.0.0/proxy'
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -pipe -Wall -Werror -Wno-char-subscripts
-Wno-write-strings -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof
 -march=i586 -rdynamic  -o traffic_server traffic_server-AbstractBuffer.o traffic_server-CacheControl.o
traffic_server-CacheInspectorAllow.o traffic_server-Config.o traffic_server-ControlBase.o
traffic_server-ControlMatcher.o traffic_server-CoreUtils.o traffic_server-DiagsConfig.o traffic_server-Error.o
traffic_server-EventName.o traffic_server-ICP.o traffic_server-ICPConfig.o traffic_server-ICPProcessor.o
traffic_server-ICPStats.o traffic_server-InkAPI.o traffic_server-InkAPITest.o traffic_server-InkIOCoreAPI.o
traffic_server-InkXml.o traffic_server-IPAllow.o traffic_server-Main.o traffic_server-ParentSelection.o
traffic_server-Plugin.o traffic_server-PluginDB.o traffic_server-PluginVC.o traffic_server-Prefetch.o
traffic_server-ReverseProxy.o traffic_server-signals.o traffic_server-SocksProxy.o traffic_server-StatPages.o
traffic_server-StatSystem.o traffic_server-TestHook.o traffic_server-Transform.o traffic_server-Update.o
http2/libhttp.a congest/libCongestionControl.a dns_cache/libdnscache.a logging/liblogging.a
stats/libstats.a hdrs/libhdrs.a mgmt2/preparse/libpreparse.a mgmt2/utils/libutils_p.a mgmt2/libmgmt_p.a
../iocore/utils/libinkutils.a ../iocore/cluster/libinkcluster.a ../iocore/dns/libinkdns.a
../iocore/hostdb/libinkhostdb.a ../iocore/dns/libinkdns.a ../iocore/cluster/libinkcluster.a
../iocore/cache/libinkcache.a ../iocore/aio/libinkaio.a ../iocore/net/libinknet.a ../iocore/eventsystem/libinkevent.a
../librecords/librecprocess.a ../iocore/eventsystem/libinkevent.a ../libinktomi++/libinktomi++.a
-lpthread  -lnsl -lresolv -lrt -lpcre  -lsqlite3 -lssl -lcrypto -ltcl8.4 -ldl -lexpat
libtool: link: g++ -g -pipe -Wall -Werror -Wno-char-subscripts -Wno-write-strings -O3 -feliminate-unused-debug-symbols
-fno-strict-aliasing -Wno-invalid-offsetof -march=i586 -rdynamic -o traffic_server traffic_server-AbstractBuffer.o
traffic_server-CacheControl.o traffic_server-CacheInspectorAllow.o traffic_server-Config.o
traffic_server-ControlBase.o traffic_server-ControlMatcher.o traffic_server-CoreUtils.o traffic_server-DiagsConfig.o
traffic_server-Error.o traffic_server-EventName.o traffic_server-ICP.o traffic_server-ICPConfig.o
traffic_server-ICPProcessor.o traffic_server-ICPStats.o traffic_server-InkAPI.o traffic_server-InkAPITest.o
traffic_server-InkIOCoreAPI.o traffic_server-InkXml.o traffic_server-IPAllow.o traffic_server-Main.o
traffic_server-ParentSelection.o traffic_server-Plugin.o traffic_server-PluginDB.o traffic_server-PluginVC.o
traffic_server-Prefetch.o traffic_server-ReverseProxy.o traffic_server-signals.o traffic_server-SocksProxy.o
traffic_server-StatPages.o traffic_server-StatSystem.o traffic_server-TestHook.o traffic_server-Transform.o
traffic_server-Update.o  http2/libhttp.a congest/libCongestionControl.a dns_cache/libdnscache.a
logging/liblogging.a stats/libstats.a hdrs/libhdrs.a mgmt2/preparse/libpreparse.a mgmt2/utils/libutils_p.a
mgmt2/libmgmt_p.a ../iocore/utils/libinkutils.a ../iocore/hostdb/libinkhostdb.a ../iocore/dns/libinkdns.a
../iocore/cluster/libinkcluster.a ../iocore/cache/libinkcache.a ../iocore/aio/libinkaio.a
../iocore/net/libinknet.a ../librecords/librecprocess.a ../iocore/eventsystem/libinkevent.a
../libinktomi++/libinktomi++.a -lnsl -lresolv -lrt /usr/local/lib/libpcre.so /usr/local/lib/libsqlite3.so
-lpthread -lssl -lcrypto -ltcl8.4 -ldl /usr/lib/libexpat.so
`.gnu.linkonce.t._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
referenced in section `.gnu.linkonce.r._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
of ../iocore/cache/libinkcache.a(Cache.o): defined in discarded section `.gnu.linkonce.t._Z12Cluster_readP14ClusterMachineiP12ContinuationP9MIOBufferP3URLP7HTTPHdrP21CacheLookupHttpConfigP7INK_MD5l13CacheFragTypePci'
of ../iocore/cache/libinkcache.a(Cache.o)
collect2: ld returned 1 exit status
make[2]: *** [traffic_server] Error 1
make[2]: Leaving directory `/root/trafficserver/trafficserver-2.0.0/proxy'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/trafficserver/trafficserver-2.0.0/proxy'
make: *** [all-recursive] Error 1

You can see the compiler/linker version I'm using here:

# uname -r
2.6.32.7

# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.4.0/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
--disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.4.0 (GCC)

# ld -v
GNU ld version 2.15.91.0.2 20040727

# g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.4.0/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
--disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.4.0 (GCC)

Can anybody help?
thanks,
Rob Maidment




This e-mail and any files transmitted with it are strictly confidential, may be privileged
and are intended only for use by the addressee unless otherwise indicated.  If you are not
the intended recipient any use, dissemination, printing or copying is strictly prohibited
and may be unlawful.  If you have received this e-mail in error, please delete it immediately
and contact the sender as soon as possible.  Clearswift cannot be held liable for delays in
receipt of an email or any errors in its content. Clearswift accepts no responsibility once
an e-mail and any attachments leave us. Unless expressly stated, opinions in this message
are those of the individual sender and not of Clearswift.

This email message has been inspected by Clearswift for inappropriate content and security
threats. 

To find out more about Clearswift’s solutions please visit www.clearswift.com

------------------------------------------------------------------------
Message Processed by the MIMEsweeper TM SMTP Appliance

------------------------------------------------------------------------
Message Processed by the MIMEsweeper TM SMTP Appliance
Mime
View raw message