Bug 306 - nsc: -ldl dependency problem when GtkConfigStore disabled
nsc: -ldl dependency problem when GtkConfigStore disabled
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3.2
All Linux
: P1 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-03 17:04 UTC by Tom Henderson
Modified: 2008-09-09 03:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2008-09-03 17:04:54 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
Comment 1 Mathieu Lacage 2008-09-03 17:12:08 UTC
patch: http://strlen.de/cradle/ns-3-nsc-libdl.patch
Comment 2 Tom Henderson 2008-09-04 11:24:22 UTC
this was fixed yesterday in changeset 693faf7f439b
Comment 3 Tom Henderson 2008-09-07 12:28:34 UTC
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
Comment 4 Tom Henderson 2008-09-08 09:37:15 UTC
(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.
Comment 5 Mathieu Lacage 2008-09-08 12:38:05 UTC
I can't reproduce this with any gcc I tried it on.
Comment 6 Tom Henderson 2008-09-09 03:37:41 UTC
I couldn't reproduce again tonight, so it must have been fixed sometime today.