[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: heimdal misbuilds on AIX when kth-krb installed



>>>>> "Brandon" == Brandon S Allbery KF8NH <allbery@ece.cmu.edu> writes:

My question would be to ask how come libtool turned this

    Brandon> /bin/sh ../../libtool --mode=link gcc-2.95
    Brandon> -I/usr/local/berkeleydb/include
    Brandon> -L/usr/local/berkeleydb/lib -Wall -Wmissing-prototypes
    Brandon> -Wpointer-arith -Wbad-function-cast
    Brandon> -Wmissing-declarations -Wnested-externs -include
    Brandon> /afs/.ece.cmu.edu/support/heimdal/0.3d/src/configure-hack.h
    Brandon> -g -o verify_krb5_conf verify_krb5_conf.o libkrb5.la
    Brandon> -rpath /usr/local/lib -L/usr/local/lib -lkrb
    Brandon> ../../lib/des/libdes.la ../../lib/asn1/libasn1.la
    Brandon> ../../lib/vers/libvers.la ../../lib/roken/libroken.la
    Brandon> -ldb -lbind -ldb2

into this:

    Brandon> gcc-2.95 -I/usr/local/berkeleydb/include -Wall
    Brandon> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
    Brandon> -Wmissing-declarations -Wnested-externs -include
    Brandon> /afs/.ece.cmu.edu/support/heimdal/0.3d/src/configure-hack.h
    Brandon> -g -o verify_krb5_conf verify_krb5_conf.o
    Brandon> -L/usr/local/berkeleydb/lib -L./.libs -lkrb5
    Brandon> -L/usr/local/lib
    Brandon> -L/afs/.ece.cmu.edu/support/heimdal/0.3d/src/heimdal-0.3d/lib/des/.libs
    Brandon> -L/afs/.ece.cmu.edu/support/heimdal/0.3d/src/heimdal-0.3d/lib/asn1/.libs
    Brandon> -L/afs/.ece.cmu.edu/support/heimdal/0.3d/src/heimdal-0.3d/lib/roken/.libs
    Brandon> -lkrb -L../../lib/des/.libs -ldes -L../../lib/asn1/.libs
    Brandon> -lasn1 ../../lib/vers/.libs/libvers.a
    Brandon> -L../../lib/roken/.libs -lroken -ldb -lbind -ldb2
    Brandon> -L/usr/local/lib

which has references to -lroken -ldes (WRONG).

The correct thing is to say ../../lib/des/libdes.la
../../lib/roken/libroken.la, as in the command line to libtool.

however, I am reluctant to accept that this is a libtool bug (yet).

This is what I get:

/bin/sh ../../libtool --mode=link gcc  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2   -o verify_krb5_conf  verify_krb5_conf.o libkrb5.la  ../../lib/des/libdes.la ../../lib/asn1/libasn1.la ../../lib/vers/libvers.la ../../lib/roken/libroken.la -lcrypt -ldb -lresolv -lresolv 
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -o .libs/verify_krb5_conf verify_krb5_conf.o  ./.libs/libkrb5.so /homes/bam/source/notmine/heimdal-0.3d/build-tree/heimdal-0.3d/lib/com_err/.libs/libcom_err.so -lresolv -lresolv /homes/bam/source/notmine/heimdal-0.3d/build-tree/heimdal-0.3d/lib/des/.libs/libdes.so -lresolv -lresolv /homes/bam/source/notmine/heimdal-0.3d/build-tree/heimdal-0.3d/lib/asn1/.libs/libasn1.so -lresolv -lresolv -lresolv -lresolv /homes/bam/source/notmine/heimdal-0.3d/build-tree/heimdal-0.3d/lib/roken/.libs/libroken.so -lresolv -lresolv -lresolv -lresolv ../../lib/des/.libs/libdes.so -lresolv -lresolv ../../lib/asn1/.libs/libasn1.so -lresolv -lresolv ../../lib/vers/.libs/libvers.a -lresolv -lresolv ../../lib/roken/.libs/libroken.so -lresolv -lresolv -lcrypt -ldb -lresolv -lresolv
creating verify_krb5_conf

note that libtool uses full path names for all libraries except for
system libraries.

Are you using the correct version of libtool?????
-- 
Brian May <bam@snoopy.apana.org.au>