[mapserver-users] compilation problem

Pushkar Pradhan pushkar at ERC.MsState.Edu
Fri Feb 22 13:39:18 EST 2002


I'm having a little diff. problem, after using gmake I get the foll.
error.
I don't have much experience of make files so can anybody help me with
this:
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/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 -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'


> Carsten Vogt wrote:
> >
> > Oops, right!
> > Here is the complete output:
> >
> > cd mapscript/php3; make; cd ../..
> > make[1]: Entering directory `/opt/src/mapserver_3.5/mapscript/php3'
> > gcc  gcc -I. -I.. -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4
> > -DUSE_WMS     -DUSE_PRO
>
>
> This error seems common on Solaris platforms... edit
> mapscript/php3/Makefile and remove the 'gcc' at the beginning of the
> CFLAGS value.
>
> --
> ------------------------------------------------------------
>  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