[mapserver-users] php/mapscript problem

Pushkar Pradhan pushkar at ERC.MsState.Edu
Mon Feb 18 18:08:08 EST 2002


Hi all,
I've installed php and now trying to compile MS 3.5 with php-4.0.6, my
configure script runs well, this is my config.:
(I've compiled php with --with-system-regex option)
./configure  --without-tiff --without-jpeg
--with-gdal=/rstc/user1/erc/pushkar/gdal-1.1.5/apps/gdal-config
--with-php=/rstc/user1/erc/pushkar/php-4.0.6
--with-apxs=/rstc/user1/erc/pushkar/apache_1.3.22/bin/apxs
--without-ttf
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)
The foll. are the values of these vars:
CFLAGS = -O2  -Wall -DCOMPILE_DL=1 -DPHP4
MS_DEFINE =   -DUSE_GDAL     -DUSE_EPPL    -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_TTF
MS_INC =    -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
PHP_SRC_DIR = /rstc/user1/erc/pushkar/php-4.0.6
PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main \
          -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include \
          -I$(PHP_SRC_DIR)/TSRM
-I/rstc/user1/erc/pushkar/apache_1.3.22/include

Can anyone help me with this, I don't have experience in debugging make
files. Thanks,
------------------------------------------------------------------------------
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