[mapserver-users] MapScript compilation errors

Silke Reimer silke at intevation.de
Tue Jul 9 02:37:37 PDT 2002


Dana, 

you have to edit your Makefile in mapscript/php3/ after running the
configure script. See above for the changes you have to make.

Good luck,

Silke


On Mon, Jul 08, 2002 at 11:07:51AM -0400, Dana Coe wrote:
> 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

Delete 'undef' where this command is defined in the Makefile.

> -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

The paths vor Zend, TSRM etc. are defined in the Makefile. Perhaps you
have to adapt them to the configuration in your system. At least I had
to do that.

> 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
> 

-- 
Silke Reimer

Intevation GmbH                      http://intevation.de/
FreeGIS                                http://freegis.org/




More information about the MapServer-users mailing list