Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#1809 closed defect (fixed)

gdal trunk doesn't compile with ./configure --without-ogr

Reported by: Even Rouault Owned by: Mateusz Łoskot
Priority: low Milestone: 1.5.0
Component: ConfigBuild Version: svn-trunk
Severity: normal Keywords: avc ingr aigrid
Cc: warmerdam, ilucena

Description

I don't know if --without-ogr is still supposed to work, but it doesn't actually.

After a fresh checkout and ./configure --without-libtool --without-ogr --with-libtiff=internal

I get the following linking errors when linking gdalinfo for example (on r12105):

libgdal.so: undefined reference to `AVCBinReadOpen'
libgdal.so: undefined reference to `AVCBinReadClose'
libgdal.so: undefined reference to `DGN2IEEEDouble(void*)'
libgdal.so: undefined reference to `AVCBinReadNextTableRec'

The AVC symbols come from ogr/ogrsf_frmts/avc and are used by frmts/aigrid The DGN2IEEEDouble symbol comes from ogr/ogrsf_frmts/dgn/dgnfloat.cpp and is used by frmts/ingr/IngrTypes.cpp.

I guess we should disable the building of the ingr and aigrid drivers when OGR building is disabled.

Attachments (1)

gdal_svn_trunk_fix_ingr_without_ogr.patch (5.8 KB ) - added by Even Rouault 16 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by warmerdam, 17 years ago

Cc: warmerdam ilucena added
Keywords: avc ingr aigrid added
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot
Priority: normallow

Mateusz,

Could you do the following:

  • Put a copy of the DGN2IEEEDouble() function into gdal/frmts/ingr with a distinct name (perhaps INGRDGN2IEEEDouble()) to remove this dependency.
  • See if the aigrid driver can be modified to avoid using the AVC code (at the cost of support info tables) if OGR is not available.
  • Do testing on windows and linux of building GDAL without OGR.

This is not terrible high priority but it would be desirable to resolve it before 1.5 release.

comment:2 by Even Rouault, 16 years ago

I'm attaching a patch for dropping the dependency on DGN2IEEEDouble

by Even Rouault, 16 years ago

comment:3 by ilucena, 16 years ago

Resolution: fixed
Status: newclosed

comment:4 by Even Rouault, 16 years ago

I think this should not be closed as there's still the problem with the AVC code

Note: See TracTickets for help on using tickets.