Dan Sawyer
Hey all -
Has anyone run into a major compile stumbling block because of a poorly-compiled libx11.a? Even when building programs with then --enable-static flag in suse 10.1 64bit I get this error on almost everything. I've searched for weeks, but haven't been able to find a fix anywhere online, and I'm very reluctant to attempt to hand-complie Xorg.
Here's the error: ve/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
Why do you compile against the static libX11.a? What exactly are you doing? Is this a static program or do you create a shared library that should include the static libX11.a? Do you have a small example to reproduce? Otherwise please give the complete commandline that you use, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/ SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126