On Fri, Dec 05, 2008 at 08:20:09PM -0800, Peter Valchev wrote:
> A library necessary for QLandkarte GT which I'm in the process of
> porting - a newer version of geo/qlandkarte (www.qlandkarte.org)
> 
> Would appreciate a cross-check and extra test :)

There are some problems:

- it should use MODULES = devel/gettext instead of LIB_DEPENDS =
  intl::devel/gettext.

- there seem to be some hidden dependencies, like xerces, postgresql,
  jasper, geotiff. (Did I ever mention how much I hate this kind
  of "pick it up if it's installed" automagic?)

- autoconf seems to pick up gsed and ggrep (if installed). This may be
  harmless, but better find/xargs/grep for it in the fake dir.

- if devel/geotiff is installed, the build fails.

Output snippets from configure and from the failing build below.

Ciao,
        Kili


===>  Configuring for gdal-1.5.3
configure: loading site script /usr/ports/infrastructure/db/config.site
checking build system type... i386-unknown-openbsd4.4
checking host system type... i386-unknown-openbsd4.4
checking target system type... i386-unknown-openbsd4.4
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... none needed
checking C_WFLAGS for maximum warnings... -Wall
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking CXX_WFLAGS for maximum warnings... -Wall
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for grep that handles long lines and -e... /usr/local/bin/ggrep
checking for egrep... /usr/local/bin/ggrep -E
checking for fgrep... /usr/local/bin/ggrep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 131072
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... match_pattern 
/lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
checking for ar... (cached) ar
checking for strip... (cached) strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... c++ -E
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... openbsd4.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... openbsd4.4 ld.so
checking how to hardcode library paths into programs... immediate
checking for dlopen in -ldl... no
checking for nanosleep in -lrt... no
checking for sin in -lm... (cached) yes
checking for ANSI C header files... (cached) yes
checking for assert.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking dbmalloc.h usability... no
checking dbmalloc.h presence... no
checking for dbmalloc.h... no
checking for dlfcn.h... (cached) yes
checking for stdint.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for values.h... (cached) no
checking for float.h... (cached) yes
checking for errno.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking whether byte ordering is bigendian... no
checking for 64bit integer type... long long
checking for 64bit file io... no
checking for int... (cached) yes
checking size of int... 4
checking for long... (cached) yes
checking size of long... 4
checking for unsigned long... (cached) yes
checking size of unsigned long... 4
checking for void*... yes
checking size of void*... 4
checking for int8... no
checking for int16... no
checking for int32... no
checking native cpu bit order... lsb2msb
checking for vprintf... (cached) yes
checking for _doprnt... no
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for atoll... yes
checking for copysign... yes
checking for copysignf... yes
checking for strtof... yes
checking for nan... yes
checking for nanf... yes
checking for getcwd... (cached) yes
checking whether nan is declared... no
checking whether nanf is declared... no
checking for gmtime_r... (cached) yes
checking for localtime_r... (cached) yes
checking for setlocale... (cached) yes
checking to enable debug build... no, CFLAGS="-O2 -pipe"
checking whether we should hide internal symbols... no
checking for local include/lib path... none
configure: checking whether we should include thread/mutex support......
        thread safe support disabled.
checking for deflateInit_ in -lz... yes
using pre-installed libz
checking for pg_config... /usr/local/bin/pg_config
checking for PostgreSQL... yes
checking for PQconnectdb in -lpq... yes
checking for PQputCopyData in -lpq... yes
checking for G_gisinit_2 in -lgrass5... no
checking for ffopen in -lcfitsio... no
libcfitsio not found - FITS support disabled
checking for Mopen in -lcsf... no
checking csf.h usability... no
checking csf.h presence... no
checking for csf.h... no
using internal csf code.
checking for nc_open in -lnetcdf... yes
using pre-installed libnetcdf.
checking for png_set_IHDR in -lpng... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
using internal png code.
checking for TIFFGetTagListCount in -ltiff... yes
checking for _TIFFsetDoubleArray in -ltiff... yes
checking for TIFFScanlineSize64 in -ltiff... no
using pre-installed libtiff.
checking for XTIFFClientOpen in -lgeotiff... yes
using pre-installed libgeotiff.
checking for jpeg_read_scanlines in -ljpeg... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
using internal jpeg code.
checking for DGifOpenFileName in -lgif... yes
using pre-installed libgif.
checking for cln_GetLayerCapabilities in -logdi31... no
checking for FMEObjects... no
checking for SDreaddata in -lmfhdf... no
checking for H5Fopen in -lhdf5... no
checking for jpc_decode in -ljasper... yes
checking for jp2_decode in -ljasper... yes
checking for pgx_decode in -ljasper... yes
checking for jp2_encode_uuid in -ljasper... no
configure: hacked JasPer version not found, GeoJP2 disabled.
checking for NCScbmOpenFileView in -lNCSEcw... no
checking for NCScbmOpenFileView in -lecwj2... no
checking for Kakadu JPEG2000 support... not requested.
configure: MrSID support disabled.
checking for BSB ... enabled
checking for OGR ... enabled
checking for MySQL... no
checking for Xerces C++ Parser headers in /usr/local/include and 
/usr/local/include/xercesc... found
checking for Xerces C++ Parser libraries... found
checking for Xerces C++ Parser... yes
checking if Xerces C++ Parser version is >= 2.7.0... yes
checking for Expat XML Parser headers in /usr/include... found
checking for Expat XML Parser libraries... found
checking for Expat XML Parser... yes
checking if Expat XML Parser version is >= 1.95.0... yes
checking for SQLConnect in -lodbc... no
checking for SQLInstallDriverEx in -lodbcinst... no
checking if Oracle support is enabled... no
checking Checking for DODS... disabled
checking for curl-config... /usr/local/bin/curl-config
        found libcurl version 7.19.2
