[OpenAFS] Undefined symbol problem
Derrick J Brashear
shadow@dementia.org
Fri, 14 Nov 2003 17:49:51 -0500 (EST)
On Fri, 14 Nov 2003, David Botsch wrote:
> so, then, what libs do I need to compile something with
> ka_UserAuthenticateGeneral in it (and other ka_* functions)?
well, the fact that you had to go out of your way to find that one should
have been a hint.
likewise, you can find what symbols are in what libraries using nm.
however, *this* symbol is in -lkauth
> The list of libs we originally had is not sufficient:
>
> gcc -o test test.c -L/usr/lib/afs -lauth -lsys -lrxkad -lrx -llwp
> -lafsutil test.c: In function `main':
> test.c:5: warning: return type of `main' is not `int'
> /tmp/ccHfD1tH.o: In function `main':
> /tmp/ccHfD1tH.o(.text+0x33): undefined reference to
> `ka_UserAuthenticateGeneral'
> collect2: ld returned 1 exit status
>
>
> ok, so add -lkauth:
>
>
> gcc -o test test.c -L/usr/lib/afs -lauth -lsys -lrxkad -lrx -llwp
> -lafsutil -lkauth | & tee compile.out
>
> Fails miserably:
>
> test.c: In function `main':
> test.c:5: warning: return type of `main' is not `int'
> /usr/lib/afs/libkauth.a(user.o): In function `ka_GetAFSTicket':
> user.o(.text+0x94): undefined reference to `ktc_OldPioctl'
> user.o(.text+0xd9): undefined reference to `getDirPath'
> user.o(.text+0xe3): undefined reference to `pr_Initialize'
> user.o(.text+0x18d): undefined reference to `pr_SNameToId'
> user.o(.text+0x194): undefined reference to `pr_End'
> user.o(.text+0x1c7): undefined reference to `com_err'
> user.o(.text+0x219): undefined reference to `ktc_SetToken'
> /usr/lib/afs/libkauth.a(user.o): In function
> `ka_UserAuthenticateGeneral':
> user.o(.text+0x2c5): undefined reference to `rx_socket'
> user.o(.text+0x320): undefined reference to `des_string_to_key'
> user.o(.text+0x342): undefined reference to `setpag'
> user.o(.text+0x392): undefined reference to `des_string_to_key'
> user.o(.text+0x3be): undefined reference to `pr_End'
> user.o(.text+0x3c3): undefined reference to `rx_Finalize'
> user.o(.text+0x40d): undefined reference to `error_message'
> /usr/lib/afs/libkauth.a(user.o): In function `ka_UserReadPassword':
> user.o(.text+0x492): undefined reference to `des_read_pw_string'
> user.o(.text+0x4c9): undefined reference to `error_message'
> /usr/lib/afs/libkauth.a(client.o): In function `Andrew_StringToKey':
> client.o(.text+0x7d): undefined reference to `crypt'
> client.o(.text+0xa2): undefined reference to `des_fixup_key_parity'
> /usr/lib/afs/libkauth.a(client.o): In function `StringToKey':
> client.o(.text+0x16c): undefined reference to `des_fixup_key_parity'
> client.o(.text+0x17b): undefined reference to `des_key_sched'
> client.o(.text+0x195): undefined reference to `des_cbc_cksum'
> client.o(.text+0x1b6): undefined reference to `des_fixup_key_parity'
> client.o(.text+0x1bf): undefined reference to `des_key_sched'
> client.o(.text+0x1d6): undefined reference to `des_cbc_cksum'
> client.o(.text+0x1e1): undefined reference to `des_fixup_key_parity'
> /usr/lib/afs/libkauth.a(client.o): In function `ka_StringToKey':
> client.o(.text+0x226): undefined reference to `lcstring'
> /usr/lib/afs/libkauth.a(client.o): In function `ka_ReadPassword':
> client.o(.text+0x2a1): undefined reference to `des_read_pw_string'
> /usr/lib/afs/libkauth.a(client.o): In function `ka_ParseLoginName':
> client.o(.text+0x4ad): undefined reference to `ucstring'
> /usr/lib/afs/libkauth.a(client.o): In function `ka_Init':
> client.o(.text+0x4df): undefined reference to `initialize_U_error_table'
> client.o(.text+0x4e9): undefined reference to
> `initialize_RXK_error_table'
> client.o(.text+0x4ee): undefined reference to
> `initialize_KTC_error_table'
> client.o(.text+0x4f3): undefined reference to
> `initialize_ACFG_error_table'
> client.o(.text+0x4fd): undefined reference to `getDirPath'
> /usr/lib/afs/libkauth.a(token.o): In function `ka_GetAuthToken':
> token.o(.text+0x9d): undefined reference to `ubik_ClientDestroy'
> token.o(.text+0x148): undefined reference to `ktc_SetToken'
> /usr/lib/afs/libkauth.a(token.o): In function `ka_GetServerToken':
> token.o(.text+0x1d2): undefined reference to `lcstring'
> token.o(.text+0x1f1): undefined reference to `ktc_GetToken'
> token.o(.text+0x26d): undefined reference to `lcstring'
> token.o(.text+0x29e): undefined reference to `ktc_GetToken'
> token.o(.text+0x2dd): undefined reference to `ktc_GetToken'
> token.o(.text+0x322): undefined reference to `ucstring'
> token.o(.text+0x35e): undefined reference to `ktc_GetToken'
> token.o(.text+0x3f0): undefined reference to `ubik_ClientDestroy'
> token.o(.text+0x427): undefined reference to `lcstring'
> token.o(.text+0x439): undefined reference to `ucstring'
> token.o(.text+0x452): undefined reference to `ktc_SetToken'
> token.o(.text+0x4e4): undefined reference to `ubik_ClientDestroy'
> token.o(.text+0x508): undefined reference to `ktc_SetToken'
> /usr/lib/afs/libkauth.a(token.o): In function `ka_GetAdminToken':
> token.o(.text+0x5bb): undefined reference to `ktc_GetToken'
> token.o(.text+0x645): undefined reference to `ubik_ClientDestroy'
> token.o(.text+0x696): undefined reference to `ktc_SetToken'
> /usr/lib/afs/libkauth.a(token.o): In function `ka_VerifyUserToken':
> token.o(.text+0x734): undefined reference to `ubik_ClientDestroy'
> /usr/lib/afs/libkauth.a(kalocalcell.o): In function `ka_CellConfig':
> kalocalcell.o(.text+0x14): undefined reference to `afsconf_Close'
> kalocalcell.o(.text+0x22): undefined reference to `afsconf_Open'
> kalocalcell.o(.text+0x46): undefined reference to `afsconf_GetLocalCell'
> /usr/lib/afs/libkauth.a(kalocalcell.o): In function `ka_LocalCell':
> kalocalcell.o(.text+0x60): undefined reference to `getDirPath'
> kalocalcell.o(.text+0x68): undefined reference to `afsconf_Open'
> kalocalcell.o(.text+0x82): undefined reference to `afsconf_GetLocalCell'
> /usr/lib/afs/libkauth.a(kalocalcell.o): In function `ka_ExpandCell':
> kalocalcell.o(.text+0x11f): undefined reference to `lcstring'
> kalocalcell.o(.text+0x130): undefined reference to `afsconf_GetCellInfo'
> /usr/lib/afs/libkauth.a(kalocalcell.o): In function `ka_CellToRealm':
> kalocalcell.o(.text+0x1ab): undefined reference to `ucstring'
> /usr/lib/afs/libkauth.a(kaerrors.o): In function
> `initialize_KA_error_table':
> kaerrors.o(.text+0xc): undefined reference to `add_to_error_table'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_GetServers':
> authclient.o(.text+0x12d): undefined reference to `lcstring'
> authclient.o(.text+0x146): undefined reference to `getDirPath'
> authclient.o(.text+0x14e): undefined reference to `afsconf_Open'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_GetSecurity':
> authclient.o(.text+0x1b5): undefined reference to
> `rxnull_NewClientSecurityObject'
> authclient.o(.text+0x1de): undefined reference to
> `rxkad_NewClientSecurityObject'
> /usr/lib/afs/libkauth.a(authclient.o): In function
> `ka_SingleServerConn':
> authclient.o(.text+0x25c): undefined reference to `lcstring'
> authclient.o(.text+0x2f2): undefined reference to `rx_Init'
> authclient.o(.text+0x35c): undefined reference to `rx_NewConnection'
> authclient.o(.text+0x385): undefined reference to `ubik_ClientInit'
> authclient.o(.text+0x393): undefined reference to `rxs_Release'
> /usr/lib/afs/libkauth.a(authclient.o): In function
> `ka_AuthSpecificServersConn':
> authclient.o(.text+0x3c3): undefined reference to `rx_Init'
> authclient.o(.text+0x417): undefined reference to `rx_NewConnection'
> authclient.o(.text+0x449): undefined reference to `ubik_ClientInit'
> authclient.o(.text+0x454): undefined reference to `rxs_Release'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_AuthServerConn':
> authclient.o(.text+0x4a9): undefined reference to `rx_Init'
> authclient.o(.text+0x511): undefined reference to `rx_NewConnection'
> authclient.o(.text+0x546): undefined reference to `ubik_ClientInit'
> authclient.o(.text+0x554): undefined reference to `rxs_Release'
> /usr/lib/afs/libkauth.a(authclient.o): In function `CheckTicketAnswer':
> authclient.o(.text+0x61c): undefined reference to `tkt_CheckTimes'
> /usr/lib/afs/libkauth.a(authclient.o): In function `kawrap_ubik_Call':
> authclient.o(.text+0x987): undefined reference to `ubik_CallIter'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_Authenticate':
> authclient.o(.text+0x9ee): undefined reference to `des_key_sched'
> authclient.o(.text+0xa9e): undefined reference to `des_pcbc_encrypt'
> authclient.o(.text+0xb3f): undefined reference to `ubik_Call'
> authclient.o(.text+0xb8c): undefined reference to `ubik_Call'
> authclient.o(.text+0xbea): undefined reference to `des_pcbc_encrypt'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_GetToken':
> authclient.o(.text+0xd94): undefined reference to `des_key_sched'
> authclient.o(.text+0xdd8): undefined reference to `des_ecb_encrypt'
> authclient.o(.text+0xe3e): undefined reference to `ubik_Call'
> authclient.o(.text+0xe9b): undefined reference to `ubik_Call'
> authclient.o(.text+0xefe): undefined reference to `des_pcbc_encrypt'
> authclient.o(.text+0xfec): undefined reference to `tkt_CheckTimes'
> /usr/lib/afs/libkauth.a(authclient.o): In function `ka_ChangePassword':
> authclient.o(.text+0x1149): undefined reference to `ubik_Call_New'
> /usr/lib/afs/libkauth.a(authclient.o): In function `myCellLookup':
> authclient.o(.text+0xf3): undefined reference to `afsconf_GetCellInfo'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAA_Authenticate_old':
> kauth.cs.o(.text+0x10): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x21): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0xe2): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0xe8): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0xfa): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x103): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x10a): undefined reference to `clock_now'
> kauth.cs.o(.text+0x10f): undefined reference to `clock_now'
> kauth.cs.o(.text+0x1a2): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAA_Authenticate':
> kauth.cs.o(.text+0x1c4): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x1d5): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x296): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x29c): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x2af): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x2b8): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x2be): undefined reference to `clock_now'
> kauth.cs.o(.text+0x2c3): undefined reference to `clock_now'
> kauth.cs.o(.text+0x356): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAA_AuthenticateV2':
> kauth.cs.o(.text+0x378): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x389): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x44a): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x450): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x463): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x46c): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x472): undefined reference to `clock_now'
> kauth.cs.o(.text+0x477): undefined reference to `clock_now'
> kauth.cs.o(.text+0x50a): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAA_ChangePassword':
> kauth.cs.o(.text+0x52c): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x53d): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x5d6): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x5dc): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x5ef): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x5f8): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x5fe): undefined reference to `clock_now'
> kauth.cs.o(.text+0x603): undefined reference to `clock_now'
> kauth.cs.o(.text+0x696): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAT_GetTicket_old':
> kauth.cs.o(.text+0x6b8): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x6c9): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x7a2): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x7a8): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x7bb): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x7c4): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x7ca): undefined reference to `clock_now'
> kauth.cs.o(.text+0x7cf): undefined reference to `clock_now'
> kauth.cs.o(.text+0x862): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAT_GetTicket':
> kauth.cs.o(.text+0x884): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x895): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x96e): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x974): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x987): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x990): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x996): undefined reference to `clock_now'
> kauth.cs.o(.text+0x99b): undefined reference to `clock_now'
> kauth.cs.o(.text+0xa2e): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_SetPassword':
> kauth.cs.o(.text+0xa5a): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0xa6b): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0xae0): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0xae7): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0xaf8): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0xb01): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0xb0a): undefined reference to `clock_now'
> kauth.cs.o(.text+0xb0f): undefined reference to `clock_now'
> kauth.cs.o(.text+0xb9f): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_SetFields':
> kauth.cs.o(.text+0xbbe): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0xbcf): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0xc9c): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0xca2): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0xcb4): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0xcbd): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0xcc6): undefined reference to `clock_now'
> kauth.cs.o(.text+0xccb): undefined reference to `clock_now'
> kauth.cs.o(.text+0xd5b): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_CreateUser':
> kauth.cs.o(.text+0xd86): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0xd97): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0xdf8): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0xdfe): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0xe11): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0xe1a): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0xe22): undefined reference to `clock_now'
> kauth.cs.o(.text+0xe27): undefined reference to `clock_now'
> kauth.cs.o(.text+0xeb7): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_DeleteUser':
> kauth.cs.o(.text+0xed6): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0xee7): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0xf34): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0xf3b): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0xf4c): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0xf55): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0xf5e): undefined reference to `clock_now'
> kauth.cs.o(.text+0xf63): undefined reference to `clock_now'
> kauth.cs.o(.text+0xff3): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_GetEntry':
> kauth.cs.o(.text+0x1012): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x1023): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x10b0): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x10b6): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x10c8): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x10d1): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x10da): undefined reference to `clock_now'
> kauth.cs.o(.text+0x10df): undefined reference to `clock_now'
> kauth.cs.o(.text+0x116f): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_ListEntry':
> kauth.cs.o(.text+0x118e): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x119f): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x1221): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x1227): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x123a): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x1243): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x124a): undefined reference to `clock_now'
> kauth.cs.o(.text+0x124f): undefined reference to `clock_now'
> kauth.cs.o(.text+0x12df): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_GetStats':
> kauth.cs.o(.text+0x12fe): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x130f): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x1391): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x1398): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x13a9): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x13b2): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x13ba): undefined reference to `clock_now'
> kauth.cs.o(.text+0x13bf): undefined reference to `clock_now'
> kauth.cs.o(.text+0x144f): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_Debug':
> kauth.cs.o(.text+0x146e): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x147f): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x14f8): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x14fe): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x1510): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x1519): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x1522): undefined reference to `clock_now'
> kauth.cs.o(.text+0x1527): undefined reference to `clock_now'
> kauth.cs.o(.text+0x15b7): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_GetPassword':
> kauth.cs.o(.text+0x15d6): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x15e7): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x164c): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x1652): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x1665): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x166e): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x1676): undefined reference to `clock_now'
> kauth.cs.o(.text+0x167b): undefined reference to `clock_now'
> kauth.cs.o(.text+0x170b): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_GetRandomKey':
> kauth.cs.o(.text+0x1729): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x173a): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x1787): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x178d): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x17a0): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x17a9): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x17b2): undefined reference to `clock_now'
> kauth.cs.o(.text+0x17b7): undefined reference to `clock_now'
> kauth.cs.o(.text+0x184a): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_Unlock':
> kauth.cs.o(.text+0x186a): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x187b): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x1918): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x191e): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x1931): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x193a): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x1942): undefined reference to `clock_now'
> kauth.cs.o(.text+0x1947): undefined reference to `clock_now'
> kauth.cs.o(.text+0x19d7): undefined reference to
> `rx_IncrementTimeAndCount'
> /usr/lib/afs/libkauth.a(kauth.cs.o): In function `KAM_LockStatus':
> kauth.cs.o(.text+0x19f6): undefined reference to `rx_NewCall'
> kauth.cs.o(.text+0x1a07): undefined reference to `xdrrx_create'
> kauth.cs.o(.text+0x1ad0): undefined reference to `rx_EndCall'
> kauth.cs.o(.text+0x1ad7): undefined reference to `rx_enable_stats'
> kauth.cs.o(.text+0x1ae8): undefined reference to `clock_haveCurrentTime'
> kauth.cs.o(.text+0x1af1): undefined reference to `clock_UpdateTime'
> kauth.cs.o(.text+0x1afa): undefined reference to `clock_now'
> kauth.cs.o(.text+0x1aff): undefined reference to `clock_now'
> kauth.cs.o(.text+0x1b8f): undefined reference to
> `rx_IncrementTimeAndCount'
> collect2: ld returned 1 exit st
>
> On 2003.11.14 17:26 Derrick J Brashear wrote:
> > On Fri, 14 Nov 2003, David Botsch wrote:
> >
> > > So, attempting to compile as follows:
> > >
> > > gcc -o test test.c -L/usr/lib/afs -lauth -lsys -lrxkad -lrx -llwp
> > > -lafsutil -lkauth -lrx -lpthread -llwp -lafsutil -lsys -lubik
> > -lresolv
> > >
> > /afs/msc.cornell.edu/home/mscadm/dwb7/downloads/openafs-1.2.10/lib/libuafs.a
> > > -ldes | & tee compile.out
> >
> > you don't get to use libuafs and the other libraries. that's why i
> > didn't
> > list it.
> >
> > _______________________________________________
> > OpenAFS-info mailing list
> > OpenAFS-info@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-info
> >
>
> --
> ********************************
> David William Botsch
> Consultant/Advisor II
> CCMR Computing Facility
> dwb7@ccmr.cornell.edu
> ********************************
>