[erlang-questions] error compiling R14B04 on snow leopard

Wes James comptekki@REDACTED
Thu Apr 5 00:01:05 CEST 2012


I'm trying to compile erlang R14B04 on snow leopard, but I'm getting
this error.   Is there something I can do to fix this?

gcc  -mdynamic-no-pic -m32 -g  -O3 -fomit-frame-pointer
-I/usr/local/src/otp_src_R14B04/erts/i386-apple-darwin10.8.0
-no-cpp-precomp -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP
-DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE
-D_REENTRANT -DPOSIX_THREADS  -Ii386-apple-darwin10.8.0/opt/smp -Ibeam
-Isys/unix -Isys/common -Ii386-apple-darwin10.8.0 -Izlib  -Ipcre
-Ihipe -I../include -I../include/i386-apple-darwin10.8.0
-I../include/internal -I../include/internal/i386-apple-darwin10.8.0 -c
beam/erl_bif_re.c -o obj/i386-apple-darwin10.8.0/opt/smp/erl_bif_re.o
beam/erl_bif_re.c: In function 'erts_init_bif_re':
beam/erl_bif_re.c:67: error: 'erts_pcre_malloc' undeclared (first use
in this function)
beam/erl_bif_re.c:67: error: (Each undeclared identifier is reported only once
beam/erl_bif_re.c:67: error: for each function it appears in.)
beam/erl_bif_re.c:68: error: 'erts_pcre_free' undeclared (first use in
this function)
beam/erl_bif_re.c:69: error: 'erts_pcre_stack_malloc' undeclared
(first use in this function)
beam/erl_bif_re.c:70: error: 'erts_pcre_stack_free' undeclared (first
use in this function)
beam/erl_bif_re.c: In function 'build_compile_result':
beam/erl_bif_re.c:397: warning: implicit declaration of function
'erts_pcre_fullinfo'
beam/erl_bif_re.c:402: warning: implicit declaration of function
'erts_pcre_free'
beam/erl_bif_re.c: In function 're_compile_2':
beam/erl_bif_re.c:456: warning: implicit declaration of function
'erts_pcre_compile2'
beam/erl_bif_re.c:457: warning: assignment makes pointer from integer
without a cast
beam/erl_bif_re.c: In function 'cleanup_restart_context':
beam/erl_bif_re.c:506: warning: implicit declaration of function
'erts_pcre_free_restart_data'
beam/erl_bif_re.c: In function 'build_capture':
beam/erl_bif_re.c:815: warning: implicit declaration of function
'erts_pcre_get_stringnumber'
beam/erl_bif_re.c: In function 're_run_3':
beam/erl_bif_re.c:903: warning: assignment makes pointer from integer
without a cast
beam/erl_bif_re.c:981: error: 'PCRE_EXTRA_LOOP_LIMIT' undeclared
(first use in this function)
beam/erl_bif_re.c:983: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:986: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:987: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:990: error: 'pcre_extra' has no member named 'restart_data'
beam/erl_bif_re.c:991: error: 'pcre_extra' has no member named 'restart_flags'
beam/erl_bif_re.c:992: error: 'pcre_extra' has no member named
'loop_counter_return'
beam/erl_bif_re.c:1056: warning: implicit declaration of function
'erts_pcre_exec'
beam/erl_bif_re.c:1060: error: 'PCRE_ERROR_LOOP_LIMIT' undeclared
(first use in this function)
beam/erl_bif_re.c: In function 're_exec_trap':
beam/erl_bif_re.c:1115: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:1118: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:1119: error: 'pcre_extra' has no member named 'loop_limit'
beam/erl_bif_re.c:1121: error: 'pcre_extra' has no member named
'loop_counter_return'
beam/erl_bif_re.c:1122: error: 'pcre_extra' has no member named 'restart_data'
beam/erl_bif_re.c:1123: error: 'pcre_extra' has no member named 'restart_flags'
beam/erl_bif_re.c:1131: error: 'PCRE_ERROR_LOOP_LIMIT' undeclared
(first use in this function)
make[3]: *** [obj/i386-apple-darwin10.8.0/opt/smp/erl_bif_re.o] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2

In the mean time, I'll try the erlang solutions version.

Thanks,

Wes



More information about the erlang-questions mailing list