checking for SQLite3 library >= 3.0.0... not found
checking Checking for DWGdirect... disabled
configure: IBM Informix DataBlade not supported.
configure: checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
checking for geos-config... no
checking whether to enable PAM... yes
checking how to link PROJ.4 library... link dynamically.
checking GDAL version information from gdal_version.h: 1.5.3
checking for perl bindings... disabled
checking for php bindings... disabled
checking for ruby bindings... disabled
checking for python bindings... disabled
checking for old-gen python bindings... disabled
configure: creating ./config.status
config.status: creating GDALmake.opt
config.status: WARNING:  GDALmake.opt.in seems to ignore the --datarootdir 
setting
config.status: creating port/cpl_config.h
config.status: executing libtool commands

GDAL is now configured for i386-unknown-openbsd4.4

  Installation directory:    /usr/local
  C compiler:                cc -O2 -pipe
  C++ compiler:              c++ -O2 -pipe

  LIBTOOL support:           yes

  LIBZ support:              external
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          internal
  NetCDF support:            yes
  LIBPNG support:            internal
  LIBTIFF support:           external (BigTIFF=no)
  LIBGEOTIFF support:        external
  LIBJPEG support:           internal
  LIBGIF support:            external
  OGDI support:              no
  HDF4 support:              no
  HDF5 support:              no
  Kakadu support:            no
  JasPer support:            yes (GeoJP2=no)
  ECW support:               no
  MrSID support:             no
  GRIB support:              no
  cURL support (wms/wcs/...):yes
  PostgreSQL support:        yes
  MySQL support:             no
  Xerces-C support:            yes
  Expat support:             yes
  ODBC support:              no
  PGeo support:              no
  OCI support:               no
  SDE support:               no
  DODS support:              no
  SQLite support:            no
  DWGdirect support          no
  PANORAMA GIS support:      no
  INFORMIX DataBlade support:no
  GEOS support:              no


  Old-gen python          no
  SWIG Bindings:          no

  Statically link PROJ.4:    no
  enable OGR building:       yes
  enable pthread support:    no
  hide internal symbols:     no




===>  Building for gdal-1.5.3
[...]
gmake[2]: Entering directory `/var/obj/gdal-1.5.3/gdal-1.5.3/frmts/gtiff'
/usr/local/bin/libtool  --mode=compile --tag=CXX c++ -O2 -pipe  -Wall  
-I/var/obj/gdal-1.5.3/gdal-1.5.3/port -I/var/obj/gdal-1.5.3/gdal-1.5.3/gcore 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/alg -I/var/obj/gdal-1.5.3/gdal-1.5.3/ogr 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/ogr/ogrsf_frmts  -DOGR_ENABLED 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/port  -c -o ../o/geotiff.o geotiff.cpp
 c++ -O2 -pipe -Wall -I/var/obj/gdal-1.5.3/gdal-1.5.3/port 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/gcore -I/var/obj/gdal-1.5.3/gdal-1.5.3/alg 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/ogr 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/ogr/ogrsf_frmts -DOGR_ENABLED 
-I/var/obj/gdal-1.5.3/gdal-1.5.3/port -c geotiff.cpp  -fPIC -DPIC -o 
../o/.libs/geotiff.o
geotiff.cpp:33:20: tiffio.h: No such file or directory
geotiff.cpp:34:21: xtiffio.h: No such file or directory
geotiff.cpp:35:21: geotiff.h: No such file or directory
geotiff.cpp:36:27: geo_normalize.h: No such file or directory
geotiff.cpp:37:23: geovalues.h: No such file or directory
[...]

Reply via email to