[mapserver-users] Nightly build doesn't compile?

Twan Kogels twan at twansoft.com
Sat Nov 24 06:00:07 EST 2001


Goodmorning,

Finally i have installed apache/php3/postgresql/mapserver and mapscript on 
my Suse (v 7.3) linux system. It all works correctly, the examples supplied 
with mapserver and mapscript run without any problems.

Tomorrow i installed postgis, no problems with it, compiled nicely. But 
then i came to the conclusion that i needed a newer version of mapserver, 
so i downloaded the nightly build (which has postgis support build in).

But there is a problem with the nightly build, i can't compile it. First i 
configure mapserver with the following command:

./configure --with-gd --with-postgis=/usr/local/pgsql/bin/ 
--with-php=../php-3.0.18 --with-apxs=/usr/local/apache/bin/apxs

Configure runs correctly and generates a makefile. But when i try the command:

make

GCC gives me a error:

linux:/usr/src/packages/SOURCES/mapserver # make
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL    -DUSE_TIFF 
-DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP 
-DUSE_GD_FT     -DUSE_POSTGIS  -I/usr/include 
-I/usr/src/packages/SOURCES/mapserver/../php-3.0.18/regex    -I   mapbits.c 
-o mapbits.o
gcc: No input files
make: *** [mapbits.o] Error 1

Does anybody know what i'm doing wrong? For the experts below is the 
complete output of the configure and make commands:

===========================
linux:/usr/src/packages/SOURCES/mapserver # ./configure --with-gd 
--with-postgis=/usr/local/pgsql/bin/ --with-php=../php-3.0.18 
--with-apxs=/usr/local/apache/bin/apxs
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for bison... (cached) bison -y
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for exp in -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for strdup... (cached) yes
checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
         using libjpeg from system libs.
checking which version of GD to use...
         using libgd from system libs.
checking where FreeType is installed...
checking for FT_Init_FreeType in -lfreetype... yes
         using libfreetype -lfreetype from system libs.
./configure: unset: `ac_cv_lib_z_z,zlibVersion': not a valid identifier
checking where Zlib is installed...
checking for zlibVersion in -lz... (cached) yes
         using libz from system libs.
checking where PNG is installed...
checking for png_init_io in -lpng... yes
         using libpng from system libs.
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageString16 in -lgd... yes
checking for gdImageGifPtr in -lgd... no
         using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) 
from system libs.
checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... (cached) no
         libpdf not found... PDF support not included.
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
         using libtiff from system libs.
checking whether we should include EPPL7 support...
         including EPPL7 support.
checking whether we should include PROJ.4 support...
         PROJ.4 support not requested.
checking whether we should include ESRI SDE support...
         ESRI SDE support not requested.
checking whether we should compile in MPATROL support...
         MPATROL support not requested.
checking whether we should include OGR support...
         OGR support not requested.
checking if GDAL support requested... no
checking if PostGIS support requested... yes, user supplied pg_config
./configure: /usr/local/pgsql/bin/: is a directory
./configure: /usr/local/pgsql/bin/: is a directory
checking if OracleSpatial support requested... no
checking whether we should include WMS support...
         OGC WMS Compatibility not enabled (PROJ.4 is required for WMS).
checking whether we should include WMS Client Connections support...
         OGC WMS Client Connections not enabled (PROJ.4 and libwww required).
Compiling with -DIGNORE_MISSING_DATA.
checking for PHP/MapScript module options...
checking whether 'perl -V' works... yes
checking for location of config.h or php_config.h... 
/usr/src/packages/SOURCES/mapserver/../php-3.0.18/config.h
checking whether we have PHP3 or PHP4... -DPHP3
checking whether we should use PHP's regex... yes
         PHP/MapScript module configured.
checking for location of Apache headers using apxs... 
-I/usr/local/apache/include
creating ./config.status
creating Makefile
creating mapscript/php3/Makefile
linux:/usr/src/packages/SOURCES/mapserver # make
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL    -DUSE_TIFF 
-DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP 
-DUSE_GD_FT     -DUSE_POSTGIS  -I/usr/include 
-I/usr/src/packages/SOURCES/mapserver/../php-3.0.18/regex    -I   mapbits.c 
-o mapbits.o
gcc: No input files
make: *** [mapbits.o] Error 1
linux:/usr/src/packages/SOURCES/mapserver #
===========================

Thanks,
- twan

-- 
http://www.twansoft.com 




More information about the mapserver-users mailing list