Bug 306 - nsc: -ldl dependency problem when GtkConfigStore disabled
: nsc: -ldl dependency problem when GtkConfigStore disabled
Status: RESOLVED FIXED
: ns-3
internet-stack
: ns-3.2
: All Linux
: P1 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-09-03 17:04 EDT by
Modified: 2008-09-09 03:37 EDT (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-09-03 17:04:54 EDT
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 From 2008-09-03 17:12:08 EDT -------
patch: http://strlen.de/cradle/ns-3-nsc-libdl.patch
------- Comment #2 From 2008-09-04 11:24:22 EDT -------
this was fixed yesterday in changeset 693faf7f439b
------- Comment #3 From 2008-09-07 12:28:34 EDT -------
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 From 2008-09-08 09:37:15 EDT -------
(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 From 2008-09-08 12:38:05 EDT -------
I can't reproduce this with any gcc I tried it on.
------- Comment #6 From 2008-09-09 03:37:41 EDT -------
I couldn't reproduce again tonight, so it must have been fixed sometime today.