Received: from saint-elmos-fire.mit.edu (tlyu@SAINT-ELMOS-FIRE.MIT.EDU [18.18.0.248]) by krbdev.mit.edu (8.9.3) with ESMTP id OAA24901; Sat, 2 Nov 2002 14:04:18 -0500 (EST) Received: (from tlyu@localhost) by saint-elmos-fire.mit.edu (8.9.3) id OAA17091; Sat, 2 Nov 2002 14:04:15 -0500 (EST) To: rt@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #1196] kdb5_util test fails due to an undefined symbol References: From: Tom Yu Date: Sat, 02 Nov 2002 14:04:15 -0500 In-Reply-To: ("The RT System itself via RT"'s message of "Wed, 25 Sep 2002 04:45:31 -0400 (EDT)") Message-Id: Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 1336 >>>>> "erik" == The RT System itself via RT 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