libKrb5Auth link error on gentoo x86_64


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, -m64 -O2 -o lib/ 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/] Error 1

matevz@f9pc45 root> locate libcom_err.a

Is this a gentoo specific problem and i should look for a quick fix or can this be solved in general configure/makefiles?

Thanks …

Hi Matevz,

as the message says your gentoo system did not compile these libs with -fPIC. Can you try one of the alternative libraries, just cut and paste the link statement and try some of the other libs.

Cheers, Fons.