MapServer 4.10 with DSO PHP5

Daniel Morissette dmorissette at MAPGEARS.COM
Thu Mar 1 10:11:36 EST 2007


The issue with REGEX was solved a few releases ago using some wrappers, 
so it should not matter any more which version of REGEX you use to build 
PHP and MapScript.

Daniel

Guillaume Sueur wrote:
> that can be an interesting clue. Do you know if the regex trick is still 
>  mandatory ?
> 
> 
> Daniel Morissette a écrit :
>> That could be caused by conflicting versions of GD, i.e. Your PHP has 
>> --with-gd which will probably trigger the use of its built-in copy of 
>> GD, and your php_mapscript.so is built with the system GD.
>>
>> I'd suggest that you try rebuilding your PHP using the system GD and 
>> see if that helps. If GD is unstalled under /usr/local then use 
>> --with-gd=/usr/local
>>
>> Daniel
>>
>> Guillaume Sueur wrote:
>>> Hi list,
>>>
>>> I was wondering if MapScript 4.10 could be build with PHP5 as Apache 
>>> DSO. I've done several attempts, without success. The build goes 
>>> fine, but invoking the draw method on a map object causes a 
>>> segmentation fault.
>>> I've tried the "regex hack" on the php configure, to force php to be 
>>> build with system regex.
>>> The option with-apxs on mapserver configure fires a message saying in 
>>> can't work that way. I can accept that, but why are people saying it 
>>> works fine for them on the net ?
>>> So, if you had a clue, and some configure options and workarounds, I 
>>> would really appreciate.
>>>
>>> Here are my php configure options (the use of regex=system is forced 
>>> in the configure script):
>>> './configure' '--prefix=/usr/local/apache2/' 
>>> '--with-apxs2=/usr/local/apache2/bin/apxs' 
>>> '--with-config-file-path=/usr/local/apache2/php' 
>>> '--with-regex=system' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' 
>>> '--with-zlib' '--with-gd' '--with-freetype-dir=/usr/local/' 
>>> '--enable-dbase' '--with-pdflib' '--enable-gd-native-ttf'
>>>
>>> Thanks
>>
>>


-- 
Daniel Morissette
http://www.mapgears.com/



More information about the mapserver-users mailing list