Bugzilla – Bug 306
nsc: -ldl dependency problem when GtkConfigStore disabled
Last modified: 2008-09-09 03:37:41 UTC
The following fails on ns-3.2 RC1 and ns-3-dev (from ns-regression): ./waf configure --nsc ./waf details are in the IRC log starting at 15:35: http://colabti.org/irclogger/irclogger_log/ns-3?date=2008-09-03,Wed
patch: http://strlen.de/cradle/ns-3-nsc-libdl.patch
this was fixed yesterday in changeset 693faf7f439b
This bug seems to have crept back in: machine: ns-regression (gcc-4.2.3 Ubuntu x86) [496/536] cxx_link: build/debug/samples/main-callback_2.o -> build/debug/samples/main-callback debug/libns3.so: undefined reference to `dlopen' debug/libns3.so: undefined reference to `dlclose' debug/libns3.so: undefined reference to `dlerror' debug/libns3.so: undefined reference to `dlsym' collect2: ld returned 1 exit status
(changing title to reflect new information) This can be repeated by forcibly disabling gtk-config-store from the build (I didn't see a waf option) and gtk.h won't get pulled in. It can be solved by installing or enabling gtk-config-store.
I can't reproduce this with any gcc I tried it on.
I couldn't reproduce again tonight, so it must have been fixed sometime today.