Package: openafs
Version: 1.3.87-1
Severity: serious

Hi Russ,

On my system, openafs fails to build with the following error:

+ case "i386_linux24" in
+ gcc -pipe -shared -Xlinker -x -g -O2 -Dlinux -DLINUX_PAM -fPIC -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 ../shlibafsauthent/acfg_errors.o 
../shlibafsauthent/afssyscalls.o ../shlibafsauthent/audit.o 
../shlibafsauthent/authclient.o ../shlibafsauthent/authcon.o 
../shlibafsauthent/cellconfig.o ../shlibafsauthent/client.o 
../shlibafsauthent/dirpath.o ../shlibafsauthent/display.o 
../shlibafsauthent/fileutil.o ../shlibafsauthent/get_krbrlm.o 
../shlibafsauthent/kaaux.o ../shlibafsauthent/kaerrors.o 
../shlibafsauthent/kalocalcell.o ../shlibafsauthent/kauth.cs.o 
../shlibafsauthent/kauth.xdr.o ../shlibafsauthent/kautils.o 
../shlibafsauthent/ktc_errors.o ../shlibafsauthent/ktc.o 
../shlibafsauthent/ptclient.o ../shlibafsauthent/pterror.o 
../shlibafsauthent/pthread_glock.o ../shlibafsauthent/ptint.cs.o 
../shlibafsauthent/ptint.xdr.o ../shlibafsauthent/ptuser.o 
../shlibafsauthent/read_passwd.o ../shlibafsauthent/rmtsysc.o 
../shlibafsauthent/rmtsys.cs.o ../shlibafsauthent/rmtsysnet.o 
../shlibafsauthent/rmtsys.xdr.o ../shlibafsauthent/rxkad_errs.o 
../shlibafsauthent/serverLog.o ../shlibafsauthent/snprintf.o 
../shlibafsauthent/token.o ../shlibafsauthent/ubikclient.o 
../shlibafsauthent/ubik_int.cs.o ../shlibafsauthent/ubik_int.xdr.o 
../shlibafsauthent/uerrors.o ../shlibafsauthent/uinit.o 
../shlibafsauthent/user.o ../shlibafsauthent/userok.o 
../shlibafsauthent/writeconfig.o ../shlibafsrpc/afsaux.o 
../shlibafsrpc/afscbint.cs.o ../shlibafsrpc/afscbint.xdr.o 
../shlibafsrpc/AFS_component_version_number.o ../shlibafsrpc/afsint.cs.o 
../shlibafsrpc/afsint.xdr.o ../shlibafsrpc/assert.o ../shlibafsrpc/base64.o 
../shlibafsrpc/casestrcpy.o ../shlibafsrpc/cbc_encrypt.o ../shlibafsrpc/cksum.o 
../shlibafsrpc/com_err.o ../shlibafsrpc/crc.o ../shlibafsrpc/crypt_conn.o 
../shlibafsrpc/crypt.o ../shlibafsrpc/debug_decl.o ../shlibafsrpc/des.o 
../shlibafsrpc/error_msg.o ../shlibafsrpc/et_name.o ../shlibafsrpc/fasttime.o 
../shlibafsrpc/fcrypt.o ../shlibafsrpc/key_parity.o ../shlibafsrpc/key_sched.o 
../shlibafsrpc/md4.o ../shlibafsrpc/md5.o ../shlibafsrpc/misc.o 
../shlibafsrpc/new_rnd_key.o ../shlibafsrpc/pcbc_encrypt.o 
../shlibafsrpc/quad_cksum.o ../shlibafsrpc/rx_conncache.o 
../shlibafsrpc/rx_event.o ../shlibafsrpc/rx_getaddr.o 
../shlibafsrpc/rx_globals.o ../shlibafsrpc/rxkad_client.o 
../shlibafsrpc/rxkad_common.o ../shlibafsrpc/rxkad_server.o 
../shlibafsrpc/rx_misc.o ../shlibafsrpc/rx_multi.o ../shlibafsrpc/rx_null.o 
../shlibafsrpc/rx.o ../shlibafsrpc/rx_packet.o ../shlibafsrpc/rx_pthread.o 
../shlibafsrpc/rx_rdwr.o ../shlibafsrpc/rxstat.cs.o ../shlibafsrpc/rxstat.o 
../shlibafsrpc/rxstat.ss.o ../shlibafsrpc/rxstat.xdr.o 
../shlibafsrpc/rx_trace.o ../shlibafsrpc/rx_user.o 
../shlibafsrpc/strng_to_key.o ../shlibafsrpc/syscall.o ../shlibafsrpc/ticket5.o 
../shlibafsrpc/ticket.o ../shlibafsrpc/util.o ../shlibafsrpc/weak_key.o 
../shlibafsrpc/xdr_afsuuid.o ../shlibafsrpc/xdr_arrayn.o 
../shlibafsrpc/xdr_array.o ../shlibafsrpc/xdr_int32.o 
../shlibafsrpc/xdr_int64.o ../shlibafsrpc/xdr.o ../shlibafsrpc/xdr_rx.o 
-lpthread -lpam -lresolv
../shlibafsrpc/AFS_component_version_number.o(.data+0x0): multiple
definition of `cml_version_number' AFS_component_version_number.o(.data
+0x0): first defined
here ../shlibafsrpc/AFS_component_version_number.o(.data.rel.local+0x0):
multiple definition of `AFSVersion'
AFS_component_version_number.o(.data.rel.local+0x0): first defined here
collect2: ld returned 1 exit status make[4]: *** [pam_afs.so.1] Error 1
make[4]: Leaving directory `/foo/openafs-1.3.87/src/pam' 

(sorry for the stupid wrapping; not sure how to turn it off in
evolution)

The problem is that AFS_component_version_number.o is being included
twice; one in the pam directory, the other in the shlibafsrpc directory.
The reason this happens is due to the following bit of code in
src/pam/Makefile (around line 67):

        *linux*) \
                $(CC) $(LDFLAGS) $(PAM_CFLAGS) -o $@ afs_setcred.o \
                        afs_auth.o afs_util.o $(SHOBJS) \
                        ../shlibafsauthent/[a-z]*.o ../shlibafsrpc/[a-z]*.o \
                        $(MT_LIBS) -lpam -lresolv;;\







Reply via email to