[erlang-questions] Problem compiling under CentOS 5

Sargun Dhillon <>
Fri Aug 8 20:21:06 CEST 2008


Disable kerberos and SSL inside of the build. That'll let it compile. Do you
need SSL?

On Fri, Aug 8, 2008 at 10:15 AM, Mikael Pettersson <> wrote:

> 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
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080808/c1bae37a/attachment.html>


More information about the erlang-questions mailing list