[mapserver-users] Problem Compiling 3.6 with PHP/Mapscript
Pushkar Pradhan
pushkar at ERC.MsState.Edu
Thu May 30 14:33:17 PDT 2002
Isn't this related to the bug in the php makefile where you need to modify
the CFLAGS:
CFLAGS := -O2 -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC)
$(PHP_INC)
TRY THIS.
> I'm compiling 3.6 with PHP/Mapscript and have run into a problem. Running
> ./configure for mapserver appears to work correctly. However, when running
> 'make' it bails on the section where it tries to execute the PHP makefile to
> generate the mapscript.so, giving an error about incorrect flags for gcc.
> The mapserver configure script seems to be generating an incorrect php
> makefile. I've included the error that results from running make. Any help
> would be greatly appreciated.
>
> I'm running PHP 4.2.1 on RedHat 7.2 with Apache 2.0.
>
> This is the output produced by the php makefile:
>
> gcc
> -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_GDAL -DUSE_EPPL -
> DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_JPEG
> -I/alpha/mapserver/mapserver-3.6.0 -I/usr/include -I/usr/include
> -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main -I/usr/incl
> ude/php/Zend -I/usr/include/php/include -I/usr/include/php/TSRM -I/usr/inclu
> de -c -o php_mapscript_util.o php_mapscript_util.c
> gcc: cannot specify -o with -c or -S and multiple compilations
> make: *** [php_mapscript_util.o] Error 1
>
> Jeff Berry
> Erlandsen & Associates
> P.O. Box 2029
> Chelan, WA 98816
> (509) 682-4189
> jeffb at erlandsen.com
>
-Pushkar S. Pradhan
More information about the MapServer-users
mailing list