Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  Compiling Erlang for the iPhone

lokifirebringer
Posted: Tue Sep 01, 2009 6:49 pm Reply with quote
Joined: 29 Jul 2009 Posts: 9
I am having trouble. After a bunch of tinkering with the erlang configure file, I have gotten Erlang to compile up to a point. However, whenever I get to the file "sys.c" in erts/emulator/sys/unix, I get these errors:

sys/unix/sys.c: In function ‘ethr_internal_alloc’:
sys/unix/sys.c:389: error: ‘ERTS_ALC_T_ETHR_INTERNAL’ undeclared (first use in this function)
sys/unix/sys.c:389: error: (Each undeclared identifier is reported only once
sys/unix/sys.c:389: error: for each function it appears in.)
sys/unix/sys.c: In function ‘ethr_internal_realloc’:
sys/unix/sys.c:393: error: ‘ERTS_ALC_T_ETHR_INTERNAL’ undeclared (first use in this function)
sys/unix/sys.c: In function ‘ethr_internal_free’:
sys/unix/sys.c:397: error: ‘ERTS_ALC_T_ETHR_INTERNAL’ undeclared (first use in this function)



I've searched through the code, and I can't find any declaration of ERTS_ALC_T_ETHR_INTERNAL. Any help you can give is much appreciated.

Loki
View user's profile Send private message
zghst
Posted: Sun Sep 06, 2009 6:55 am Reply with quote
Joined: 15 Aug 2009 Posts: 6
this is what find-grep finds for me

./sys/win32/sys.c:2860: return erts_alloc_fnf(ERTS_ALC_T_ETHR_INTERNAL, (Uint) size);
./sys/win32/sys.c:2864: return erts_realloc_fnf(ERTS_ALC_T_ETHR_INTERNAL, ptr, (Uint) size);
./sys/win32/sys.c:2868: erts_free(ERTS_ALC_T_ETHR_INTERNAL, ptr);
./sys/unix/sys.c:389: return erts_alloc_fnf(ERTS_ALC_T_ETHR_INTERNAL, (Uint) size);
./sys/unix/sys.c:393: return erts_realloc_fnf(ERTS_ALC_T_ETHR_INTERNAL, ptr, (Uint) size);
./sys/unix/sys.c:397: erts_free(ERTS_ALC_T_ETHR_INTERNAL, ptr);
./i686-pc-linux-gnu/opt/plain/erl_alloc_types.h:138:#define ERTS_ALC_T_ETHR_INTERNAL (593)
./i686-pc-linux-gnu/opt/plain/erl_alloc_types.h:329: ERTS_ALC_T_ETHR_INTERNAL,
./i686-pc-linux-gnu/opt/smp/erl_alloc_types.h:138:#define ERTS_ALC_T_ETHR_INTERNAL (593)
./i686-pc-linux-gnu/opt/smp/erl_alloc_types.h:339: ERTS_ALC_T_ETHR_INTERNAL,
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum