[mapserver-users] php/mapscript problem

Daniel Morissette morissette at dmsolutions.ca
Tue Feb 19 08:10:33 EST 2002


Pushkar Pradhan wrote:
> 
> This creates the makefile but when I do a make I get the foll. error:
> cd mapscript/php3; make; cd ../..
> make: Fatal error in reader: Makefile, line 69: Badly formed macro
> assignment
> Current working directory
> /rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3
> *** Error code 1
> make: Fatal error: Command failed for target `php3_mapscript'
> Actually the error occurs on line 69 of the Makefile in mapscript/php dir.
> This line is:
> CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC)


If I remember well, ":=" is supported only by GNUMake... and changing
the above statement to use "=" won't work because the old value of
CFLAGS is reassigned to itself.  I'll file a bug in bugzilla about
fixing the makefiles so that they don't rely on GNUMake features, but in
the meantime your can either install GNUmake or edit the statement above
to be:

CFLAGS = -O2  -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC) \
         $(PHP_INC)

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