[OpenAFS] Re: Trouble with libnss-afs

Russ Allbery rra@stanford.edu
Tue, 07 Jul 2009 09:21:24 -0700

Gunnar Krull <gklists@cs.uni-goettingen.de> writes:
> On Monday 06 July 2009 19:28:55 Adam Megacz wrote:

> the latest version 1.08 of libnss-afs cannot be build on a amd64
> Ubuntu Jaunty.  I'm getting this error message:
> gcc -shared -fPIC -o libnss_afs.so.2 nss_afs.o \                                          
>         -Wl,-soname,libnss_afs.so.2 -L/usr/lib/afs -L/usr/lib -lafsauthent -lafsrpc -lpthread -lsys -lnsl -lresolv -g
> /usr/bin/ld: /usr/lib/libafsauthent.a(ubikclient.o): relocation R_X86_64_32 against `ubik_client_mutex' can not be used when making a shared object; recompile with -fPIC
> /usr/lib/libafsauthent.a: could not read symbols: Bad value

Adam, on Debian you want to link with -lafsauthent_pic -lafsrpc_pic.  At
least if they're available, which for lenny may require using a backport
since they only went in the 1.4.10 release.

Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>