[OpenAFS-devel] Jaguar pam compilation

David Botsch dwb7@ccmr.cornell.edu
Wed, 18 Sep 2002 14:22:00 -0400


I've fooled with this a bit now, and feel like I'm close . . .

still having trouble getting the SO to build.

At present for pam_afs.so.1, compiling with:

$(CC) -Xlinker -dylib $(LDFLAGS) -lpam -lpam_misc -o $@ afs_setcred.o afs_auth.
o afs_util.o $(SHOBJS) $(LIBS) ;;

which expands to:

cc -Xlinker -dylib -lpam -lpam_misc -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 /Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libkauth.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libprot.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libubik.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libauth.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/librxkad.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libsys.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libdes.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/librx.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/liblwp.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libaudit.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libcmd.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/libcom_err.a
/Users/rootdumb/Desktop/openafs-1.2.7-rc4/lib/util.a

which dies with the follwoing error:

ld: /usr/lib/crt1.o LC_LOAD_DYLINKER load command in object file (should not be in an input
file to the link editor for the output file type MH_DYLIB)

any ideas on how to get around this?

-- 
********************************
David William Botsch
Consultant/Advisor II
CCMR Computing Facility
dwb7@ccmr.cornell.edu
********************************