[erlang-questions] Compiling R16B on Mac OS X Mountain Lion
Carlo Bertoldi
carlo.bertoldi@REDACTED
Mon Mar 11 15:20:16 CET 2013
Hello everybody,
this is the error I'm having:
gcc -mdynamic-no-pic -Werror=return-type -m32 -g -O3
-fomit-frame-pointer
-I/Users/carlo/.kerl/builds/r16b/otp_src_R16B/erts/x86_64-apple-darwin12.2.0
-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
-Ix86_64-apple-darwin12.2.0/opt/smp -Ibeam -Isys/unix -Isys/common
-Ix86_64-apple-darwin12.2.0 -Izlib -Ipcre -Ihipe -I../include
-I../include/x86_64-apple-darwin12.2.0 -I../include/internal
-I../include/internal/x86_64-apple-darwin12.2.0 -c beam/erl_bif_re.c -o
obj/x86_64-apple-darwin12.2.0/opt/smp/erl_bif_re.o
beam/erl_bif_re.c: In function ‘erts_init_bif_re’:
beam/erl_bif_re.c:68: error: ‘erts_pcre_malloc’ undeclared (first use in
this function)
Lib PCRE is installed with Mac Ports, and this is the configuration to
include MacPorts libraries.
export LDFLAGS='-L/opt/local/lib'
export CPPFLAGS='-I/opt/local/include'
export LD_LIBRARY_PATH=/opt/local/lib
export LD_INCLUDE_PATH=/opt/local/include
This is the command I'm using to compile.
CC=/opt/local/bin/gcc-mp-4.5 CXX=/opt/local/bin/g++-mp-4.5 ./otp_build
autoconf && ./configure --disable-hipe --enable-smp-support
--enable-threads --enable-darwin-64bit --enable-kernel-poll
Thanks for your time.
Carlo
More information about the erlang-questions
mailing list