Undefined symbol in AFS libraries

Touretsky, Gregory gregory.touretsky@intel.com
Tue, 20 Mar 2001 12:30:52 -0800


Hi,

   I try to compile a library on Solaris 2.6 machine with Transarc AFS 3.4
client (yep, the old one :). This library use many AFS calls. The
compilation fails on the linking stage, and it seems to me that I either
miss some libraries or have another problems with the ld command line.
   I have no problem to compile the same sources on AIX machine with AFS 3.4
client. 
Any ideas?


ics029 [522]#ld -dy -Bdynamic -G -zdefs -zmuldefs
-R/usr/lib:/usr/afsws/lib:/usr/afsws/lib/afs -olibAfsDriver.so afsdriver.o
afsfunctions.o -lc -L${JDK}/lib/sparc/native_threads -L/usr/afsws/lib
-L/usr/afsws/lib/afs -lsys -ldes -lrx -lrxkad -llwp -lvolser -lauth -lvldb
-lubik -llwp -lcom_err -lcmd -laudit -lprot -lkauth
/usr/afsws/lib/afs/util.a

Undefined                       first referenced
 symbol                             in file
initialize_rxk_error_table
/usr/afsws/lib/afs/libvolser.a(vsprocs.o)
rxkad_client_init                   /usr/afsws/lib/afs/libauth.a(authcon.o)
des_random_key                      /usr/afsws/lib/afs/libauth.a(authcon.o)
des_pcbc_init
/usr/afsws/lib/afs/libkauth.a(authclient.o)
des_fixup_key_parity                /usr/afsws/lib/afs/libkauth.a(client.o)
des_read_pw_string                  /usr/afsws/lib/afs/libkauth.a(client.o)
des_init_random_number_generator    /usr/afsws/lib/afs/libauth.a(authcon.o)
rxkad_NewClientSecurityObject
/usr/afsws/lib/afs/libvolser.a(vsutils.o)
rxkad_stats                         /usr/afsws/lib/afs/libauth.a(authcon.o)
des_string_to_key                   /usr/afsws/lib/afs/libkauth.a(user.o)
tkt_CheckTimes
/usr/afsws/lib/afs/libkauth.a(authclient.o)
tkt_MakeTicket                      /usr/afsws/lib/afs/libauth.a(authcon.o)
rxkad_NewServerSecurityObject       /usr/afsws/lib/afs/libauth.a(authcon.o)
des_key_sched                       /usr/afsws/lib/afs/libkauth.a(client.o)
des_cksum_init                      /usr/afsws/lib/afs/libkauth.a(client.o)
rxkad_GetServerInfo                 /usr/afsws/lib/afs/libauth.a(userok.o)
des_des_init
/usr/afsws/lib/afs/libkauth.a(authclient.o)
ld: fatal: Symbol referencing errors. No output written to libAfsDriver.so

Gregory Touretsky
IDC Computing / Systems Engineering Group
Unix Server Platforms
gregory.touretsky@intel.com
> (+) 972-4-865-6377, Fax: 04-865-5999
iNET: 465-6377, M/S: IDC-1B