Re: [mapserver-users] PHP MapScript: undefined symbol: php_regcomp

2011-02-03 Thread Gregor at HostGIS

/var/www/cgi-bin/php: symbol lookup error:
/usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_regcomp
Premature end of script headers: php


Any thoughts on this?

I was poking around today, and noticed that the PHP being used was 
erroneously compiled as a module, and was thus forcing the use of its 
bundled regex. Oops!


I backtracked. Compiled as CGI, verified that #define REGEX 0 is 
present in php_config.h, and verified that it is now using regex=system 
via phpinfo():

   Regex Library = System library enabled

Would anyone else concur that this was likely the issue here?

--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
   Network+   Server+   A+   Security+   Linux+
   PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX

No one cares if you can back up — only if you can recover.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-dev] Re: [mapserver-users] PHP MapScript: undefined symbol: php_regcomp

2011-02-03 Thread Daniel Morissette

On 11-02-03 03:45 PM, Gregor at HostGIS wrote:

/var/www/cgi-bin/php: symbol lookup error:
/usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_regcomp
Premature end of script headers: php


Any thoughts on this?

I was poking around today, and noticed that the PHP being used was
erroneously compiled as a module, and was thus forcing the use of its
bundled regex. Oops!

I backtracked. Compiled as CGI, verified that #define REGEX 0 is
present in php_config.h, and verified that it is now using regex=system
via phpinfo():
Regex Library = System library enabled

Would anyone else concur that this was likely the issue here?



Hi Greg,

Yes, that explanation makes complete sense. I had not replied because I 
didn't have much advice to provide other than make sure the 
--with-regex=system switch really kicks in, sometimes it doesn't... but 
maybe I should have given you at least that pointer.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users