[mapserver-users] MapScript PHP compile error

Štepán Kafka 2 stepan.kafka at centrum.cz
Mon Jan 21 09:08:30 EST 2002


I have right the same problem. I think, it was due to different ZEND module
entry PHP 4.1.1 syntax contrary to 4.0.6 one. (I corrected it after the PHP
4.1.1 README.EXTENSIONS).

Daniel, could you you fix it in the official release source code? Thank you
very much.

Stepan Kafka

> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele Armin
> Burger
> Odesláno: 19. ledna 2002 0:09
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: [mapserver-users] MapScript PHP compile error
>
>
> 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