[erlang-questions] opensuse 10.2 erlang build error

Lucian PARVU <>
Mon Jan 8 14:11:34 CET 2007


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'
/otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:230: undefined 
reference to `__next_sigaction'
obj/i686-pc-linux-gnu/opt/hybrid/hipe_x86_signal.o: In function 
`hipe_signal_init':
/otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:305: undefined 
reference to `INIT'
obj/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'
/otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:230: undefined 
reference to `__next_sigaction'
/otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:220: undefined 
reference to `INIT'
/otp_src_R11B-2/erts/emulator/hipe/hipe_x86_signal.c:230: undefined 
reference to `__next_sigaction'

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

Thanks,
Lucian Parvu
ITC Networks



More information about the erlang-questions mailing list