[mapserver-users] Compiling PHP-Mapscript FreeBSD 4.5

Stephen Woodbridge woodbri at swoodbridge.com
Sun Jun 9 14:31:54 EDT 2002


Bob,

Check the definition of $(CC) there is a know bug on some platforms
where CC= gcc gcc  or CC= cc cc 
just edit the Makefile and remove the duplicate cc or gcc

-Steve

Bob Carr wrote:
> 
> Compiling Mapserver 3.6 seems to go fine until it enters the
> mapscript/php3 directory, then exits with the following:
> 
> *******************************************************************
> make.gnu[1]: Entering directory
> `/usr/home/racarr/downloads/source/mapserver-3.6.0/mapscript/php3'
> cc undef  -I. -I.. -DPIC -fpic -O2  -Wall -DCOMPILE_DL=1 -DPHP4
> -DUSE_WMS_LYR -DUSE_WMS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR
> -DUSE_PROJ -DUSE_PROJ_API_H  -DUSE_TIFF   -DUSE_GD_PNG -DUSE_GD_JPEG
> -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG
> -I/usr/home/racarr/downloads/source/mapserver-3.6.0
> -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H
> -I/usr/local/pgsql/include
> -I/usr/home/racarr/downloads/gdal-1.1.5/port
> -I/usr/home/racarr/downloads/gdal-1.1.5/core
> -I/usr/home/racarr/downloads/gdal-1.1.5/ogr
> -I/usr/home/racarr/downloads/gdal-1.1.5/ogr/ogrsf_frmts
> -I/usr/home/racarr/downloads/gdal-1.1.5/ogr/ogrsf_frmts
> -I/usr/home/racarr/downloads/gdal-1.1.5/ogr
> -I/usr/home/racarr/downloads/gdal-1.1.5/ogr/../port
> -I/usr/home/racarr/downloads/source/proj-4.4.5/src
> -I/usr/local/include  -I/usr/local/include
> -I/usr/home/racarr/downloads/source/mapserver_3.3/jpeg-6b
> -I/home/racarr/downloads/php-4.1.1
> -I/home/racarr/downloads/php-4.1.1/dl
> -I/home/racarr/downloads/php-4.1.1/main
> -I/home/racarr/downloads/php-4.1.1/Zend
> -I/home/racarr/downloads/php-4.1.1/include
> -I/home/racarr/downloads/php-4.1.1/TSRM  -c -o php_mapscript_util.o
> php_mapscript_util.c
> cc: cannot specify -o with -c or -S and multiple compilations
> make.gnu[1]: *** [php_mapscript_util.o] Error 1
> make.gnu[1]: Leaving directory
> `/usr/home/racarr/downloads/source/mapserver-3.6.0/mapscript/php3'
> ****************************************************************
> 
> Triggering this seems to be lines #84 & #85 in the mapscript/php3/Makefile,
> which reads:
> 
> 84 %.o: %.c php_mapscript_util.h php_mapscript.h
> 85         $(CC) $(CFLAGS) -c -o $@ $<
> 
> Obviously, I'm stumped and will appreciate any assistance
> 
> --
> bob carr
> port washington, wisconsin
> racarr at ameritech.net



More information about the mapserver-users mailing list