[Mapserver-users] Mapscript compile trouble

Madere, Colin colin.madere at ieminc.com
Wed Feb 12 15:16:34 EST 2003


Sol 8 - SPARC
gcc 3.2

When building mapserver with MapScript support:

./configure --with-postgis --with-gd --enable-force-freetype1
--with-php=/spool/build/php-4.3.0 --with-proj --with-wmsclient --with-gdal

I get the following error when running make:

make[1]: Entering directory `/spool/build/mapserver-3.6.4/mapscript/php3'
cc -xO3 -xdepend   -I. -I.. -KPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4
-DUSE_WMS_LYR -DUSE_WMS  -DUSE_GDAL     -DUSE_PROJ -DUSE_PROJ_API_H
-DUSE_EPPL -DUSE_TIFF   -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT
-I/spool/build/mapserver-3.6.4 -I/usr/local/include
-I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H  -I/usr/local/include
-I/usr/local/include   -I/spool/build/php-4.3.0 -I/spool/build/php-4.3.0/dl
-I/spool/build/php-4.3.0/main -I/spool/build/php-4.3.0/Zend
-I/spool/build/php-4.3.0/include -I/spool/build/php-4.3.0/TSRM  -c -o
php_mapscript_util.o php_mapscript_util.c
make[1]: cc: Command not found
make[1]: *** [php_mapscript_util.o] Error 127
make[1]: Leaving directory `/spool/build/mapserver-3.6.4/mapscript/php3'

Even though gcc is found (and even setting the env var CC to gcc doesn't
help), this error occurs.  Replacing "cc" manually with "gcc" gives errors
because the compiler switches are different (I would guess).

Any idea why this subdir is apparently not being included in the configure
to use the appropriate compiler and options?

Anyone know how to manually change this compiler execution with a working
one for gcc?

Thanks,
Colin



More information about the mapserver-users mailing list