Fwd: Antw: Re: [Mapserver-users] cc problem <stdio.h>

Lowell Filak lfilak at medinaco.org
Tue Nov 18 09:14:58 EST 2003


It would appear to me that it is just a path problem during the make then.
I will forward it back to the list to see if someone can shed more light
on the subject.
However, it also appears that the compiler your using is not GNU C and
there are some hits on google that seem to indicate problems compiling
with the supplied CC.
http://freeware.sgi.com reportedly has the GNU C available.

HTH

Lowell

The following message was sent by "Andre Seifert" <ASeifert at schwerin.de>
on Tue, 18 Nov 2003 10:47:42 +0100.

> Hi Lowell, yes I'm sure, stdio.h exists in /usr/include. 
> I have already compiled the following software:
> curl-7.10.7
> freetype-1.3.1
> freetype-2.1.5
> gd-2.0.15
> gdal-1.1.9
> jpeg-6b
> libgeotiff-1.2.1
> libpng-1.2.5
> postgresql-7.3.4
> proj-4.4.7
> tiff-v3.6.0
> zlib-1.1.3
> There was no problem during make. Only mapserver is a problem. Here is
> what I do:
> 
> I use a script:
> #!/bin/ksh
> dirname=mapserver-4.0.1
> cd /usr/people/intranet/mapserver
> if [[ -d $dirname ]] ; then
>   rm -r $dirname
> fi
> tar xf packages/mapserver-4_0_1_tar
> cd $dirname
> if [[ $? -eq 0 ]] ; then
>   PATH=${PATH}:/usr/local/bin; export PATH
>   echo "# configure
#######################################################> ####"
>   ./configure --with-curl-config=/usr/local/bin/curl-config
--with-proj> =/usr/local --with-gdal=/usr/local/bin/gdal-config
--with-ogr > --with-wmsclient --with-wfsclient --with-postgis=/usr/local
--with-tiff> =/usr/local --with-freetype=/usr/local
--with-png=/usr/local > --with-jpeg=/usr/local
--with-libiconv=/usr/local --with-zlib=/usr/lo> cal --with-gd=/usr/local
>   echo "# make
############################################################> ####"
>   make  
> else
>   echo "$dirname does not exist"
> fi
> 
> and the output is:
> 
> # configure ###########################################################
> creating cache ./config.cache
> checking for gcc... no
> checking for cc... cc
> checking whether the C compiler (cc  ) works... yes
> checking whether the C compiler (cc  ) is a cross-compiler... no
> checking whether we are using GNU C... no
> checking whether cc accepts -g... no
> checking for c++... no
> checking for g++... no
> checking for gcc... no
> checking for CC... CC
> checking whether the C++ compiler (CC  ) works... yes
> checking whether the C++ compiler (CC  ) is a cross-compiler... no
> checking whether we are using GNU C++... no
> checking whether CC accepts -g... no
> checking for ranlib... :
> checking for flex... flex
> checking for yywrap in -lfl... no
> checking for bison... bison -y
> checking if compiler supports -R... no
> checking if compiler supports -Wl,-rpath,... yes
> checking for exp in -lm... yes
> checking for __gxx_personality_v0 in -lstdc++... no
> checking how to run the C preprocessor... /lib/cpp
> checking for ANSI C header files... no
> checking for strcasecmp... yes
> checking for strncasecmp... yes
> checking for strdup... yes
> checking whether we should include JPEG support...
>         using libjpeg from system -L/usr/local/lib -ljpeg
> checking where FreeType 2.x is installed...
>         using libfreetype from -L/usr/local/lib -lfreetype
> checking for FT_Init_FreeType in -lfreetype... no
>         using libfreetype -L/usr/local/lib -lfreetype from system libs.
> checking where Zlib is installed...
>         using libz from -L/usr/local/lib -lz
> checking where PNG is installed...
>         using libpng from -L/usr/local/lib -lpng
> checking where libXpm is installed...
> checking for XpmFreeXpmImage in -lXpm... yes
>         using libXpm from system libs.
> checking where libiconv is installed...
> checking for libiconv_open in -liconv... no
>         libiconv library cannot be found, possibly needed for GD
> checking for GD 2.0.12 or higher...
> checking for gdImageSetAntiAliased in -lgd... yes
>         using libgd 2.0.12 (or higher) from -L/usr/local/lib -lgd >
-L/usr/local/lib -ljpeg -L/usr/local/lib -lfreetype -L/usr/local/lib
-lpng > -L/usr/local/lib -lz -lXpm -lX11 
> checking for gdImageGif in -lc... no
> checking for gdImagePng in -lc... yes
> checking for gdImageJpeg in -lc... yes
> checking for gdImageWBMP in -lc... yes
> checking for gdImageStringFT in -lc... yes
> checking for gdImageGifPtr in -lc... no
>         using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
-DUSE_GD_FT) > from /usr/local.
> 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... no
>         libpdf not found... PDF support not included.
> checking whether we should include TIFF support...
>         using libtiff from -L/usr/local/lib -ltiff.
> checking whether we should include EPPL7 support...
>         including EPPL7 support.
> checking whether we should include PROJ.4 support...
> checking for pj_transform in -lproj... yes
> checking for pj_latlong_from_proj in -lproj... yes
>         using PROJ.4 from /usr/local.
> checking whether we should include thread safe support...
>         thread safe support disabled.
> 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...
> checking for gdal-config... /usr/local/bin/gdal-config
> checking for OGRRegisterAll in -lgdal.1.1... no
> configure: warning:         OGR not found in system libs... use
--with-ogr> =DIR.
> checking if GDAL support requested... yes, user supplied gdal-config >
(/usr/local/bin/gdal-config)
> checking if PostGIS support requested... yes, user supplied pg_config
> ./configure[5016]: /usr/local: kann nicht ausführen
> ./configure[5017]: /usr/local: kann nicht ausführen
> checking if MyGIS support requested... no
> checking if OracleSpatial support requested... no
> checking if MING/Flash support requested... no
> checking whether we should include WMS Server support...
>         OGC WMS compatibility enabled (-DUSE_WMS_SVR).
> checking whether we should include WFS Server support...
>         OGC WFS Server support not requested.
> checking whether we should include WMS Client Connections support...
> checking whether we should include WFS Client Connections support...
>         OGC WFS Client Connections not enabled (PROJ.4, libcurl and
OGR > required).
> checking for curl-config
>         found libcurl version 7.10.7
>         OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
> checking HTTPD server (Apache) version
> checking for httpd... no
>         'httpd' not found, skipping Apache version detection. You may
want > to use --with-httpd=/path/to/httpd
> Compiling with -DIGNORE_MISSING_DATA.
> checking whether we should enable debug features...
> checking for PHP/MapScript module options...
>         PHP/MapScript module not configured.
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> # make ################################################################
> 	cc -c -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H>
 -DUSE_WMS_SVR -DUSE_WMS_LYR      -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG >
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL  -DUSE_POSTGIS   
 > -I/usr/local/include  -I/usr/local/include -I/usr/local/include
-I/usr/loca> l/include       -I/usr/local/include -I  
-I/usr/local/include   maptemplat> e.c -o maptemplate.o
> cc-1005 cc: ERROR File = map.h, Line = 9
>   The source file "stdio.h" is unavailable.
> 
>   #include <stdio.h>
>                     ^
> 
> 1 catastrophic error detected in the compilation of "maptemplate.c".
> Compilation terminated.
> *** Fehlercode 2 (bu21)
> 
> 
> 
> 
> Mail scanned by virusscanner, Patternfile from 17 Nov 2003




More information about the mapserver-users mailing list