[mapserver-users] Fwd: php-mapscript compile error

Daniel Morissette morissette at dmsolutions.ca
Wed May 15 11:30:46 EDT 2002


MapServer 3.5 doesn't work with PHP 4.1.x ... you can use it only with
PHP 4.0.6.

Version 3.6 supports PHP 4.1.x (and seems to be ok with 4.2 as well)...
we are about to announce a 3.6 beta release, but if you can't wait for
the release then you can download the a snapshot of the source from:
 http://www2.dmsolutions.ca/mapserver/dl/mapserver-src-20020430.tar.gz

Daniel


> From: Reinhard Wesinger <neuhaus at geoteam-umwelt.de>
> 
> Hi mapserver-community,
> 
> I' m new on mapserver and I' ve tried to compile the mapserver with php under
> SuSe 8.0. With the following configuration of the mapserver and php (it is
> running under apache 1.3.23) I got this error massage. Has anyone an idea?
> Any help would really be appreciated!
> 
> Thanks
> 
> Reinhard Wesinger
> GeoTeam
> reinhard.wesinger at geoteam-umwelt.de
> 
> configuration mapserver
>  ./configure --with-gd --with-postgis --with-php=/usr/include/php
> --with-apxs=/usr/sbin/apxs
> 
> configuration php-4.1.0
> './configure' '--prefix=/usr/share/php' '--datadir=/usr/share/php'
> '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include'
> '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
> '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-dbase'
> '--enable-versioning' '--with-system-regex' '--with-dom=/usr/include/libxml2'
> '--with-pgsql=/usr/local/pgsql' '--with-xml' '--with-apxs=/usr/sbin/apxs'
> '--with-zlib-dir=/usr/local'
> 
> compile error with make
> cd mapscript/php3; make; cd ../..
> make[1]: Wechsel in das Verzeichnis Verzeichnis
> »/home/reiwes/Documents/mapserver_3.5/mapscript/php3«
> cc -I. -I.. -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF
> -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG
> -I/home/reiwes/Documents/mapserver_3.5         -I/usr/local/include
> -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main
> -I/usr/include/php/Zend -I/usr/include/php/include -I/usr/include/php/TSRM
> -I/usr/include/apache -c php_mapscript.c -o php_mapscript.o
> php_mapscript.c:434: warning: initialization makes integer from pointer
> without a cast
> php_mapscript.c:434: initializer element is not computable at load time
> php_mapscript.c:434: (near initialization for `php3_ms_module_entry.size')
> php_mapscript.c:434: warning: initialization makes integer from pointer
> without a cast
> php_mapscript.c:434: warning: initialization makes integer from pointer
> without a cast
> php_mapscript.c:434: initializer element is not computable at load time
> php_mapscript.c:434: (near initialization for
> `php3_ms_module_entry.zend_debug')
> php_mapscript.c:434: warning: initialization makes integer from pointer
> without a cast
> php_mapscript.c:434: initializer element is not computable at load time
> php_mapscript.c:434: (near initialization for `php3_ms_module_entry.zts')
> php_mapscript.c:437: warning: initialization from incompatible pointer type
> php_mapscript.c: In function `php3_ms_img_saveImage':
> php_mapscript.c:3917: warning: implicit declaration of function `php_header'
> make[1]: *** [php_mapscript.o] Fehler 1
> 
> -------------------------------------------------------



More information about the mapserver-users mailing list