From owner-freebsd-stable@FreeBSD.ORG Thu Apr 19 14:26:57 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5152F1065673 for ; Thu, 19 Apr 2012 14:26:57 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (unknown [IPv6:2001:44b8:8060:ff02:300:1:2:6]) by mx1.freebsd.org (Postfix) with ESMTP id 86DD98FC14 for ; Thu, 19 Apr 2012 14:26:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAB8gkE/LevdH/2dsb2JhbABDskmCCQEBBScRQRALGAkTAw8JAwIBAgFFBg0BBwEBBYgFDLpyglSEcoh3BIhahzmWF4J3 Received: from ppp247-71.static.internode.on.net (HELO leader.local) ([203.122.247.71]) by ipmail06.adl2.internode.on.net with ESMTP; 19 Apr 2012 23:56:54 +0930 Message-ID: <4F902000.5060408@ShaneWare.Biz> Date: Thu, 19 Apr 2012 23:54:00 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120322 Thunderbird/10.0.3 MIME-Version: 1.0 To: Zenny References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: pcre-related problem to compile HipHop in FreeBSD9-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 14:26:57 -0000 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.