[OpenAFS] Trying to build aklog with Solaris 10 (x86), openafs-1.4.4,
Sun Kerberos
Douglas E. Engert
deengert@anl.gov
Thu, 30 Aug 2007 09:14:41 -0500
Robert Sturrock wrote:
> Hi All.
>
> I'm trying to build "aklog" for Solaris 10/x86. I was able to build
> it ok against MIT kerberos, but then it only seems to work (not
> surprisingly) with the MIT kinit and not with the Solaris native one,
> which is a pain.
>
> So, I then tried building it by patching it as outlined in this post:
>
> http://www.openafs.org/pipermail/openafs-info/2005-August/019099.html
>
> But the last stage of the build gives me (full log at bottom):
>
> Undefined first referenced
> symbol in file
> krb5_cc_get_principal aklog_main.o
> ld: fatal: Symbol referencing errors. No output written to aklog
> *** Error code 1
> make: Fatal error: Command failed for target `aklog'
The krb5.h as referred to in the above note was from OpenSolaris
and appears to match Solaris 10 libs and has
"#pragma ident "@(#)krb5.h 1.17 04/09/28 SMI":
#define krb5_x(ptr,args) ((ptr)?((*(ptr)) args):(abort(),1))
#define krb5_cc_get_principal(context, cache, principal) krb5_x((cache)->ops->get_princ,(context, cache, principal))
So krb5_cc_get_principal should not end up as symbol in the object file.
Look at the krb5.h you are using see what version, and how krb5_cc_get_principal
is defined. Are you picking up some other krb5.h?
>
> I configure'd using:
>
> KRB5CFLAGS="-I/home/usr/its/rns/krb5/include"
> KRB5LIBS="/usr/lib/gss/mech_krb5.so -R/usr/lib/gss"
> export KRB5CFLAGS
> export KRB5LIBS
> ./configure --with-krb5=yes
>
> .. with downloaded kerberos includes from opensolaris.org
>
> mech_krb5.o contains:
>
> $ nm /usr/lib/gss/mech_krb5.so | egrep -i get_princ
> [1111] | 301596| 139|FUNC |GLOB |0 |10 |krb5_fcc_get_principal
> [141] | 310884| 66|FUNC |LOCL |2 |10 |krb5_mcc_get_principal
> [1760] | 312936| 139|FUNC |GLOB |0 |10 |krb5_scc_get_principal
>
> .. but no "krb5_cc_get_principal". Does anyone have any idea what
> the fix might be here?
>
> Regards,
>
> Robert.
>
> --- full make output ---
> $ make
> /opt/SUNWspro/bin/cc -I/home/usr/its/rns/krb5/include -DALLOW_REGISTER -I/home/usr/its/rns/openafs-1.4.4/src/config -I. -I. -I/home/usr/its/rns/openafs-1.4.4/includ
> e -I/home/usr/its/rns/openafs-1.4.4/include/afs -I/home/usr/its/rns/openafs-1.4.4/include/rx -I/home/usr/its/rns/openafs-1.4.4 -I/home/usr/its/rns/openafs-1.4.4/src
> -I/home/usr/its/rns/openafs-1.4.4/src -dy -Bdynamic -c aklog.c
> /opt/SUNWspro/bin/cc -I/home/usr/its/rns/krb5/include -DALLOW_REGISTER -I/home/usr/its/rns/openafs-1.4.4/src/config -I. -I. -I/home/usr/its/rns/openafs-1.4.4/include -I/home/usr/its/rns/openafs-1.4.4/include/afs -I/home/usr/its/rns/openafs-1.4.4/include/rx -I/home/usr/its/rns/openafs-1.4.4 -I/home/usr/its/rns/openafs-1.4.4/src -I/home/usr/its/rns/openafs-1.4.4/src -dy -Bdynamic -c aklog_main.c
> "aklog_main.c", line 711: warning: implicit function declaration: ktc_GetToken
> "aklog_main.c", line 797: warning: implicit function declaration: ktc_SetToken
> /opt/SUNWspro/bin/cc -I/home/usr/its/rns/krb5/include -DALLOW_REGISTER -I/home/usr/its/rns/openafs-1.4.4/src/config -I. -I. -I/home/usr/its/rns/openafs-1.4.4/include -I/home/usr/its/rns/openafs-1.4.4/include/afs -I/home/usr/its/rns/openafs-1.4.4/include/rx -I/home/usr/its/rns/openafs-1.4.4 -I/home/usr/its/rns/openafs-1.4.4/src -I/home/usr/its/rns/openafs-1.4.4/src -dy -Bdynamic -c krb_util.c
> "krb_util.c", line 60: warning: implicit function declaration: islower
> "krb_util.c", line 61: warning: implicit function declaration: toupper
> /opt/SUNWspro/bin/cc -I/home/usr/its/rns/krb5/include -DALLOW_REGISTER -I/home/usr/its/rns/openafs-1.4.4/src/config -I. -I. -I/home/usr/its/rns/openafs-1.4.4/include -I/home/usr/its/rns/openafs-1.4.4/include/afs -I/home/usr/its/rns/openafs-1.4.4/include/rx -I/home/usr/its/rns/openafs-1.4.4 -I/home/usr/its/rns/openafs-1.4.4/src -I/home/usr/its/rns/openafs-1.4.4/src -dy -Bdynamic -c linked_list.c
> "linked_list.c", line 52: warning: implicit function declaration: bzero
> /opt/SUNWspro/bin/cc -o aklog -I/home/usr/its/rns/krb5/include -DALLOW_REGISTER -I/home/usr/its/rns/openafs-1.4.4/src/config -I. -I. -I/home/usr/its/rns/openafs-1.4.4/include -I/home/usr/its/rns/openafs-1.4.4/include/afs -I/home/usr/its/rns/openafs-1.4.4/include/rx -I/home/usr/its/rns/openafs-1.4.4 -I/home/usr/its/rns/openafs-1.4.4/src -I/home/usr/its/rns/openafs-1.4.4/src -dy -Bdynamic aklog.o aklog_main.o krb_util.o linked_list.o -lsocket -lnsl /usr/lib/gss/mech_krb5.so -R/usr/lib/gss /home/usr/its/rns/openafs-1.4.4/lib/libprot.a /home/usr/its/rns/openafs-1.4.4/lib/libubik.a /home/usr/its/rns/openafs-1.4.4/lib/libauth.a /home/usr/its/rns/openafs-1.4.4/lib/librxkad.a /home/usr/its/rns/openafs-1.4.4/lib/librx.a /home/usr/its/rns/openafs-1.4.4/lib/liblwp.a /home/usr/its/rns/openafs-1.4.4/lib/libsys.a /home/usr/its/rns/openafs-1.4.4/lib/libdes.a /home/usr/its/rns/openafs-1.4.4/lib/libafsutil.a -lresolv -lsocket -lnsl -lintl -ldl
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
>
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444