From owner-freebsd-stable@FreeBSD.ORG Thu Apr 19 17:15:14 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CE9C106567D for ; Thu, 19 Apr 2012 17:15:14 +0000 (UTC) (envelope-from garbytrash@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 479728FC1D for ; Thu, 19 Apr 2012 17:15:03 +0000 (UTC) Received: by obqv19 with SMTP id v19so12431805obq.13 for ; Thu, 19 Apr 2012 10:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uKvJwew/Rg3tQNHvsMUDc2yJUmQTwjdZLL6CxyE4JkQ=; b=Xh/kCaHK3/Jq7iyCj6HfRy1k0jwIEkOvynuOySwO1b00pMAeIoiODp75K4Fi0Mdy93 hxQaUiAcr+/I9KUIAFVsktboOrBD1zCmuU7K2zDdMsGfrYZ1TAnCyVcT/E9lakvVMAVT kJDv6bcCKk6CjesxYz1elACNGbYkOZb6RCdP0c3mZVTxzKCzfAHCl2p/kp9gQmfEpCeM cKcI96+7LUpQo5jNmtMs7yDEnv/g/CKsXO0IynI9JY9qaWu322+/N/MNZo7g5E1R7FW6 w9acKlpTQSAkXLiwa5+3xsiTDATX7uvUr22VOC304aRR4tqMN0dLvZvksLG8XC4xd3nZ Th9Q== MIME-Version: 1.0 Received: by 10.182.40.70 with SMTP id v6mr4116146obk.39.1334855702632; Thu, 19 Apr 2012 10:15:02 -0700 (PDT) Received: by 10.60.17.34 with HTTP; Thu, 19 Apr 2012 10:15:02 -0700 (PDT) In-Reply-To: <4F902000.5060408@ShaneWare.Biz> References: <4F902000.5060408@ShaneWare.Biz> Date: Thu, 19 Apr 2012 19:15:02 +0200 Message-ID: From: Zenny To: Shane Ambler Content-Type: text/plain; charset=ISO-8859-1 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 17:15:14 -0000 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 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. >