I try to build R12B-5 on my linux box. <br>(otp_src_R12B-5.tar.gz with the patch otp_src_R12B-5_OTP-7738.patch applied.)<br><br>$cat /etc/slackware-version <br>Slackware 10.1.0<br><br>$ uname -a;/lib/libc.so.6;<br>Linux darkstar 2.6.11.6 #2 SMP Mon May 16 17:46:39 CST 2005 i686 unknown unknown GNU/Linux<br>
GNU C Library stable release version 2.3.4, by Roland McGrath et al.<br>Copyright (C) 2004 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.<br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>
PARTICULAR PURPOSE.<br>Compiled by GNU CC version 3.3.4.<br>Compiled on a Linux 2.4.29 system on 2005-01-28.<br>Available extensions:<br> GNU libio by Per Bothner<br> crypt add-on version 2.1 by Michael Glad and others<br>
GNU Libidn by Simon Josefsson<br> linuxthreads-0.10 by Xavier Leroy<br> BIND-8.2.3-T5B<br> libthread_db work sponsored by Alpha Processor Inc<br> NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk<br>
For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/libc/bugs.html%3E." target="_blank"><font color="#1d5392">http://www.gnu.org/software/libc/bugs.html>.</font></a><br><br>above is the kernel version and glibc version.<br>
<br>since clock_gettime() only supports CLOCK_MONOTONIC after kernel version 2.6.16, I guess.<br>( <a href="http://lwn.net/Articles/167897/)" target="_blank"><font color="#1d5392">http://lwn.net/Articles/167897/)</font></a><br>
<br>so i modify file: otp_src_R12B-5/erts/emulator/sys/unix/sys.c, replace<br>CLOCK_MONOTONIC to CLOCK_REALTIME, and build with:<br><br>LDFLAGS="-lrt -lepoll -lcrypto" ./configure --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-ssl --without-gs<br>
<br>then, run make,got error as follows:<br><br>=== Leaving application hipe<br>make[2]: Leaving directory `/data/tgz/otp_src_R12B-5/lib/hipe'<br>make[1]: Leaving directory `/data/tgz/otp_src_R12B-5/lib'<br>make[1]: Entering directory `/data/tgz/otp_src_R12B-5/erts'<br>
make[2]: Entering directory `/data/tgz/otp_src_R12B-5/erts/start_scripts'<br>/usr/bin/ginstall -c -d /home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/tmp<br>( cd /home/peterwang/tgz/otp_src_R12B-5/erts/start_scripts/tmp && \<br>
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()')<br>
/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()'<br>
make[2]: *** [RELEASES.src] Error 137<br>make[2]: Leaving directory `/data/tgz/otp_src_R12B-5/erts/start_scripts'<br>make[1]: *** [local_setup] Error 2<br>make[1]: Leaving directory `/data/tgz/otp_src_R12B-5/erts'<br>
make: *** [local_setup] Error 2<br><br>can anyone give some advices on that? thanks.<br><br>-peter