RE: php5 pcre
Mark wrote: > -Original Message- > From: Mel Flynn [mailto:mel.flynn+fbsd.questi...@mailing.thruhere.net] > Sent: zaterdag 16 mei 2009 11:59 > To: freebsd-questions@freebsd.org > Cc: Mark > Subject: Re: php5 pcre > > >> I thought I was the only one this had happened to. :) In my case I >> resolved it by going into the pcre directory itself and build it >> from there. > >> That don't make sense. Any chance you had BUNDLED_PCRE selected and > decided >> to untick it in the config dialog? If this really is all you did, then >> maybe extension ordering is the culprit. Move pcre.so in extension.ini > upwards >> and see if the bug resurfaces. > > No, I didn't untick anything. I saw the 'undefined symbol' in my Apache > log, and decided to recompile pcre.so. Then the error went away. I had > this happen, 2 years or so ago, with mysql extension for PHP4, too: the > second time compiling it the (other types of errors) disappeared. That's > actually not all that strange, really, because it's entirely plausible > that sometimes, compiling an extension the first time, it is dependent on > something that wasn't built yet the first around. > This kind of thing may happen when ports get reorganized. Used to be PCRE was either built in or you could build it against the other pcre library. Sometime recently it was split out into it's own extension port. I've had portupgrade barf a time or two when these reorganizations have happened in the past. Manual intervention/rebuild was needed to fix things up. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: php5 pcre
-Original Message- From: Mel Flynn [mailto:mel.flynn+fbsd.questi...@mailing.thruhere.net] Sent: zaterdag 16 mei 2009 11:59 To: freebsd-questions@freebsd.org Cc: Mark Subject: Re: php5 pcre > I thought I was the only one this had happened to. :) In my case I > resolved it by going into the pcre directory itself and build it > from there. > That don't make sense. Any chance you had BUNDLED_PCRE selected and decided > to untick it in the config dialog? If this really is all you did, then > maybe extension ordering is the culprit. Move pcre.so in extension.ini upwards > and see if the bug resurfaces. No, I didn't untick anything. I saw the 'undefined symbol' in my Apache log, and decided to recompile pcre.so. Then the error went away. I had this happen, 2 years or so ago, with mysql extension for PHP4, too: the second time compiling it the (other types of errors) disappeared. That's actually not all that strange, really, because it's entirely plausible that sometimes, compiling an extension the first time, it is dependent on something that wasn't built yet the first around. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php5 pcre
On Friday 15 May 2009 11:13:41 Mark wrote: > -Original Message- > From: owner-freebsd-questi...@freebsd.org > [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gorbatovsky > Dmitry Sent: vrijdag 15 mei 2009 11:04 > To: freebsd-questions@freebsd.org > Subject: Re: php5 pcre > > > 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 > > library '/usr/local/lib/php/20060613/pcre.so' - > > /usr/local/lib/php/20060613/pcre.so: > > Undefined symbol "php_pcre_free" in Unknown on line 0 > > I thought I was the only one this had happened to. :) In my case I > resolved it by going into the pcre directory itself and build it from > there. That don't make sense. Any chance you had BUNDLED_PCRE selected and decided to untick it in the config dialog? If this really is all you did, then maybe extension ordering is the culprit. Move pcre.so in extension.ini upwards and see if the bug resurfaces. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: php5 pcre
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gorbatovsky Dmitry Sent: vrijdag 15 mei 2009 11:04 To: freebsd-questions@freebsd.org Subject: Re: php5 pcre > 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 > library '/usr/local/lib/php/20060613/pcre.so' - > /usr/local/lib/php/20060613/pcre.so: > Undefined symbol "php_pcre_free" in Unknown on line 0 I thought I was the only one this had happened to. :) In my case I resolved it by going into the pcre directory itself and build it from there. - Mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php5 pcre
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php5 pcre
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"