Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77511 - x11-libs/gtk+-1.2.10-r11: libs/libgtk.so: undefined reference to `_Xsetlocale'
Summary: x11-libs/gtk+-1.2.10-r11: libs/libgtk.so: undefined reference to `_Xsetlocale'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 05:33 UTC by Chris
Modified: 2006-09-30 23:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2005-01-11 05:33:37 UTC
While emerging kde with gtk1 support, compiling gives this error
Comment 1 foser (RETIRED) gentoo-dev 2005-01-11 06:28:53 UTC
please follow the bugreport steps closely & provide the full error log & 'emerge info' .

What x11 version are you using ? Maybe a symbol that got removed over time (ABI break).
Comment 2 Chris 2005-01-11 07:07:48 UTC
The full compiler statement:

gcc -O2 -mcpu=pentium4 -fomit-frame-pointer -pipe -Wall -o .libs/testinput testinput.o -rdynamic  ./.libs/libgtk.so -L/usr/lib -L/usr/X11R6/lib ../gdk/.libs/libgdk.so -lXi -lXext -lX11 /usr/lib/libgmodule.so /usr/lib/libglib.so -ldl -lm
./.libs/libgtk.so: undefined reference to `_Xsetlocale'
collect2: ld returned 1 exit status

I am using x11-base/xorg-x11-6.8.0-r3 which was installed after emerging KDE
PS: While emerging x11-libs/gtk+-1.2.10-r11 emerge prints 'Patching ${S}/ltmain.sh Could not apply portage.patch!", could this make trouble?
Comment 3 Chris 2005-01-12 10:33:46 UTC
I resolved the problem. The problem was because I emerged the kernel under Mandrake Linux 10 in a gentoo shell, it seems the package needs some kernel specific files
PS: Gentoo is extremly fast, its the very best I have ever seen!
Comment 4 Kimmo Sundqvist 2006-09-30 14:25:55 UTC
Well, I have almost the same problem, and in a normal Gentoo system with GCC 4.1.1, so please reopen. I will post my emerge info upon request.

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -Os -mtune=pentium3 -pipe -Wall  -o testgtk  testgtk.o libgtk.la ../gdk/libgdk.la -lXi -lXext -lX11 -L/usr/lib -rdynamic -lgmodule -lglib -lm
i686-pc-linux-gnu-gcc -Os -mtune=pentium3 -pipe -Wall -o .libs/testgtk testgtk.o .libs/libgtk.so -L/usr/lib -lgmodule -lglib -lXi -lXext -lX11 -lm ../gdk/.libs/libgdk.so -lgmodule -lglib -lXi -lXext -lX11 -lm -lXi -lXext -lX11 -L/usr/lib -rdynamic -lgmodule -lglib -lm
.libs/libgtk.so: undefined reference to `_Xsetlocale'
collect2: ld returned 1 exit status
make[2]: *** [testgtk] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10'
make: *** [all-recursive-am] Error 2
Comment 5 Kimmo Sundqvist 2006-09-30 14:37:50 UTC
My problem turned up while doing emerge -e, and I have done fix_libtool_files.sh after going from gcc 3.4.6 to 4.1.1
Comment 6 Kimmo Sundqvist 2006-09-30 23:32:54 UTC
Had it work by doing export LC_ALL=en_US and emerge --resume