Why mac ports? Homebrew works a lot better and is more actively maintained. <div><a href="http://mxcl.github.com/homebrew/">http://mxcl.github.com/homebrew/</a></div><div><br><div><br></div><div>Sergej<br><br><div class="gmail_quote">
On Thu, Mar 14, 2013 at 9:52 AM, Carlo Bertoldi <span dir="ltr"><<a href="mailto:carlo.bertoldi@ubiquity.it" target="_blank">carlo.bertoldi@ubiquity.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Patrik, unsetting the compiler flags solved my problem :)<br>
But still, sourcing were compiled with -m32.<br>
So I switched to gcc-4.5 included in MacPorts, and finally got the expected -m64.<br>
<br>
Cheers,<br>
 Carlo<div class="HOEnZb"><div class="h5"><br>
<br>
On 13/03/13 12:10, Patrik Nyblom wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
You should not need the macports PCRE lib, there's an erlang specific<br>
version in the distribution. Remove (unset) LDFLAGS and CPPFLAGS, clean<br>
and build again.<br>
<br>
Also it seems your error does not correspond to your configure flags,<br>
the gcc command line includes -m32, but you have specified<br>
--enable-darwin-64bit, so it should read gcc -m64. Strange.<br>
<br>
Try the simplest, use default compiler and no configure flags (and no<br>
flags in environment) and then move forward from there.<br>
<br>
Cheers,<br>
/Patrik<br>
<br>
On 03/11/2013 03:20 PM, Carlo Bertoldi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everybody,<br>
 this is the error I'm having:<br>
<br>
gcc  -mdynamic-no-pic -Werror=return-type  -m32 -g  -O3<br>
-fomit-frame-pointer<br>
-I/Users/carlo/.kerl/builds/<u></u>r16b/otp_src_R16B/erts/x86_64-<u></u>apple-darwin12.2.0<br>
 -I/opt/local/include -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall<br>
-Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement<br>
-DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS<br>
-Ix86_64-apple-darwin12.2.0/<u></u>opt/smp -Ibeam -Isys/unix -Isys/common<br>
-Ix86_64-apple-darwin12.2.0 -Izlib -Ipcre -Ihipe -I../include<br>
-I../include/x86_64-apple-<u></u>darwin12.2.0 -I../include/internal<br>
-I../include/internal/x86_64-<u></u>apple-darwin12.2.0 -c beam/erl_bif_re.c<br>
-o obj/x86_64-apple-darwin12.2.0/<u></u>opt/smp/erl_bif_re.o<br>
beam/erl_bif_re.c: In function ‘erts_init_bif_re’:<br>
beam/erl_bif_re.c:68: error: ‘erts_pcre_malloc’ undeclared (first use<br>
in this function)<br>
<br>
Lib PCRE is installed with Mac Ports, and this is the configuration to<br>
include MacPorts libraries.<br>
<br>
export LDFLAGS='-L/opt/local/lib'<br>
export CPPFLAGS='-I/opt/local/<u></u>include'<br>
export LD_LIBRARY_PATH=/opt/local/lib<br>
export LD_INCLUDE_PATH=/opt/local/<u></u>include<br>
<br>
This is the command I'm using to compile.<br>
<br>
CC=/opt/local/bin/gcc-mp-4.5 CXX=/opt/local/bin/g++-mp-4.5 ./otp_build<br>
autoconf && ./configure  --disable-hipe --enable-smp-support<br>
--enable-threads   --enable-darwin-64bit --enable-kernel-poll<br>
<br>
Thanks for your time.<br>
 Carlo<br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote>
<br>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Ubiquity - A little bit forward<br>
*Carlo Bertoldi*<br>
Ubiquity<br>
Via Teodosio 65 - 20131, Milano<br>
Fisso: <a href="tel:%2B39%2002%20288584.36" value="+390228858436" target="_blank">+39 02 288584.36</a> - Fax: <a href="tel:%2B39%2002%202829795" value="+39022829795" target="_blank">+39 02 2829795</a><br>
Email: <a href="mailto:carlo.bertoldi@ubiquity.it" target="_blank">carlo.bertoldi@ubiquity.it</a><br>
Website: <a href="http://www.ubiquity.it" target="_blank">www.ubiquity.it</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div></div>