[OpenAFS] Separating AFS tokens generation from Authenticatio n

Neulinger, Nathan nneul@umr.edu
Wed, 10 Oct 2001 12:39:28 -0500


> Hmm, on Solaris 5.7 with Krb5-1.2.2 (shared libs) and AFS 3.6 
> and GCC-2.9.3 I get
> 
> gcc  -o gsiklog gsiklog.o gsiklog_afs.o \
> gsiklog_gss.o gsiklog_comm.o \
> -Wl,-dy,-R,/lib:/usr/lib:/lib -R/krb5/lib -L/krb5/lib 
> -L/usr/afsws/lib -L/usr/afsws/lib/afs
> -lprot -lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp 
> /usr/afsws/lib/afs/util.a
> /usr/afsws/lib/afs/libcom_err.a -lgssapi_krb5 -lkrb5 
> -lk5crypto -lcom_err -ldes425 -lsocket
> -lnsl 
> 
> gcc -o gsiklogd gsiklogd.o gsiklogd_afs.o gsiklog_comm.o \
> gridmap.o \
> -Wl,-dy,-R,/lib:/usr/lib:/lib -R/krb5/lib -L/krb5/lib 
> -L/usr/afsws/lib -L/usr/afsws/lib/afs 
> -lauth -lcmd -lsys -lrx -llwp /usr/afsws/lib/afs/util.a 
> -lgssapi_krb5 -lkrb5 -lk5crypto
> -lcom_err -ldes425 -lsocket -lnsl 
> 

> And LDD shows lresolve is included. 
> 
> % ldd gsiklog
>         libgssapi_krb5.so.2 =>   /krb5/lib/libgssapi_krb5.so.2
>         libkrb5.so.3 =>  /krb5/lib/libkrb5.so.3
>         libk5crypto.so.3 =>      /krb5/lib/libk5crypto.so.3
>         libcom_err.so.3 =>       /krb5/lib/libcom_err.so.3
>         libdes425.so.3 =>        /krb5/lib/libdes425.so.3
>         libsocket.so.1 =>        /lib/libsocket.so.1
>         libnsl.so.1 =>   /lib/libnsl.so.1
>         libc.so.1 =>     /lib/libc.so.1
>         libgen.so.1 =>   /usr/lib/libgen.so.1
>         libresolv.so.2 =>        /usr/lib/libresolv.so.2
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2
>         /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

Dont' know why it actually included that, must be something in gcc on
solaris. 

But on linux, you have to specify -lresolv. 

-- Nathan