[mapserver-users] 3.5 compile error with phpmapscript

Daniel Morissette morissette at dmsolutions.ca
Sat Dec 22 11:06:16 PST 2001


Tri Agus Prayitno wrote:
> 
> and I got this error message:
> 
> make[1]: Entering directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3'
> cc  cc -I. -I.. -fpic -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS
> -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/acuss/tmp/mapserver_3.5         -I/usr/include
> -I/usr/include/php/main -I/usr/include/php/main/dl
> -I/usr/include/php/main/main -I/usr/include/php/main/Zend
> -I/usr/include/php/main/include -I/usr/include/php/main/TSRM
> -I/usr/include/apache  -c -o php_mapscript_util.o php_mapscript_util.c
> cc: cannot specify -o with -c or -S and multiple compilations
> make[1]: *** [php_mapscript_util.o] Error 1
> make[1]: Leaving directory `/home/acuss/tmp/mapserver_3.5/mapscript/php3'
> 
> can anybody tell me what's wrong and what should I do.
> 

You can get rid of this error by taking out the "cc" at the beginning of
the CFLAGS value in mapscript/php3/Makefile


-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the MapServer-users mailing list