[erlang-questions] opensuse 10.2 erlang build error

Mikael Pettersson mikpe@REDACTED
Wed Jan 10 17:04:19 CET 2007


Lucian PARVU writes:
 > Hi All,
 > 
 > In case you have this issue, you can use this fix:
 > 
 > [ISSUE]
 > Erlan otp_src_11B-2 Build Error on OpenSuse 10.2:
 > 
 > .... /i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function 
 > `my_sigaction':
 > /otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:220: undefined 
 > reference to `INIT'
...
 > [CAUSE]
 > OpenSuse 10.2 uses glibc version 2.5
 > 
 > [FIX]
 > You need to modify otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c 
 > line 37 to:
 > #if __GLIBC__ == 2 && (__GLIBC_MINOR__ == 3 || __GLIBC_MINOR__ == 4 || 
 > __GLIBC_MINOR__ == 5)

You didn't post a proper `patch' file.
I've checked in the following fix, which will be included in the
next R11B release. It's been tested on FC6/x86_64 with glibc-2.5.

/Mikael

--- otp-0109/erts/emulator/hipe/hipe_x86_signal.c.~1~	2006-08-25 12:03:01.000000000 +0200
+++ otp-0109/erts/emulator/hipe/hipe_x86_signal.c	2007-01-10 13:01:03.000000000 +0100
@@ -34,7 +34,7 @@
 #endif
 #include "hipe_signal.h"
 
-#if __GLIBC__ == 2 && (__GLIBC_MINOR__ == 3 || __GLIBC_MINOR__ == 4)
+#if __GLIBC__ == 2 && (__GLIBC_MINOR__ >= 3 && __GLIBC_MINOR__ <= 5)
 /* See comment below for glibc 2.2. */
 #ifndef __USE_GNU
 #define __USE_GNU		/* to un-hide RTLD_NEXT */



More information about the erlang-questions mailing list