Hi,
compiling on/with:
ROOT 5-11/02
gentoo 1.12.0_pre18 on x86_64
gcc 3.4.6
i get the following error:
matevz@f9pc45 root> make
g++ -shared -Wl,-soname,libKrb5Auth.so -m64 -O2 -o lib/libKrb5Auth.so krb5auth/src/Krb5Auth.o krb5auth/src/TKSocket.o krb5auth/src/G__Krb5Auth.o -lkrb5 -lk5crypto -L/usr/athena/lib64 -lcom_err -lresolv -lcrypto
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/…/…/…/…/x86_64-pc-linux-gnu/bin/ld: /usr/athena/lib64/libcom_err.a(com_err.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/usr/athena/lib64/libcom_err.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libKrb5Auth.so] Error 1
matevz@f9pc45 root> locate libcom_err.a libcom_err.so
/usr/athena/lib64/libcom_err.a
/usr/lib64/afs/libcom_err.a
/usr/lib64/libcom_err.a
/emul/linux/x86/lib/libcom_err.so.2.1
/emul/linux/x86/lib/libcom_err.so
/emul/linux/x86/lib/libcom_err.so.2
/lib64/libcom_err.so
/lib64/libcom_err.so.2
/lib64/libcom_err.so.2.1
/usr/lib64/libcom_err.so
Is this a gentoo specific problem and i should look for a quick fix or can this be solved in general configure/makefiles?
Thanks …
Cheers,
Matevz