[mapserver-users] php/mapscript problem

Pushkar Pradhan pushkar at ERC.MsState.Edu
Sun Feb 24 23:47:55 EST 2002


Daniel,
Thanks for your suggestion, I used the CFLAGS defn. below that you
suggested and still use make. I got rid of the earlier error but now I get
the foll. error:
I've compiled php with system regex and as a DSO successfully. I am
compiling mapserver --without-ttf.
I am using SUN Solaris.
Please tell me if you have any soln. Thanks,
Titan[65] pushkar$ make
cd mapscript/php3; make; cd ../..
cc -O -I/usr/local/include -I/opt/gnu/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I.. -KPIC -02 -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/mapserver_3.5/../php-4.0.6
-I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/dl
-I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/main
-I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/Zend
-I/rstc/user1/erc/pushkar/mapserver_3.5/../php-4.0.6/include
-I/rstc/user1/erc/pushkar/mapserver_3.5/../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 -0 passed to ld
cc: Warning: option -2 passed to ld
cc: illegal option -Wall
*** Error code 1
make: Fatal error: Command failed for target `php_mapscript_util.o'
Current working directory
/rstc/user1/erc/pushkar/mapserver_3.5/mapscript/php3
*** Error code 1
make: Fatal error: Command failed for target `php3_mapscript'


> 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