[erlang-questions] erl_interface question

Paul Oliver puzza007@REDACTED
Thu Sep 6 18:46:40 CEST 2007


Hi,

I'm trying to link erl_interface code with non-threaded libs and get the
following:

poliver@REDACTED:~/foo$ make
gcc -fPIC -O2 -fomit-frame-pointer -Wall -g -Wno-pointer-sign -I.
-I/opt/informix/incl/esql -I/tmp/appserv/incl -c arse.c -o ix86/arse.o
arse.c: In function 'main':
arse.c:33: warning: 'e' is used uninitialized in this function
gcc -L/opt/informix/lib -L/opt/informix/lib/esql
-L/usr/lib/erlang/lib/erl_interface-3.5.5.3/lib -L/tmp/appserv/lib/ix86
ix86/arse.o -lerl_interface_st -lei_st -lOT_InfTcl -lc -o arse
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o): In function `erl_copy_term':
(.text+0xfba): undefined reference to `__erl_errno'
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o): In function `erl_mk_var':
(.text+0x12b8): undefined reference to `__erl_errno'
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o): In function
`__erl_mk_reference':
(.text+0x1362): undefined reference to `__erl_errno'
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o): In function `erl_mk_atom':
(.text+0x1481): undefined reference to `__erl_errno'
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o): In function `erl_mk_port':
(.text+0x1699): undefined reference to `__erl_errno'
/usr/lib/erlang/lib/erl_interface-
3.5.5.3/lib/liberl_interface_st.a(erl_eterm.o):(.text+0x175b): more
undefined references to `__erl_errno' follow
collect2: ld returned 1 exit status
make: *** [arse] Error 1

I've seen this<http://erlang.org/pipermail/erlang-questions/2003-August/009688.html>post.
 Can anyone tell me what I'm doing wrong?

Thanks in advance,
Paul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070906/3086d036/attachment.htm>


More information about the erlang-questions mailing list