Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: GTK+-1.2.3 undefined ref to .Xsetlocale



>>>>> "Jonathan" == Jonathan Byrne <jq@example.com> writes:

    Jonathan> On Wed, 12 May 1999, Andrew S. Howell wrote:
    >> Armed with the good old nm command, I just search on the TL3.0
    >> box:
    >> 
    >> cd /usr/lib nm -o *.a *.so.* |grep -i Xsetlocale
    >> 
    >> And it found it in libc.so.5 :(

    Jonathan> My only match on this in /usr/lib was:

Moshiwanai, it was /lib/libc.so.5 NOT /usr/lib

    Jonathan> My libc version is libc-5.4.38-3TL and my glibc version
    Jonathan> is glibc-2.0.7-20TL.

Same here. Though I thought that I upgraded to libc-5.4.46, as part of 
doing an upgrade to the 2.2.7 kernel. RPM says I have it, but no sign
of the libs. Wonder what I messed up now... Ah, wait a minute, they
are under /usr/i486-linuxlibc5/lib.

    Jonathan> Is the libgdk one the one that's causing this problem?
    Jonathan> And having (maybe) found it, what can I now do to get my
    Jonathan> GTK to compile?

The _Xsetlocale is being referred to in one of the libraries or .o
files. Use nm again to find out which. There is an option for the
linker to get it to tell you what it is doing, "-t"

gcc -g -O2 -Wall -o .libs/testgtk testgtk.o .libs/libgtk.so
-L/usr/local/lib -lgmodule -lglib -ldl -L/usr/X11R6/lib -lXi -lXext
-lX11 -lm ../gdk/.libs/libgdk.so -lgmodule -lglib -ldl -lXi -lXext -lX11
-lm -L/usr/X11R6/lib -lXi -lXext -lX11 -L/usr/local/lib -rdynamic
-lgmodule -lglib -ldl -lm -Wl,--rpath -Wl,/usr/local/lib

The linker is going to look for the libs specified with "-l" in
"stadard places", plus the directories specified in the "-L"
options. With the option --trace-symbol _Xsetlocale, the linker should 
tell you what lib or .o it needs it for. You can pass this to the
linker using:

	-Xlinker --trace-symbol -Xlinker _Xsetlocale

Modify the makefile to include these in the LDFLAGS, if not there,
then in CFLAGS.

    Jonathan> BTW, thanks for telling me about nm.  I didn't know
    Jonathan> about that one before.

No problem.

Regards,

	Andy
-------------------------------------------------------------------
Next Nomikai: May 26 (Wed), 19:30                        Place: TBD
*** Special guest: Eric S. Raymond
Next Technical Meeting: June 12 (Sat), 12  :30   place: Temple Univ.
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links