I seem to be having trouble with the dynamic linker on ppc. I don't know if this a problem with the current Linuxppc ld.so, but it is for me (I'm running debian/ppc...latest as of yesterday)
It doesn't seem to be loading shared library dependancies, which I'm told works on x86, alpha, and ?some? ppc builds? Is it just broken for debian/ppc right now? Here is an example: (trying to build a program that uses SDL, which depends on libX11 and libXext) btw, this same compile works on a x86 box. (debian, slack, and redhat tested) ------------------- $ uname -a Linux majere.nightshade.org 2.2.14pre9 #82 Tue Nov 30 20:31:09 EST 1999 ppc unknown gcc -g -O2 -I/usr/local/include -D_REENTRANT -o checkkeys checkkeys.o -L/usr /local/lib -lSDL -lpthread /usr/bin/ld: warning: libX11.so.6, needed by /usr/local/lib/libSDL.so, not found (try using --rpath) /usr/bin/ld: warning: libXext.so.6, needed by /usr/local/lib/libSDL.so, not found (try using --rpath) /usr/local/lib/libSDL.so: undefined reference to `XSetInputFocus' /usr/local/lib/libSDL.so: undefined reference to `XSetWMProtocols' /usr/local/lib/libSDL.so: undefined reference to `XSetWMIconName' /usr/local/lib/libSDL.so: undefined reference to `XShmDetach' /usr/local/lib/libSDL.so: undefined reference to `XImageByteOrder' ... [many more error lines, with every X function that SDL uses, I assume] To fix this, I can add -L/usr/X11R6/lib -lX11 -lXext to my compile line, but shouldn't this be done somehow automatically? i.e., it's not my program that's using libX11/Xext, but libSDL. Thoughts? Josh