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

Daniel Morissette dmorissette at mapgears.com
Thu Feb 3 12:55:05 PST 2011


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/



More information about the MapServer-users mailing list