Arla Compiling problem that I can't seem to fix

Mahir Aydin maydin at us.ibm.com
Tue Dec 12 15:33:12 CET 2000



I tried, and what I get is this: (There is none in usr/local/arla, they are
all U's)
so does this mean libkrb4a has it?  (I have the MIT distirubtion of V5 as I
told previously)
[root at s390labo lib]# nm -o *.a | grep realmofhost
libkrb4.a:realmofhost.o:         U __ctype_b
libkrb4.a:realmofhost.o:         U fclose
libkrb4.a:realmofhost.o:         U fscanf
libkrb4.a:realmofhost.o:00000000 t gcc2_compiled.
libkrb4.a:realmofhost.o:         U gethostbyname
libkrb4.a:realmofhost.o:         U krb__get_realmsfile
libkrb4.a:realmofhost.o:         U krb_get_lrealm
libkrb4.a:realmofhost.o:0000000c T krb_realmofhost
libkrb4.a:realmofhost.o:00000000 b ret_realm
libkrb4.a:realmofhost.o:         U strcasecmp
libkrb4.a:realmofhost.o:         U strchr
libkrb4.a:realmofhost.o:         U strlen
libkrb4.a:realmofhost.o:         U strncpy
libkrb4.a:realmofhost.o:         U toupper
libkrbafs.a:afskrb.o:         U krb_realmofhost

Harald Barth <haba at pdc.kth.se>@stacken.kth.se on 12/12/2000 06:28:40 AM

Sent by:  owner-arla-drinkers at stacken.kth.se


To:   arla-drinkers at stacken.kth.se, Mahir Aydin/Poughkeepsie/IBM at IBMUS
cc:
Subject:  Arla Compiling problem that I can't seem to fix




>I checked my /usr/local/lib and /usr/arla/lib and when I do grep
>krb_getrealmofhost *.*, I get Binary file libkrb4.a matches and
>Binary file libkrbafs.a matches in /usr/local/lib. In usr/arla/lib,
>when I do the same thing, I get Binary file libarlalib.a matches and
>Binary file libko.a matches. So obviously the function is there.

Use nm instead. Example:

$ nm -o /usr/*/lib/*.a | grep realmofhost
/usr/athena/lib/libkafs.a:afskrb.o:         U krb_realmofhost
/usr/athena/lib/libkafs.a:common.o:         U krb_realmofhost
/usr/athena/lib/libkrb.a:get_krbrlm.o:         U krb_realmofhost
/usr/athena/lib/libkrb.a:getrealm.o:00000250 T krb_realmofhost

Which means that only /usr/athena/lib/libkrb.a really has the
definition, the other references are only places where the symbol is
used.

Follow up question: I use the krb_realmofhost from KTH-KRB (V4). Where
do/should the MIT KRB users find it? This seems to be a question
and answer shat should go into a FAQ.

Harald.








More information about the Arla-drinkers mailing list