[mapserver-users] Compiler Error

Paul Baker pbaker at where2getit.com
Thu Jun 6 15:20:46 EDT 2002


On Thursday, June 6, 2002, at 11:45 AM, gabriel wrote:

> Hi listers.
>  
> We had this error .
>  
> [mapserver at linux mapserver-3.6.0]$ make
> cd mapscript/php3; make; cd ../..
> make[1]: Entering directory 
> `/home/mapserver/mapserver-3.6.0/mapscript/php3'
> gcc  gcc -I. -I.. -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS  
> -DUSE_GDAL -DUSE_OGR    -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL 
> -DUSE_TIFF   -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT 
> -DUSE_JPEG  -I/home/mapserver/mapserver-3.6.0   -I/usr/local/include 
> -I/usr/local/include      -I/usr/include   -I/usr/src/php-4.2.1 
> -I/usr/src/php-4.2.1/dl -I/usr/src/php-4.2.1/main 
> -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/include 
> -I/usr/src/php-4.2.1/TSRM  -c -o  php_mapscript.o php_mapscript.c
> gcc: cannot specify -o with -c or -S and multiple compilations
> make[1]: *** [php_mapscript.o] Error 1
> make[1]: Leaving directory 
> `/home/mapserver/mapserver-3.6.0/mapscript/php3'
> [mapserver at linux mapserver-3.6.0]$

Edit the mapscript/php3/Makefile and change anywhere you see 'gcc gcc' 
to 'gcc'.

--Paul Baker

"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety."
          -- Benjamin Franklin, 1759

GPG Key: http://homepage.mac.com/pauljbaker/public.asc




More information about the mapserver-users mailing list