[mapserver-users] cc: cannot specify -o with -c or -S and multiple compilations

Puneet Kishor pkishor at GeoAnalytics.com
Mon Apr 22 05:24:18 PDT 2002


Something weird with the listserv... I sent this message yesterday about 
10 mins after my initial incorrectly titled message. This one never 
appeared on the list. Many other messages were very late in coming 
(several hours).

Anyway, I am re-sending this for the archives for the solution (see 
below). And a big thanks to everyone who responded to me directly.

==========

I sent this message earlier with the wrong subject line. This is for the 
archives with the correct subject.

I also found the answer to this...

> On Sunday, April 21, 2002, at 12:31  AM, Puneet Kishor wrote:
>
> I am trying to build ms_3.5 with PHP 4.0.6. When I `make' it churns for 
> a while and then issues the following error...
>
> -I/usr/local/apache/include -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


seems to be a platform-specific peculiarity. I am using cc on OS X, but 
reported on a few other platforms as well. The very first uncommented 
line in the Makefile under the mapscript/php3 directory was like so...

CC =     cc cc  -I. -I..

I deleted one of the two cc so the line became

CC =     cc  -I. -I..

everything worked after that.

hth someone.

pk/




More information about the MapServer-users mailing list