[erlang-questions] R16B02 error on FreeBSD

Kenji Rikitake kenji@REDACTED
Sat Nov 9 07:47:59 CET 2013


Referring to the FreeBSD Port lang/erlang or lang/erlang16-runtime
will help you solve the compilation options.
Also see
https://github.com/jj1bdx/kerl/blob/master/kerl-k2r.md
for performing test building with kerl.

Kenji Rikitake

On Thu, Oct 31, 2013 at 12:20 AM, Lukas Larsson <garazdawi@REDACTED> wrote:
> 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 <z_axis@REDACTED> 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 <garazdawi@REDACTED> 写道:
>>
>>> 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 <z_axis@REDACTED> 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
>>>> erlang-questions@REDACTED
>>>>
>>>> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>>>
>>
>>
>> --
>> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list