[erlang-bugs] undefined __erl_errno in erl_interface ?

Dominic Williams <>
Thu May 31 17:00:14 CEST 2007


Hello,

A port that compiled fine under R10B-10 is failing to link
because liberl_interface_st.a has undefined references to
__erl_errno (under Linux):

gcc -o ../priv/i386-redhat-linux/mysql_port.out
../priv/i386-redhat-linux/mysql_port.o -L/usr/X11R6/lib -L/usr/lib
-L/usr/lib/mysql -lmysqlclient
-L/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib
-lerl_interface_st -lei_st
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x105b):
In function `erl_copy_term':
legacy/erl_eterm.c:776: undefined reference to `__erl_errno'
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x11f2):
In function `erl_mk_var':
legacy/erl_eterm.c:497: undefined reference to `__erl_errno'
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x1288):
In function `__erl_mk_reference':
legacy/erl_eterm.c:254: undefined reference to `__erl_errno'
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x13b7):
In function `erl_mk_port':
legacy/erl_eterm.c:223: undefined reference to `__erl_errno'
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x145d):
In function `erl_mk_pid':
legacy/erl_eterm.c:192: undefined reference to `__erl_errno'
/usr/local/R11B-4/lib/erlang/lib/erl_interface-3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o)(.text+0x14de):legacy/erl_eterm.c:127:
more undefined references to `__erl_errno' follow
collect2: ld returned 1 exit status

Has the definition of __erl_errno accidentally been removed, or
should I be doing something different to compile under R10B-10
and R11B-4 ?

Best regards,

Dominic Williams
http://dominicwilliams.net

----




More information about the erlang-bugs mailing list