[erlang-questions] Compile R11B-5 with libc6 2.7

Alex Vazquez <>
Mon Feb 18 17:26:09 CET 2008


Hi guys,

this is my first post to the list so excuse me if it is the wrong place or
the wrong way of doing it.

I am compiling Erlang/OTP R11B-5 from source on a Debian 64 bits machine.
All is ok until the compilation of the file
otp_src_R11B-5/erts/emulator/hipe/hipe_x86_signal.c, where i get undefined
references to the symbols INIT and __next_sigaction. After looking at the
file it is clear that the problem is that the version of libc installed on
in my system is 2.7-5 while that file checks version of libc up to version
2.6:

#if __GLIBC__ == 2 && (__GLIBC_MINOR__ >= 3 && __GLIBC_MINOR__ <= 6)
...
definition of 'INIT' macro and '__next_sigaction' function
...
#endif    /* glibc 2.3 */

I know the *best* solution would be to use R12B, which explicitely checks
for libc 2.7 but i can't do that, so my question is:

Is there any compatibility problem on using a patch like below, and use libc
2.7 with R11B-5? I assume it is no problem at all since 2.7 changes on libc
should be minimum and not break API but i would be grateful if you could
confirm.

--- hipe_x86_signal.c    2008-02-18 13:14:07.656139358 +0100
+++ hipe_x86_signal_glibc2-7.c    2008-02-18 16:40:54.252522271 +0100
@@ -34,7 +34,7 @@
 #endif
 #include "hipe_signal.h"

-#if __GLIBC__ == 2 && (__GLIBC_MINOR__ >= 3 && __GLIBC_MINOR__ <= 6)
+#if __GLIBC__ == 2 && (__GLIBC_MINOR__ >= 3 && __GLIBC_MINOR__ <= 7)
 /* See comment below for glibc 2.2. */
 #ifndef __USE_GNU
 #define __USE_GNU        /* to un-hide RTLD_NEXT */

Thank you,

-- 
Alejandro Vazquez Fente
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080218/f78d4c94/attachment.html>


More information about the erlang-questions mailing list