[18983] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

[patch] krb5 HEAD fails to build on RHEL5/Linux/IA64 with $

daemon@ATHENA.MIT.EDU (Roland Mainz)
Mon Sep 1 14:57:25 2014

Date: Mon, 1 Sep 2014 14:57:12 -0400 (EDT)
From: Roland Mainz <rmainz@redhat.com>
To: krbdev@mit.edu
Message-ID: <1665048908.27071216.1409597832877.JavaMail.zimbra@redhat.com>
In-Reply-To: <1219072029.27067314.1409595365294.JavaMail.zimbra@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu


Hi!

---

While doing debugging for another issue I came across the following build failure in krb5 HEAD (zip'ed src archive from 2014-09-01/20:05h CEST) with --enable-static --disable-shared on RHEL5/Linux/IA64:
-- snip --
../lib/libverto.a(verto-k5ev.o): In function `periodic_recalc':
/home/rmainz/work/krb5/krb5-master/build2_static/util/verto/../../../src/util/verto/ev.c:2218: undefined reference to `ceil'
/home/rmainz/work/krb5/krb5-master/build2_static/util/verto/../../../src/util/verto/ev.c:2218: undefined reference to `ceil'
/home/rmainz/work/krb5/krb5-master/build2_static/util/verto/../../../src/util/verto/ev.c:2218: undefined reference to `ceil'
collect2: ld returned 1 exit status
make[1]: *** [krb5kdc] Error 1
make[1]: Leaving directory `/home/rmainz/work/krb5/krb5-master/build2_static/kdc'
make: *** [all-recurse] Error 1
-- snip --


Straightforward patch is a simple:
-- snip --
$ diff -u src/configure.in.original src/configure.in
--- src/configure.in.original   2014-09-01 14:44:21.000000000 -0400
+++ src/configure.in    2014-09-01 14:44:39.000000000 -0400
@@ -1260,7 +1260,7 @@
   [AC_HELP_STRING([--with-system-verto], [always use system verto library])],
   [], [with_system_verto=default])
 VERTO_CFLAGS=
-VERTO_LIBS="-lverto"
+VERTO_LIBS="-lverto -lm"
 VERTO_VERSION=k5
 if test "x$with_system_verto" != xno; then
   if verto_cflags=`pkg-config --cflags libverto 2>&1`; then
-- snip --

With that patch the build succeeds... :-)

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) rmainz@redhat.com
  \__\/\/__/  IPA/Kerberos5 team
  /O /==\ O\  
 (;O/ \/ \O;)
 
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post