[erlang-questions] R16B02 error on FreeBSD

Lukas Larsson <>
Wed Oct 30 16:20:20 CET 2013


Hello,

R16B02 compiles fine on our FreeBSD 9.1 with the same gcc version as you
have.

What seems to happen is that when including "pcre.h" gcc decides to use the
system "pcre.h" rather then the erts version. I found a potential
workaround here: https://github.com/iriscouch/build-couchdb/issues/56. i.e.
move the $(INCLUDE) found here[1] to before the $(subst, ...). Let me know
if that works for you.

Lukas

   [1]:
https://github.com/erlang/otp/blob/maint/erts/emulator/Makefile.in#L656


On Wed, Oct 30, 2013 at 2:19 PM, z_axis <> wrote:

> $ uname -a
> FreeBSD mybsd.zsoft.com 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #3 ...
>
> $ gcc -v
> Using built-in specs.
> Target: i386-undermydesk-freebsd
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 4.2.1 20070831 patched [FreeBSD]
>
> Regards!
>
> 在 Wed, 30 Oct 2013 17:11:46 +0800,Lukas Larsson <> 写道:
>
>  Hello,
>>
>> You forgot to mention which gcc and FreeBSD version you are using.
>>
>> Lukas
>>
>>
>> On Wed, Oct 30, 2013 at 3:10 AM, z_axis <> wrote:
>>
>>  I am frustrated by R16B02 : "beam/erl_bif_re.c:984: error:
>>>     'PCRE_EXTRA_LOOP_LIMIT' undeclared (first use in this function)\n
>>>     beam/erl_bif_re.c:986: error: 'pcre_extra' has no member named
>>>     'loop_limit' ..."  when compiling on FreeBSD
>>>
>>> Sincerely!
>>>
>>> ______________________________****_________________
>>> erlang-questions mailing list
>>> 
>>> http://erlang.org/mailman/****listinfo/erlang-questions<http://erlang.org/mailman/**listinfo/erlang-questions>
>>> <http**://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>> >
>>>
>>>
>
> --
> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131030/67492d06/attachment.html>


More information about the erlang-questions mailing list