[Pkg-netsim-devel] Bug#642225: package ftbfs with ld --as-needed

Matthias Klose doko at ubuntu.com
Tue Sep 20 14:19:43 UTC 2011


Package: ns3
Version: 0.10.0-2.1
Severity: important
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric
User: debian-gcc at lists.debian.org
Usertags: ld-as-needed
User: peter.fritzsche at gmx.de
Usertags: no-add-needed

seen in a Ubuntu oneiric chroot:

[1182/1224] static_link:  -> build/debug/libns3-test.a
[1183/1224] cxx_link: build/debug/utils/print-introspected-doxygen_4.o ->
build/debug/utils/print-introspected-doxygen
/usr/bin/ld: debug/libns3-internet.a(nsc-tcp-l4-protocol_264.o): undefined
reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libdl.so so try
adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libdl.so: could
not read symbols: Invalid operation
collect2: ld returned 1 exit status
Waf: Leaving directory `/build/buildd/ns3-3.12.1+dfsg1/ns-3.12.1/build'
Build failed:  -> task failed (err #1):
	{task: cxx_link print-introspected-doxygen_4.o -> print-introspected-doxygen}

apparently it builds in unstable, but the error message points to a build
failure introduced by --no-add-needed.

So how do I get verbose output for line 1183?

I tried to fix it, but apparently that's not the right location.

--- ns3-3.12.1+dfsg1.orig/ns-3.12.1/utils/wscript
+++ ns3-3.12.1+dfsg1/ns-3.12.1/utils/wscript
@@ -28,5 +28,6 @@ def build(bld):

         obj = bld.create_ns3_program('print-introspected-doxygen', ['network'])
         obj.source = 'print-introspected-doxygen.cc'
+        obj.libs = ['dl']
         obj.uselib_local = [mod+"--lib" for mod in env['NS3_ENABLED_MODULES']]






More information about the Pkg-netsim-devel mailing list