[Gdal-dev] gdal > 1.2.4: configure fails on FreeBSD

Benjamin Thelen bt at ccgis.de
Thu Aug 11 14:16:06 EDT 2005


Frank Warmerdam wrote:
> On 8/11/05, Benjamin Thelen <bt at ccgis.de> wrote:
> 
>>Hello list,
>>
>>
>>since version 1.2.4 I am not able to configure gdal successfully on
>>FreeBSD 4.11 and 5.4 boxes, on which I have installed geos-2.0.1 from
>>ports (which should be sufficient, I assume). Please see the error
>>messages below.
> 
> 
> Benjamin,
> 
> I think this was corrected post 1.2.6.  Could you try the 1.3.0beta
> source now available?
> 
> The challenge with freebsd is to avoid any bash specific issues in
> the configure script.  Since my /bin/sh is usually bash I don't often
> notice these issues.  That is one reason why it is so important that
> folks on slightly less common platforms, like freebsd, try the betas.
> 
> Best regards,


Hello Frank,


the 1.3.0beta configure script runs successfully on FreeBSD 4.11 and 
5.4, but building fails on both, please see the output below. I don't 
have geotiff installed, but I have tiff-3.7.3 installed from ports on 
both boxes. So, I don't understand what it's about this "xtiffio.h:10: 
tiffio.h: No such file or directory".


Using a bash solves the 1.2.6 (and I assume, 1.2.4 and 1.2.5) issue!


If you need more information, please feel free to drop a mail!


Best Regards,
Ben



- FreeBSD 4.11


  g++ -c -I../port -I../gcore -I../alg -I../ogr -I../ogr/ogrsf_frmts 
-Wall -O2 -D 
                   FRMT_gxf -DFRMT_gtiff -DFRMT_hfa -DFRMT_aigrid 
-DFRMT_aaigrid -DFRMT_ceos -DFRMT 
                                        _ceos2 -DFRMT_iso8211 -DFRMT_xpm 
-DFRMT_sdts -DFRMT_raw -DFRMT_dted -DFRMT_mem - 
                                                      DFRMT_jdem 
-DFRMT_envisat -DFRMT_elas -DFRMT_fit -DFRMT_vrt -DFRMT_usgsdem -DFRM 
 
     T_l1b -DFRMT_nitf -DFRMT_bmp -DFRMT_pcidsk -DFRMT_airsar -DFRMT_rs2 
-DFRMT_ilwis 
                    -DFRMT_rmf -DFRMT_bsb -DFRMT_jpeg2000 -DFRMT_hdf4 
-DFRMT_gif -DFRMT_jpeg -DFRMT 
                                    _png "-DGDAL_FORMATS=gxf gtiff hfa 
aigrid aaigrid ceos ceos2 iso8211 xpm sdts ra 
                                                    w dted mem jdem 
envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwi 
                                                                       s 
rmf bsb jpeg2000 hdf4 gif jpeg png " gdalallregister.cpp -o 
o/gdalallregister. 
                         o >/dev/null 2>&1
gmake -C gxf install-obj
gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/gxf'
/bin/sh ../../libtool --mode=compile g++ -Wall  -O2   -I../../port 
-I../../gcore 
                     -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/gxfdat 
                                      aset.o gxfdataset.cpp
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxfdataset.cpp  -fPIC 
-DPIC -o ../o/.libs/gxfdataset.o
  g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxfdataset.cpp -o 
../o/gxfdataset.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile gcc -Wall  -O2   -I../../port 
-I../../gcore 
                     -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/gxfope 
                                      n.o gxfopen.c
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxfopen.c  -fPIC -DPIC -o 
../o/.libs/gxfopen.o
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxfopen.c -o 
../o/gxfopen.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile gcc -Wall  -O2   -I../../port 
-I../../gcore 
                     -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/gxf_pr 
                                      oj4.o gxf_proj4.c
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_proj4.c  -fPIC -DPIC 
-o ../o/.libs/gxf_proj4.o
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_proj4.c -o 
../o/gxf_proj4.o >/dev/null 2>&1
/bin/sh ../../libtool --mode=compile gcc -Wall  -O2   -I../../port 
-I../../gcore 
                     -I../../alg -I../../ogr -I../../ogr/ogrsf_frmts 
