[mapserver-users] parse error during MapScript/PHP compile

Paul Baker pbaker at where2getit.com
Tue Jun 4 19:31:48 EDT 2002


On Tuesday, June 4, 2002, at 06:15 PM, Daniel Morissette wrote:

>
> Hummm... you're not lucky... you seem to be trying to compile with PHP3
> and we have started dropping PHP3 after version 3.5... so it won't
> compile.

Actually my next question would be, then why is the directory for 
mapscript support called mapscript/php3?
My next question after that is when is the incompatibility with PHP4's 
bundled regex going to be resolved? Until then I won't be able to build 
a Mapscript/PHP Debian package unfortuneately... :-(

> Daniel
>
>
> Paul Baker wrote:
>>
>> Trying to get MapScript/PHP to build for my mapserver debian package.
>> Running into a compile problem. Anyone have ideas?
>>
>> -Paul
>>
>> /usr/bin/make php3_mapscript
>> make[1]: Entering directory `/home/pbaker/mapserver/mapserver-3.6.0'
>> cd mapscript/php3; /usr/bin/make; cd ../..
>> make[2]: Entering directory
>> `/home/pbaker/mapserver/mapserver-3.6.0/mapscript/php3'
>> cc -I. -I.. -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP3 -DUSE_WMS_LYR
>> -DUSE_WMS  -DUSE_GDAL -DUSE_OGR    -DUSE_PROJ -DUSE_PROJ_API_H
>> -DUSE_EPPL -DUSE_TIFF   -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
>> -DUSE_GD_FT -DUSE_JPEG  -I/home/pbaker/mapserver/mapserver-3.6.0
>> -I/usr/include/w3c-libwww -I/usr/include/libxml -DHAVE_CONFIG_H
>> -I/usr/include -I/usr/include      -I/usr/include   -I/usr/include/php3
>> -I/usr/include/php3/dl -I/usr/include/php3/main 
>> -I/usr/include/php3/Zend
>> -I/usr/include/php3/include -I/usr/include/php3/TSRM
>> -I/usr/include/php3/cgi  -c -o php_mapscript.o php_mapscript.c
>> php_mapscript.c:206: parse error before `*'
>> php_mapscript.c:208: parse error before `*'
>> php_mapscript.c: In function `php3_init_mapscript':
>> php_mapscript.c:712: warning: implicit declaration of function
>> `zend_register_list_destructors_ex'
>> php_mapscript.c: At top level:
>> php_mapscript.c:944: parse error before `*'
>> php_mapscript.c: In function `php_ms_free_map':
>> php_mapscript.c:946: `rsrc' undeclared (first use in this function)
>> php_mapscript.c:946: (Each undeclared identifier is reported only once
>> php_mapscript.c:946: for each function it appears in.)
>> php_mapscript.c: At top level:
>> php_mapscript.c:949: parse error before `*'
>> php_mapscript.c: In function `php_ms_free_image':
>> php_mapscript.c:951: `rsrc' undeclared (first use in this function)
>> make[2]: *** [php_mapscript.o] Error 1
>> make[2]: Leaving directory
>> `/home/pbaker/mapserver/mapserver-3.6.0/mapscript/php3'
>>
>> For the record:
>>
>> $ cc -v
>> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
>> gcc version 2.95.4 20011002 (Debian prerelease)
>
>


--Paul Baker

"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety."
          -- Benjamin Franklin, 1759

GPG Key: http://homepage.mac.com/pauljbaker/public.asc




More information about the mapserver-users mailing list