[OpenAFS-devel] pam_afs.so in 64 bit version for sparcv9?

Derrick J Brashear shadow@dementia.org
Mon, 23 Jul 2001 15:34:55 -0400 (EDT)


On Mon, 23 Jul 2001, Sebastian Hagedorn wrote:

> --On Monday, July 23, 2001 09:37:11 -0500 Charles Clancy
> <mgrtcc@cs.rose-hulman.edu> wrote:
>
> > First, I ran ./configure, then added '-xarch=v9' to the end of the CFLAGS
> > line in the following files:
> >
> > src/pam/Makefile
> > src/libafsrpc/Makefile
> > src/libafsauthent/Makefile
>
> Thanks again, that worked. Unfortunately I'm getting the same error message
> when trying to use the module :-(

Well:

> + /usr/ccs/bin/ld -G -Bsymbolic -M mapfile -o pam_afs.so.1 afs_setcred.o
> afs_auth.o afs_account.o afs_session.o af
> s_password.o afs_pam_msg.o afs_message.o afs_util.o
> AFS_component_version_number.o /opt/openafs-1.0.4/sun4x_58/des
[lots of AFS libraries]
> /opt/openafs-1.0.4/sun4x_58/dest/lib/afs/libcom_err.a /opt/open
> afs-1.0.4/sun4x_58/dest/lib/afs/util.a -lc -lpam -lsocket -lnsl -lm
> ld: warning: file
> /opt/openafs-1.0.4/sun4x_58/dest/lib/afs/libkauth.a(client.o): wrong ELF
> class: ELFCLASS32
> ld: warning: file /opt/openafs-1.0.4/sun4x_58/dest/lib/librx.a(rx.o): wrong
> ELF class: ELFCLASS32

the idea is many of the libraries are replaced by linking instead against
libafsauth and libafsrpc, meaning you must edit the link line to actually
link those and not e.g. librx, liblwp, etc.

-D