[mapserver-users] parse error during MapScript/PHP compile
Daniel Morissette
morissette at dmsolutions.ca
Tue Jun 4 16:15:41 PDT 2002
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.
I hear your next question already: "But then why did configure detect
PHP3 and complete with no error?" ... I'll have to remove detection of
PHP3 from the configure script.
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)
More information about the MapServer-users
mailing list