[OpenAFS] cannot build pam_afs.so on x86_64
Andy Malato
andym@oak.njit.edu
Fri, 15 Oct 2004 17:36:32 -0400 (EDT)
! Date: Fri, 15 Oct 2004 17:27:01 -0400 (EDT)
! From: Derrick J Brashear <shadow@dementia.org>
! To: openafs-info@openafs.org
! Subject: Re: [OpenAFS] cannot build pam_afs.so on x86_64
!
!
! On Fri, 15 Oct 2004, Andy Malato wrote:
!
! > ! in src/cf/osconf.m4, set CCOBJ to cc -fPIC
! > !
! > ! then rerun regen.sh, reconfigure, and rebuild.
! > !
! >
! > Did that and I still the the below mentioned error.
!
! Did you make clean first? If so, then it implies I missed some objects
! which are still being made not pic. if you can tell me which I will fix
! the makefiles.
Yes, I did a make clean.
I've included the full error message below, perhaps that will give further
insight.
cc -shared -Xlinker -x -o pam_afs.so.1 afs_setcred.o \
afs_auth.o afs_util.o afs_account.o afs_session.o
afs_password.o afs_pam_msg.o afs_message.o AFS_component_version_number.o
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libkauth.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libprot.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libubik.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libauth.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/librxkad.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libsys.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libdes.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/librx.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/liblwp.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libaudit.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libcmd.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libcom_err.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/util.a -lresolv ;;\
* ) \
echo No link line for system amd64_linux24. ;; \
esac
+ cc -shared -Xlinker -x -o pam_afs.so.1 afs_setcred.o afs_auth.o
afs_util.o afs_account.o afs_session.o afs_password.o afs_pam_msg.o
afs_message.o AFS_component_version_number.o
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libkauth.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libprot.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libubik.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libauth.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/librxkad.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libsys.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libdes.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/librx.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/liblwp.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libaudit.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libcmd.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libcom_err.a
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/util.a -lresolv
/usr/bin/ld:
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libkauth.a(user.o):
relocation R_X86_64_32 can not be used when making a shared object;
recompile with -fPIC
/afs/cad/u/a/n/andym/ftp/openafs/openafs-1.3.71/lib/libkauth.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [pam_afs.so.1] Error 1
make[3]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/openafs/openafs-1.3.71/src/pam'
make[2]: *** [pam] Error 2
make[2]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/openafs/openafs-1.3.71'
make[1]: *** [build] Error 2
make[1]: Leaving directory
`/afs/cad.njit.edu/u/a/n/andym/ftp/openafs/openafs-1.3.71'
make: *** [all] Error 2
Hope that helps.
Thanks.