[erlang-questions] opensuse 10.2 erlang build error

Lucian Parvu lucian@REDACTED
Wed Jan 10 18:27:50 CET 2007


This is the first time I post on erlang mailing list.
I'll take care next time to follow the proper patch procedures.

Thanks,
Lucian

-----Original Message-----
From: Mikael Pettersson [mailto:mikpe@REDACTED] 
Sent: Wednesday, January 10, 2007 6:04 PM
To: Lucian PARVU
Cc: Erlang-Questions (E-mail)
Subject: Re: [erlang-questions] opensuse 10.2 erlang build error

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 */

!DSPAM:19,45a5112c170564799618498!





More information about the erlang-questions mailing list