-I../../port  -c -o ../o/gxf_og 
                                      cwkt.o gxf_ogcwkt.c
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_ogcwkt.c  -fPIC -DPIC 
-o ../o/.libs/gxf_ogcwkt.o
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_ogcwkt.c -o 
../o/gxf_ogcwkt.o >/dev/null 2>&1
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gxf'
gmake -C gtiff install-obj
gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/gtiff'
(cd libgeotiff; gmake install-obj)
gmake[3]: Entering directory `/data/src/gdal-1.3.0b1/frmts/gtiff/libgeotiff'
/bin/sh ../../../libtool --mode=compile gcc -c -I../../../port -Wall 
-O2   xtif 
                 f.c -o ../../o/xtiff.o
  gcc -c -I../../../port -Wall -O2 xtiff.c  -fPIC -DPIC -o 
../../o/.libs/xtiff.o
In file included from xtiff.c:17:
xtiffio.h:10: tiffio.h: No such file or directory
gmake[3]: *** [../../o/xtiff.o] Fehler 1
gmake[3]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gtiff/libgeotiff'
gmake[2]: *** [lib-geotiff] Fehler 2
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gtiff'
gmake[1]: *** [gtiff-install-obj] Fehler 2
gmake[1]: Leaving directory `/data/src/gdal-1.3.0b1/frmts'
gmake: *** [frmts-target] Fehler 2







- FreeBSD 5.4



  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_ogcwkt.c  -fPIC -DPIC 
-o ../o/.libs/gxf_ogcwkt.o
  gcc -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr 
-I../../ogr/og 
                     rsf_frmts -I../../port -c gxf_ogcwkt.c -o 
../o/gxf_ogcwkt.o >/dev/null 2>&1
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gxf'
gmake -C gtiff install-obj
gmake[2]: Entering directory `/data/src/gdal-1.3.0b1/frmts/gtiff'
(cd libgeotiff; gmake install-obj)
gmake[3]: Entering directory `/data/src/gdal-1.3.0b1/frmts/gtiff/libgeotiff'
/bin/sh ../../../libtool --mode=compile gcc -c -I../../../port -Wall 
-O2   xtif 
                 f.c -o ../../o/xtiff.o
  gcc -c -I../../../port -Wall -O2 xtiff.c  -fPIC -DPIC -o 
../../o/.libs/xtiff.o
In file included from xtiff.c:17:
xtiffio.h:10:20: tiffio.h: No such file or directory
In file included from xtiff.c:17:
xtiffio.h:68: error: syntax error before '*' token
xtiffio.h:68: warning: type defaults to `int' in declaration of `XTIFFOpen'
xtiffio.h:68: warning: data definition has no type or storage class
xtiffio.h:69: error: syntax error before '*' token
xtiffio.h:69: warning: type defaults to `int' in declaration of 
`XTIFFFdOpen'
xtiffio.h:69: warning: data definition has no type or storage class
xtiffio.h:70: error: syntax error before '*' token
xtiffio.h:72: error: syntax error before '*' token
xtiffio.h:73: error: syntax error before "thandle_t"
xtiffio.h:77: warning: type defaults to `int' in declaration of 
`XTIFFClientOpen 
                       '
