[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
applied.)

$cat /etc/slackware-version
Slackware 10.1.0

$ uname -a;/lib/libc.so.6;
Linux darkstar 2.6.11.6 #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
PARTICULAR PURPOSE.
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
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.<http://www.gnu.org/software/libc/bugs.html%3E.>

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
CLOCK_MONOTONIC to CLOCK_REALTIME, and build with:

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

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
/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/tmp
( cd /home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/tmp && \
erl -boot start_clean -noinput +B -eval
'release_handler:create_RELEASES("%ERL_ROOT%",
"/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts",
"/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/start_sasl.rel", []),
halt()')
/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",
"/home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/start_sasl.rel", []),
halt()'
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.

-peter
-------------- 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