Error making krb5-1.5.1 on AIX 5.3 TL 5 - Kerberos

This is a discussion on Error making krb5-1.5.1 on AIX 5.3 TL 5 - Kerberos ; When running make on krb5-1.5.1 I get the following errors: Target "all" is up to date. gcc -L../../../lib -Wl,-blibpath:/usr/krb5/lib::/usr/lib:/lib -g -O2 -Wa ll -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedanti c -L/usr/linux/lib,Wl,-brtl,-blibsuff:so -o client client.o rpc_test_clnt.o -lg ssrpc -lgssapi_krb5 -lkrb5 -lk5crypto ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Error making krb5-1.5.1 on AIX 5.3 TL 5

  1. Error making krb5-1.5.1 on AIX 5.3 TL 5

    When running make on krb5-1.5.1 I get the following errors:

    Target "all" is up to date.
    gcc -L../../../lib -Wl,-blibpath:/usr/krb5/lib::/usr/lib:/lib
    -g -O2 -Wa
    ll -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow
    -pedanti
    c -L/usr/linux/lib,Wl,-brtl,-blibsuff:so -o client client.o
    rpc_test_clnt.o -lg
    ssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support
    ld: 0711-317 ERROR: Undefined symbol: krb5_gss_dbg_client_expcreds
    ld: 0711-317 ERROR: Undefined symbol: gssrpc_auth_debug_gssapi
    ld: 0711-317 ERROR: Undefined symbol: gssrpc_misc_debug_gssapi
    ld: 0711-317 ERROR: Undefined symbol: gssrpc_svc_debug_gssapi
    ld: 0711-317 ERROR: Undefined symbol:
    ..gssrpc_auth_gssapi_create_default
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.
    collect2: ld returned 8 exit status
    make: 1254-004 The error code from the last command is 1.


    Stop.

    The OS is AIX 5.3 TL 5. gcc is (GCC) 3.3.3.
    Configure looks like:
    export
    LIBPATH=/lppdir/build/krb5/krb5/src/lib:/usr/local/lib:/usr/linux/lib:$LI
    BPATH
    export LDFLAGS="-L/usr/linux/lib,Wl,-brtl,-blibsuff:so"
    ../configure --with-cc=gcc \
    --enable-shared \
    --libdir=/usr/krb5/lib \
    --disable-thread-support

    Any ideas?


  2. Re: Error making krb5-1.5.1 on AIX 5.3 TL 5

    I was able to get through these errors by finding the compiled library
    in the src tree, copying it to /usr/lib and linking it to a lib.a file.


    For example to fix the error
    "ld: 0711-317 ERROR: Undefined symbol: krb5_gss_dbg_client_expcreds"

    I first copy src/lib/gssapi/libgssapi_krb5.so.2.2 over to /usr/lib
    then set a link

    ln -s libgssapi_krb5.so.2.2 libgssapi_krb5.a

    and then I can get by that error. However on my next make I get an
    error on another library. Since I'm copying and setting links over and
    over again for various libraries I realize I missed some switch in my
    configure.

    Any help for my bone headed approach is appreciated. Flaming is
    expected.


  3. Re: Error making krb5-1.5.1 on AIX 5.3 TL 5

    > Any help for my bone headed approach is appreciated. Flaming is
    > expected.

    HAve you installed the required/dependend libraries?
    Under linux you normaly need the libfoo-*dev* package.
    if you dont have them, try to build them yourselve.

  4. Re: Error making krb5-1.5.1 on AIX 5.3 TL 5

    After creating the following links in src/lib I was able to complete
    the make:

    lrwxrwxrwx 1 root 101 17 Dec 21 13:57
    libkrb5support.a -> libkrb5support.so
    lrwxrwxrwx 1 root 101 10 Dec 21 13:57 libkrb5.a ->
    libkrb5.so
    lrwxrwxrwx 1 root 101 10 Dec 21 13:57 libkrb4.a ->
    libkrb4.so
    lrwxrwxrwx 1 root 101 14 Dec 21 13:57 libk5crypto.a
    -> libk5crypto.so
    lrwxrwxrwx 1 root 101 12 Dec 21 13:57 libgssrpc.a ->
    libgssrpc.so
    lrwxrwxrwx 1 root 101 17 Dec 21 13:57
    libgssapi_krb5.a -> libgssapi_krb5.so
    lrwxrwxrwx 1 root 101 12 Dec 21 13:57 libdes425.a ->
    libdes425.so
    lrwxrwxrwx 1 root 101 13 Dec 21 13:57 libcom_err.a
    -> libcom_err.so
    lrwxrwxrwx 1 root 101 15 Dec 21 14:00 libkadm5clnt.a
    -> libkadm5clnt.so
    lrwxrwxrwx 1 root 101 14 Dec 21 14:01 libkadm5srv.a
    -> libkadm5srv.so

    However, the "make install" omitted all the libraries so when I enter a
    command such as kinit I get the error:

    exec(): 0509-036 Cannot load program kinit because of the following
    errors:
    0509-150 Dependent module libkrb5.a could not be loaded.
    0509-022 Cannot load module libkrb5.a.
    0509-026 System error: A file or directory in the path name
    does not exist

    I checked and sure enough none of the library files made it to the
    install so even if I had the LIBPATH set right it won't help, they
    don't exist.

    The OS is AIX 5.3 TL 5. gcc is (GCC) 3.3.3.
    Configure looks like:
    export
    LIBPATH=/lppdir/build/krb5/krb5/src/lib:/usr/local/lib:/usr/linux/lib:$LIBPATH
    export LDFLAGS="-L/lppdir/build/krb5/krb5/src/lib,Wl,-blibsuff:so"
    ../configure --with-cc=gcc \
    --enable-shared \
    --libdir=/lppdir/build/krb5/krb5/src/lib \
    --disable-thread-support

    Any ideas?

    Also I was getting a bison error that read "bison getdate.y
    conflicts: 4 shift/reduce" A search on google suggested I install a
    version of bison prior to 1.3. UCLA had version 1.24 and then my make
    completed.


  5. Re: Error making krb5-1.5.1 on AIX 5.3 TL 5

    I was finally able to get this compiled using vac.C ver 8.0.0.0 that
    another office allowed me to use. I did have one make problem with it
    not finding libdb.so so I copied src/plugins/kdb/db2/libdb2/libdb.so
    to src/lib/libdb.a.

    Then since I didn't have root on that machine I did a make install on
    another machine I had root on and it installed including the libraries.


    I also created a bff install and that went well.

    I used the following configure syntax:

    ../configure \
    --disable-thread-support \
    LDFLAGS="-blibsuff:so"

    Now to verify if it works with Active Directory. The journey continues.


  6. Re: Error making krb5-1.5.1 on AIX 5.3 TL 5


    prichard@blm.gov wrote:
    ..
    ..
    > Now to verify if it works with Active Directory. The journey continues.


    sshd will not authenticate to Kerberos using my build.

    I put sshd in debug log mode and get the following error:

    debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):
    \t0509-022 Cannot
    load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).\n\t0509-026 System
    error: A f
    ile or directory in the path name does not exist.\n


    I linked /usr/local/lib to /usr/krb5/lib and used the command

    "ar -v -q libkrb5.a libkrb5.so" to create an archived library.

    "ar -v -t libkrb5.a" shows

    rw-r--r-- 0/0 3538290 Jan 09 12:48 2007 libkrb5.so

    What am I missing? I can't get krb 1.5.1 to compile on AIX 5.3 using
    the .a library extension. Back on AIX 5.1 I was able to compile
    krb5-1.3.6 with the .a library extension with no problem.

    Perhaps there is a configure option for that but I don't know what it
    is.


+ Reply to Thread