[erlang-questions] beginner: Build R12B-5 failed on Slackware 10.1.0

Peter Wang ptr.wang@REDACTED
Thu Mar 26 17:43:04 CET 2009

I try to build R12B-5 on my linux box.
(otp_src_R12B-5.tar.gz with the patch otp_src_R12B-5_OTP-7738.patch

$cat /etc/slackware-version
Slackware 10.1.0

$ uname -a;/lib/libc.so.6;
Linux darkstar #2 SMP Mon May 16 17:46:39 CST 2005 i686 unknown
unknown GNU/Linux
GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Compiled by GNU CC version 3.3.4.
Compiled on a Linux 2.4.29 system on 2005-01-28.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        linuxthreads-0.10 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
For bug reporting instructions, please see:

above is the kernel version and glibc version.

since clock_gettime() only supports CLOCK_MONOTONIC after kernel version
2.6.16, I guess.
( http://lwn.net/Articles/167897/)

so i modify file: otp_src_R12B-5/erts/emulator/sys/unix/sys.c, replace

LDFLAGS="-lrt -lepoll -lcrypto" ./configure --enable-threads
--enable-smp-support --enable-kernel-poll --enable-hipe --without-ssl

then, run make,got error as follows:

=== Leaving application hipe
make[2]: Leaving directory `/data/tgz/otp_src_R12B-5/lib/hipe'
make[1]: Leaving directory `/data/tgz/otp_src_R12B-5/lib'
make[1]: Entering directory `/data/tgz/otp_src_R12B-5/erts'
make[2]: Entering directory `/data/tgz/otp_src_R12B-5/erts/start_scripts'
/usr/bin/ginstall -c -d
( cd /home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/tmp && \
erl -boot start_clean -noinput +B -eval
"/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/start_sasl.rel", []),
/bin/sh: line 1: 12275 Killed                  erl -boot start_clean
-noinput +B -eval 'release_handler:create_RELEASES("%ERL_ROOT%",
"/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/start_sasl.rel", []),
make[2]: *** [RELEASES.src] Error 137
make[2]: Leaving directory `/data/tgz/otp_src_R12B-5/erts/start_scripts'
make[1]: *** [local_setup] Error 2
make[1]: Leaving directory `/data/tgz/otp_src_R12B-5/erts'
make: *** [local_setup] Error 2

can anyone give some advices on that? thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090327/7a14b8c3/attachment.htm>

More information about the erlang-questions mailing list