[OpenAFS] Trying to build aklog with Solaris 10 (x86), openafs-1.4.4, Sun Kerberos

Robert Sturrock rns@unimelb.edu.au
Thu, 30 Aug 2007 19:02:17 +1000


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'

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