[krbdev.mit.edu #1196] kdb5_util test fails due to an undefined symbol

Tom Yu via RT rt-comment at krbdev.mit.edu
Sat Nov 2 14:04:20 EST 2002


>>>>> "erik" == The RT System itself via RT <rt-comment at krbdev.mit.edu> writes:

>> Environment:
erik> Compiler: gcc version 2.95.4 20011002 (Debian prerelease)
erik> System: Linux ppc215 2.4.19 #1 Tue Sep 17 10:37:29 CEST 2002 i686 unknown
erik> Architecture: i686
erik> (same happens using gcc 3.0)

>> Description:
erik> make check says this:

erik> LD_LIBRARY_PATH=echo -L../lib | sed -e "s/-L//g" -e "s/ /:/g"; export
erik> LD_LIBRARY_PATH; KRB5_KDC_PROFILE=kdc.conf
erik> KRB5_CONFIG=./../config-files/krb5.conf ../kadmin/dbutil/kdb5_util -d
erik> ./testdb -r FOO.TEST.REALM -P footes dump ./testdb.dump
erik> ../kadmin/dbutil/kdb5_util: relocation error: ../kadmin/dbutil/kdb5_util:
erik> undefined symbol: krb5_db_iterate_ext

This is probably due to linux preferring libraries in a binary's RPATH
to the path in LD_LIBRARY_PATH.  If you're going to build with shared
libraries, try doing a "make install" before running the tests so that
the tests get the correct libraries.  Also, we'd appreciate knowing
any workarounds for this problem.

>> How-To-Repeat:
erik> ./configure --prefix=/usr --enable-shared --with-ccopts="-O2 -D_REENTRANT" \
erik> --localstatedir=/etc --mandir=/usr/share/man --without-tcl --enable-dns=no
Is there any particular reason you're configuring with --prefix=/usr?
It seems like a bad idea.

---Tom




More information about the krb5-bugs mailing list