From owner-freebsd-questions@FreeBSD.ORG Fri May 15 09:03:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B1DC106564A for ; Fri, 15 May 2009 09:03:45 +0000 (UTC) (envelope-from gdn@fxclub.org) Received: from mx.fxclub.org (mx.fxclub.org [67.227.142.223]) by mx1.freebsd.org (Postfix) with ESMTP id 663C88FC13 for ; Fri, 15 May 2009 09:03:45 +0000 (UTC) (envelope-from gdn@fxclub.org) Received: from mail.fxclub.org ([78.129.247.130]) by mx.fxclub.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1M4ssi-000ORe-5r for freebsd-questions@freebsd.org; Fri, 15 May 2009 08:35:04 +0000 Received: from fw-office.fxclub.org ([194.87.53.162] helo=[172.16.1.198]) by mail.fxclub.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1M4ssh-00056v-4h for freebsd-questions@freebsd.org; Fri, 15 May 2009 08:35:03 +0000 Message-ID: <4A0D292D.4030508@fxclub.org> Date: Fri, 15 May 2009 12:34:53 +0400 From: Gorbatovsky Dmitry User-Agent: Thunderbird 2.0.0.21 (X11/20090408) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4A0C27A1.2020108@fxclub.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.3 Subject: Re: php5 pcre X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 09:03:45 -0000 Saifi Khan wrote: > On Thu, 14 May 2009, gdn wrote: > > >> Hi all! >> >> I'm using on CURRENT apache22 with php5. >> When I install php5-extensions, all packages make fine. >> But module "pcre" not work. >> -------------------------------------------------------------------------- >> >>> php -m >>> >> [PHP Modules] >> bz2 >> date >> libxml >> mbstring >> mysql >> pdf >> pdo_dblib >> Reflection >> session >> SimpleXML >> standard >> xml >> xmlrpc >> zip >> zlib >> >> [Zend Modules] >> --------------------------------------------------------------------------------- >> >> Log file of php: >> ---------------------------------------------------------------------------------- >> [14-May-2009 18:04:50] PHP Warning: PHP Startup: Unable to load >> dynamic librar >> y '/usr/local/lib/php/20060613/pcre.so' - >> /usr/local/lib/php/20060613/pcre.so: >> Undefined symbol "php_pcre_free" in Unknown on line 0 >> [14-May-2009 18:04:50] PHP Warning: Cannot load module 'PDO' because >> required >> module 'spl' is not loaded in Unknown on line 0 >> ----------------------------------------------------------------------------------- >> >> Haw fix this problem? >> >> Thanks, >> >> >> Dmitry. >> >> > > Please go back to directory /usr/ports/lang/php5-extensions > > run make config and select PCRE and SPL among the extensions > > Usually it is selected by default along with CTYPE, DOM, FILTER, > HASH, ICONV, JSON, PDO, PDO_SQLITE, POSIX, SESSION, SIMPLEXML, > SQLITE, TOKENIZER, XML, XMLREADER, XMLWRITER. > > Please try a re-build and confirm. > > > thanks > Saifi. > When I run make config I see selected PCRE and SPL extensions and other default the extensions. But I rebuilding all modules, restarting apache and see same error: [15-May-2009 12:38:00] PHP Warning: PHP Startup: Unable to load dynamic librar y '/usr/local/lib/php/20060613/pcre.so' - /usr/local/lib/php/20060613/pcre.so: Undefined symbol "php_pcre_free" in Unknown on line 0 Thanks, Dmitry.