[mapserver-users] php/mapscript problem

Pushkar Pradhan pushkar at ERC.MsState.Edu
Tue Feb 19 13:48:04 EST 2002


Daniel,
Thanks for the suggestion now I don't get an error on the CFLAGS line any
more, but still it doesn't compile with the foll. error. It says -Wall is
an illegal option. Please help.
gmake[1]: *** [php_mapscript_util.o] Error 1
The whole detail is: (I tried both make and gnu make util.)
Banshee[90] pushkar$ gmake
cd mapscript/php3; gmake; cd ../..
gmake[1]: Entering directory
`/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3'
cc -O -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I.. -KPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4
-DUSE_GDAL     -DUSE_EPPL    -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF
-I/rstc/user1/erc/pushkar/mapserver_3.5
-I/rstc/user1/erc/pushkar/gdal-1.1.5/port
-I/rstc/user1/erc/pushkar/gdal-1.1.5/core
-I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr
-I/rstc/user1/erc/pushkar/gdal-1.1.5/ogr/ogrsf_frmts
-I/usr/local/include   -I/rstc/user1/erc/pushkar/php-4.0.6
-I/rstc/user1/erc/pushkar/php-4.0.6/dl
-I/rstc/user1/erc/pushkar/php-4.0.6/main
-I/rstc/user1/erc/pushkar/php-4.0.6/Zend
-I/rstc/user1/erc/pushkar/php-4.0.6/include
-I/rstc/user1/erc/pushkar/php-4.0.6/TSRM
-I/rstc/user1/erc/pushkar/apache_1.3.22/include -c -o php_mapscript_util.o
php_mapscript_util.c
cc: Warning: option -2 passed to ld
cc: illegal option -Wall
gmake[1]: *** [php_mapscript_util.o] Error 1
gmake[1]: Leaving directory
`/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3'

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

------------------------------------------------------------------------------
PUSHKAR S. PRADHAN
Research Assistant
MISSISSIPPI STATE UNIVERSITY,
STARKVILLE, MS 39759.

Engineering Research Center
Box 9627
Mississippi State, MS 39762-9627
------------------------------------------------------------------------------




More information about the mapserver-users mailing list