Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2012 19:15:02 +0200
From:      Zenny <garbytrash@gmail.com>
To:        Shane Ambler <FreeBSD@shaneware.biz>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: pcre-related problem to compile HipHop in FreeBSD9-RELEASE
Message-ID:  <CACuV5sAbsOf5P_K8UfEvVM2bPVs-MvWexO_hEBNxPKEgwx758g@mail.gmail.com>
In-Reply-To: <4F902000.5060408@ShaneWare.Biz>
References:  <CACuV5sCHHkYRx6b8vabWGd28%2B_Cp9nMuuKrr1-thHWwagYSi9g@mail.gmail.com> <4F902000.5060408@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Shane for the pointer. I was just reading php bug report at
https://bugs.php.net/patch-display.php?bug_id=60986&patch=pcre_info.patch&revision=latest.

As you stated pcre_info is replaced by pcre_fullinfo.

On 4/19/12, Shane Ambler <FreeBSD@shaneware.biz> wrote:
> On 18/04/2012 17:29, Zenny wrote:
>> Hi:
>>
>> I am having problem while trying to compile HipHop similar to what has
>> been discussed here
>> (https://github.com/facebook/hiphop-php/issues/480#pull_comment_form)
>>
>
>> /root/hhbuild/hiphop-php/src/runtime/base/preg.cpp:138: error:
>> 'pcre_info' was not declared in this scope
>> *** Error code 1
>>
>> I checked the specific line 138 which reads like:
>>
>> if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
>>    pcre_cache.cleanup();
>>
>> Any hints? Could not figure out whether it is FreeBSD9-, pcre- or
>> HipHop-related?
>> Thanks!
>
> not declared in this scope - means it hasn't found a declaration for
> that function. Usual cause is not including the correct header file, but
> in the case of pcre the recent update broke a few programs when first
> brought in.
>
> I don't see it by greping the pcre headers and a quick search on
> http://www.freebsd.org/cgi/man.cgi for pcre_info in 9.0-release and
> ports shows it as obsolete and replaced by pcre_fullinfo() - my guess is
> pcre_info() was removed in the pcre-8.30 release.
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACuV5sAbsOf5P_K8UfEvVM2bPVs-MvWexO_hEBNxPKEgwx758g>