Return-Path: Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by krbdev.mit.edu (Postfix) with ESMTP id 3F7243F112 for ; Sun, 2 Jun 2013 09:52:38 -0400 (EDT) Received: from zimbra33-e6.priv.proxad.net (unknown [172.20.243.183]) by smtp5-g21.free.fr (Postfix) with ESMTP id A949DD4811D for ; Sun, 2 Jun 2013 15:52:34 +0200 (CEST) Date: Sun, 2 Jun 2013 15:52:33 +0200 (CEST) From: Gilles Espinasse To: rt-comment@krbdev.mit.edu Message-ID: <135410569.172544434.1370181153513.JavaMail.root@zimbra33-e6.priv.proxad.net> In-Reply-To: Subject: Re: [krbdev.mit.edu #7651] [PATCH] krb5 fix make check dbtest linking error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-Ip: [82.236.101.3] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - FF3.0 (Win)/7.2.0-GA2598) X-Authenticated-User: g.esp@free.fr RT-Send-Cc: Content-Length: 1820 ----- Mail original ----- > De: "Greg Hudson via RT" > Envoyé: Vendredi 31 Mai 2013 17:46:26 > Objet: [krbdev.mit.edu #7651] [PATCH] krb5 fix make check dbtest linking error > > Just to confirm: this is a build with static libraries? > I used for testing ./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" --prefix=/usr --localstatedir=/var/lib --with-system-et --with-system-ss and a second try adding --with-crypto-impl=openssl The key point to have the linking issue with dbtest is that krb5 should not be already installed. In case krb5 is not installed, the error happen even with a simple ./configure && make && make check If krb5 is already installed, no error happen. While testing, I find that 'make clean' job may be incomplete if first build use built-in {et,ss} and second use system {et,ss}. To reproduce what I made ./configure && make ./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" --with-system-et --with-system-ss && make clean && make The error is + objlist=' prof_tree.so prof_file.so prof_parse.so prof_get.so prof_set.so prof_err.so prof_init.so' + gcc -shared -fPIC -Wl,-h,libprofile.so.1,--no-undefined -o libprofile.so.1.1 prof_tree.so prof_file.so prof_parse.so prof_get.so prof_set.so prof_err.so prof_init.so -Wl,--enable-new-dtags -Wl,-rpath -Wl,/usr/local/lib -L../../lib -lcom_err -lkrb5support -lresolv -Wl,--hash-style=gnu -Wl,--version-script binutils.versions prof_err.so: In function `initialize_prof_error_table': prof_err.c:(.text+0xa1): undefined reference to `_et_list' collect2: ld returned 1 exit status make[2]: *** [libprofile.so.1.1] Error 1 I needed that to workaround the issue: find . \( -name '*.o' -o -name '*.so' \) -delete && make I didn't feel the need to play with --disable-shared --enable-static. Gilles