xtiffio.h:77: warning: data definition has no type or storage class
xtiff.c:30: error: syntax error before "xtiffFieldInfo"
xtiff.c:30: warning: type defaults to `int' in declaration of 
`xtiffFieldInfo'
xtiff.c:33: warning: braces around scalar initializer
xtiff.c:33: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:33: warning: excess elements in scalar initializer
xtiff.c:33: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:33: warning: excess elements in scalar initializer
xtiff.c:33: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:33: error: `TIFF_DOUBLE' undeclared here (not in a function)
xtiff.c:33: warning: excess elements in scalar initializer
xtiff.c:33: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:33: error: `FIELD_CUSTOM' undeclared here (not in a function)
xtiff.c:33: warning: excess elements in scalar initializer
xtiff.c:33: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:34: warning: excess elements in scalar initializer
xtiff.c:34: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:34: warning: excess elements in scalar initializer
xtiff.c:34: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:34: warning: excess elements in scalar initializer
xtiff.c:34: warning: (near initialization for `xtiffFieldInfo[0]')
xtiff.c:35: warning: braces around scalar initializer
xtiff.c:35: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:35: warning: excess elements in scalar initializer
xtiff.c:35: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:35: warning: excess elements in scalar initializer
xtiff.c:35: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:35: warning: excess elements in scalar initializer
xtiff.c:35: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:35: warning: excess elements in scalar initializer
xtiff.c:35: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:36: warning: excess elements in scalar initializer
xtiff.c:36: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:36: warning: excess elements in scalar initializer
xtiff.c:36: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:36: warning: excess elements in scalar initializer
xtiff.c:36: warning: (near initialization for `xtiffFieldInfo[1]')
xtiff.c:37: warning: braces around scalar initializer
xtiff.c:37: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:37: warning: excess elements in scalar initializer
xtiff.c:37: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:37: warning: excess elements in scalar initializer
xtiff.c:37: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:37: warning: excess elements in scalar initializer
xtiff.c:37: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:37: warning: excess elements in scalar initializer
xtiff.c:37: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:38: warning: excess elements in scalar initializer
xtiff.c:38: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:38: warning: excess elements in scalar initializer
xtiff.c:38: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:38: warning: excess elements in scalar initializer
xtiff.c:38: warning: (near initialization for `xtiffFieldInfo[2]')
xtiff.c:39: warning: braces around scalar initializer
xtiff.c:39: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:39: warning: excess elements in scalar initializer
xtiff.c:39: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:39: warning: excess elements in scalar initializer
xtiff.c:39: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:39: warning: excess elements in scalar initializer
xtiff.c:39: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:39: warning: excess elements in scalar initializer
xtiff.c:39: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:40: warning: excess elements in scalar initializer
xtiff.c:40: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:40: warning: excess elements in scalar initializer
xtiff.c:40: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:40: warning: excess elements in scalar initializer
xtiff.c:40: warning: (near initialization for `xtiffFieldInfo[3]')
xtiff.c:41: warning: braces around scalar initializer
xtiff.c:41: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:41: warning: excess elements in scalar initializer
xtiff.c:41: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:41: warning: excess elements in scalar initializer
xtiff.c:41: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:41: error: `TIFF_SHORT' undeclared here (not in a function)
xtiff.c:41: warning: excess elements in scalar initializer
xtiff.c:41: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:41: warning: excess elements in scalar initializer
xtiff.c:41: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:42: warning: excess elements in scalar initializer
xtiff.c:42: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:42: warning: excess elements in scalar initializer
xtiff.c:42: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:42: warning: excess elements in scalar initializer
xtiff.c:42: warning: (near initialization for `xtiffFieldInfo[4]')
xtiff.c:43: warning: braces around scalar initializer
xtiff.c:43: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:43: warning: excess elements in scalar initializer
xtiff.c:43: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:43: warning: excess elements in scalar initializer
xtiff.c:43: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:43: warning: excess elements in scalar initializer
xtiff.c:43: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:43: warning: excess elements in scalar initializer
xtiff.c:43: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:44: warning: excess elements in scalar initializer
xtiff.c:44: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:44: warning: excess elements in scalar initializer
xtiff.c:44: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:44: warning: excess elements in scalar initializer
xtiff.c:44: warning: (near initialization for `xtiffFieldInfo[5]')
xtiff.c:45: warning: braces around scalar initializer
xtiff.c:45: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:45: warning: excess elements in scalar initializer
xtiff.c:45: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:45: warning: excess elements in scalar initializer
xtiff.c:45: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:45: error: `TIFF_ASCII' undeclared here (not in a function)
xtiff.c:45: warning: excess elements in scalar initializer
xtiff.c:45: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:45: warning: excess elements in scalar initializer
xtiff.c:45: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:46: warning: excess elements in scalar initializer
xtiff.c:46: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:46: warning: excess elements in scalar initializer
xtiff.c:46: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:46: warning: excess elements in scalar initializer
xtiff.c:46: warning: (near initialization for `xtiffFieldInfo[6]')
xtiff.c:51: warning: data definition has no type or storage class
xtiff.c:54: error: syntax error before '*' token
xtiff.c: In function `_XTIFFLocalDefaultDirectory':
xtiff.c:57: warning: implicit declaration of function `TIFFMergeFieldInfo'
xtiff.c:57: error: `tif' undeclared (first use in this function)
xtiff.c:57: error: (Each undeclared identifier is reported only once
xtiff.c:57: error: for each function it appears in.)
xtiff.c: At top level:
xtiff.c:65: error: syntax error before "_ParentExtender"
xtiff.c:65: warning: type defaults to `int' in declaration of 
`_ParentExtender'
xtiff.c:65: warning: data definition has no type or storage class
xtiff.c:74: error: syntax error before '*' token
xtiff.c: In function `_XTIFFDefaultDirectory':
xtiff.c:77: error: `tif' undeclared (first use in this function)
xtiff.c:85: error: invalid type argument of `unary *'
xtiff.c: In function `_XTIFFInitialize':
xtiff.c:102: warning: implicit declaration of function `TIFFSetTagExtender'
xtiff.c: At top level:
xtiff.c:128: error: syntax error before '*' token
xtiff.c:130: warning: return type defaults to `int'
xtiff.c: In function `XTIFFOpen':
xtiff.c:131: error: `TIFF' undeclared (first use in this function)
xtiff.c:131: error: `tif' undeclared (first use in this function)
xtiff.c:138: warning: implicit declaration of function `TIFFOpen'
xtiff.c: At top level:
xtiff.c:144: error: syntax error before '*' token
xtiff.c:146: warning: return type defaults to `int'
xtiff.c: In function `XTIFFFdOpen':
xtiff.c:147: error: `TIFF' undeclared (first use in this function)
xtiff.c:147: error: `tif' undeclared (first use in this function)
xtiff.c:154: warning: implicit declaration of function `TIFFFdOpen'
xtiff.c: At top level:
xtiff.c:160: error: syntax error before '*' token
xtiff.c:161: error: syntax error before "thandle_t"
xtiff.c:166: warning: return type defaults to `int'
xtiff.c: In function `XTIFFClientOpen':
xtiff.c:167: error: `TIFF' undeclared (first use in this function)
xtiff.c:167: error: `tif' undeclared (first use in this function)
xtiff.c:174: warning: implicit declaration of function `TIFFClientOpen'
xtiff.c:174: error: `name' undeclared (first use in this function)
xtiff.c:174: error: `mode' undeclared (first use in this function)
xtiff.c:174: error: `thehandle' undeclared (first use in this function)
xtiff.c:175: error: `RWProc' undeclared (first use in this function)
xtiff.c:175: error: `RWProc2' undeclared (first use in this function)
xtiff.c:176: error: `SProc' undeclared (first use in this function)
xtiff.c:176: error: `CProc' undeclared (first use in this function)
xtiff.c:177: error: `SzProc' undeclared (first use in this function)
xtiff.c:178: error: `MFProvc' undeclared (first use in this function)
xtiff.c:178: error: `UMFProc' undeclared (first use in this function)
xtiff.c: At top level:
xtiff.c:196: error: syntax error before '*' token
xtiff.c: In function `XTIFFClose':
xtiff.c:198: warning: implicit declaration of function `TIFFClose'
xtiff.c:198: error: `tif' undeclared (first use in this function)
gmake[3]: *** [../../o/xtiff.o] Fehler 1
gmake[3]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gtiff/libgeotiff'
gmake[2]: *** [lib-geotiff] Fehler 2
gmake[2]: Leaving directory `/data/src/gdal-1.3.0b1/frmts/gtiff'
gmake[1]: *** [gtiff-install-obj] Fehler 2
gmake[1]: Leaving directory `/data/src/gdal-1.3.0b1/frmts'
gmake: *** [frmts-target] Fehler 2



More information about the Gdal-dev mailing list