On Monday 30 October 2006 18:15, Mike Marion wrote:
On Mon, Oct 30, 2006 at 05:03:51PM -0800, Dan Sawyer wrote:
Okay. This is happening when invoking autoconfig through configure or scons - how can I get them to automatically go for the dynamically linked libX11.so?
See if it has a shared or --shared option you can pass to configure. Sometimes people setup their configure so they default to not doing shared libraries and you have to pass the option.
Ok, I'm trying to compile the gstreamer cvs and am running into the problem here, so it's a good specific instance. It defaults to shared libraries, and it also allows you to explicitly specify shared libraries. Alas, it is still failing on trying to link to libX11.a - here's the make output... echo "local: *; };" >> .libs/libgstximagesink.ver gcc -shared .libs/libgstximagesink_la-ximagesink.o .libs/libgstximagesink_la-ximage.o -Wl,--rpath -Wl,/home/thedude/downloads/gst-plugins-base/gst-libs/gst/interfaces/.libs -Wl,--rpath -Wl,/home/thedude/downloads/gst-plugins-base/gst-libs/gst/video/.libs ../../gst-libs/gst/interfaces/.libs/libgstinterfaces-0.10.so -L/usr/local/lib -L/opt/gnome/lib64 -L/usr/lib64 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../lib64/ ../../gst-libs/gst/video/.libs/libgstvideo-0.10.so /usr/local/lib/libgstbase-0.10.so /usr/local/lib/libgstreamer-0.10.so /opt/gnome/lib64/libgobject-2.0.so /opt/gnome/lib64/libgmodule-2.0.so -ldl /opt/gnome/lib64/libgthread-2.0.so /usr/lib64/libxml2.so -lz -lm /opt/gnome/lib64/libglib-2.0.so -L/usr/X11R6/lib -lX11 -pthread -Wl,-soname -Wl,libgstximagesink.so -Wl,-version-script -Wl,.libs/libgstximagesink.ver -o .libs/libgstximagesink.so /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/libX11.a(ChProp.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib64/libX11.a: could not read symbols: Bad value collect2: ld returned 1 exit status Help....? -Lokmer