[mapserver-users] MapScript PHP compile error

Armin Burger armin.burger at territoriumonline.com
Fri Jan 18 15:09:20 PST 2002


Hello,

I got the error below when trying to compile mapserver with the following
configuration:

./configure --with-gd=/usr/local/include/ --with-tiff --with-jpeg
--with-zlib --with-png --with-freetype=/usr/local/include/freetype/
--with-proj --with-gdal=/usr/local/bin/ --with-postgis
--with-php=/usr/include/php4/ --with-apxs --with-ogr --with-wmsclient

php_mapscript.c:459: warning: initialization makes integer from pointer
without a cast
php_mapscript.c:459: initializer element is not computable at load time
php_mapscript.c:459: (near initialization for `php3_ms_module_entry.size')
php_mapscript.c:459: warning: initialization makes integer from pointer
without a cast
php_mapscript.c:459: warning: initialization makes integer from pointer
without a cast
php_mapscript.c:459: initializer element is not computable at load time
php_mapscript.c:459: (near initialization for
`php3_ms_module_entry.zend_debug')
php_mapscript.c:459: warning: initialization makes integer from pointer
without a cast
php_mapscript.c:459: initializer element is not computable at load time
php_mapscript.c:459: (near initialization for `php3_ms_module_entry.zts')
php_mapscript.c:462: warning: initialization from incompatible pointer type
php_mapscript.c: In function `php3_ms_img_saveImage':
php_mapscript.c:4068: warning: implicit declaration of function `php_header'
make[1]: *** [php_mapscript.o] Error 1

The error appeared both with the current nightly build (15 Jan) and an older
version from 15 Dec. I compiled under Debian 3 Linux. I did not have this
error when compiling with Mandrake.

As suggested earlier by Daniel Morissette, I commented out the first line in
the php makefile starting with 'CC'.

Dropping php support and everything went fine. Any help?

Best regards
Armin







More information about the MapServer-users mailing list