[patch] krb5 HEAD fails to build on RHEL5/Linux/IA64 with $ configure --enable-static --disable-shared # ...

Roland Mainz rmainz at redhat.com
Mon Sep 1 14:57:12 EDT 2014


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 at redhat.com
  \__\/\/__/  IPA/Kerberos5 team
  /O /==\ O\  
 (;O/ \/ \O;)
 


More information about the krbdev mailing list