[mapserver-users] MapScript compilation errors

Dana Coe thesquid at FriedBaloney.com
Mon Jul 8 11:07:51 EDT 2002


Hello,

I've been able to get Mapserver to make and run on FreeBSD 4.5, but when I
attempt to include MapScript support, I get the following error:

./configure --enable-runpath --with-proj
--with-php=/usr/local/src/php-4.2.1/
[configure output]

make

cd mapscript/php3; make; cd ../..
cc undef  -I. -I.. -DPIC -fpic -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_PDF  -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG
-I/usr/local/src/mapserver-3.6.1          -I/usr/local/include
-I/usr/local/src/php-4.2.1/ -I/usr/local/src/php-4.2.1//dl
-I/usr/local/src/php-4.2.1//main  -I/usr/local/src/php-4.2.1//Zend
-I/usr/local/src/php-4.2.1//include  -I/usr/local/src/php-4.2.1//TSRM -c
php_mapscript_util.c
cc: undef: No such file or directory
php_mapscript_util.c: In function `_phpms_object_init':
php_mapscript_util.c:681: warning: unused variable `tsrm_ls'
*** Error code 1

Stop in /usr/local/src/mapserver-3.6.1/mapscript/php3.
*** Error code 1

Stop in /usr/local/src/mapserver-3.6.1.


My php installation seems to have worked, but mapscript won't bite. Is there
something I forgot to include?

Thanks,

Dana L Coe




More information about the mapserver-users mailing list