[erlang-questions] Problem compiling under CentOS 5

Mikael Pettersson mikpe@REDACTED
Fri Aug 8 19:15:43 CEST 2008


Brian Candler writes:
 > I've been trying to compile R12B3 under CentOS 5, and compilation aborts at
 > the following point:
 > 
 > gcc  -g -O2 -I/v/build/otp_src_R12B-3/erts/i686-pc-linux-gnu  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -o ../priv/bin/i686-pc-linux-gnu/ssl_esock ../priv/obj/i686-pc-linux-gnu/esock.o ../priv/obj/i686-pc-linux-gnu/debuglog.o ../priv/obj/i686-pc-linux-gnu/esock_poll.o ../priv/obj/i686-pc-linux-gnu/esock_osio.o ../priv/obj/i686-pc-linux-gnu/esock_utils.o ../priv/obj/i686-pc-linux-gnu/esock_posix_str.o ../priv/obj/i686-pc-linux-gnu/esock_openssl.o -lutil -ldl -lm   /usr/lib/libssl.a /usr/lib/libcrypto.a  /usr/lib/libkrb5.a /usr/lib/libkrb5support.a /usr/lib/libk5crypto.a /usr/lib/libresolv.a /usr/lib/libcom_err.a /usr/lib/libz.a
 > /usr/lib/libkrb5.a(cc_keyring.o): In function `krb5_krcc_next_cred':
 > (.text+0x738): undefined reference to `keyctl_read_alloc'
 > /usr/lib/libkrb5.a(cc_keyring.o): In function `krb5_krcc_get_principal':
 > (.text+0xf2b): undefined reference to `keyctl_read_alloc'
etc

FWIW, I can build R12B-3 fine on CentOS 5.2 / x86_64.
But if I force a 32-bit build (by setting CC when configuring)
then I get the same error you got.

Looks like a bug in CentOS, maybe inherited from RHEL5.

I did notice that the keyutils-libs-devel rpm only existed as
an i386 rpm, whereas all other openssl/krb5 stuff existed as
both i386 and x86_64 rpms. That may or may not be relevant to
this issue.

/Mikael



More information about the erlang-questions mailing list