Undefined symbol in AFS libraries
Neulinger, Nathan R.
nneul@umr.edu
Tue, 20 Mar 2001 14:42:42 -0600
I don't remember if it is on solaris that you have to do it, but I seem to
remember needing to list libraries more than once in alot of cases. Try
listing -ldes -lrx -lrxkad again at the end of the link line, etc.
Also might check to make sure it's not searching sun's DES library by
accident.
-- Nathan
> -----Original Message-----
> From: Touretsky, Gregory [mailto:gregory.touretsky@intel.com]
> Sent: Tuesday, March 20, 2001 2:31 PM
> To: Touretsky, Gregory
> Subject: Undefined symbol in AFS libraries
>
>
> 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
>
>
>