Bug 2095

Summary: make gconfig: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
Product: buildroot Reporter: Slava Zanko <slavazanko>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: trivial CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: 2010.08   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: patch

Description Slava Zanko 2010-06-24 09:14:37 UTC
Version: master branch. Why absent in list of 'Version:' field?

My OS is Fedora-13. When I tried to call make with 'gconfig' target I got error:

/usr/bin/ld: /dot-dot-dot/buildroot/output/build/buildroot-config/kconfig_load.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' 

Attached path avoid this inconsistence. :)
Comment 1 Slava Zanko 2010-06-24 09:15:54 UTC
Created attachment 2077 [details]
patch
Comment 2 Thomas Petazzoni 2010-06-24 10:23:59 UTC
This patch is also in the mainline kernel, at http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cbab05f041a4cff6ca15856bdd35238b282b64eb, so:

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Comment 3 Mitch Davis 2010-06-24 10:39:24 UTC
Patch in kernel notwithstanding, if gtk-2.0 apps need -ldl, I'm wondering why it's not included in the output of pkg-config --libs gtk+-2.0?
Comment 4 Slava Zanko 2010-06-24 10:42:33 UTC
(In reply to comment #3)
> Patch in kernel notwithstanding, if gtk-2.0 apps need -ldl, I'm wondering why
> it's not included in the output of pkg-config --libs gtk+-2.0?

May be, need to fill bugreport in GTK bugzilla instread of patching kernel, buildroot etc...
Comment 5 Slava Zanko 2010-06-24 10:57:32 UTC
Bugreport filled in bugzilla of Gnome: https://bugzilla.gnome.org/show_bug.cgi?id=622585
Comment 6 Thomas Petazzoni 2010-06-24 10:57:55 UTC
Actually, kconfig itself calls dlsym():

buildroot/package/config$ grep dlsym *
kconfig_load.c:	name ## _p = dlsym(handle, #name);	\
Comment 7 Slava Zanko 2010-06-24 11:04:27 UTC
(In reply to comment #6)
> Actually, kconfig itself calls dlsym():

Is this mean, bug independ to GTK?
Comment 8 Slava Zanko 2010-06-24 11:06:23 UTC
(In reply to comment #7)
> Is this mean, bug independ to GTK?

Is this mean that this bug is GTK-independ?

Sorry for my English
Comment 9 Mitch Davis 2010-06-24 11:58:00 UTC
Now I understand (I think).

This is not a fix to find the link line for GTK+ apps in general.  Instead, this fixes the problem where gconfig needs the dl library.  Now the fix looks right to me :-)
Comment 10 Peter Korsgaard 2010-06-24 15:01:41 UTC
Committed, thanks