While emerging kde with gtk1 support, compiling gives this error
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).
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?
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!
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
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
Had it work by doing export LC_ALL=en_US and emerge --resume