Xerces is not linked in GDAL-Util-Package

Bug #786790 reported by uhu
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Gdal
Fix Released
Unknown
gdal (Debian)
Fix Released
Unknown
gdal (Ubuntu)
Fix Released
High
Clint Byrum
Natty
Fix Released
High
Clint Byrum

Bug Description

=== SRU Justification ===
GDAL is a widely used library for reading geographic data. Due to a problem in the build system, it was not linked to xerces. This regression occured between rebuild 1 and rebuild 2.

Due to the missing link with xerces, gml files, which are the standardized (iso and osgeo) files for geographic data can not be read by most GIS programs in ubuntu.

New builds in a clean environment are linked to libxerces correctly.
=========================

ogr2ogr -f GML lakes2.gml lakes.gml.

fails. Actually the output (the output of ogrinfo is attached)
guided me to the GDAL-Util-Package. Could it be that in ubuntu 11.04 the
gdal-package is not linked to the xerces-library?

Revision history for this message
uhu (w2q) wrote :
Revision history for this message
uhu (w2q) wrote :

I added a similar bug report here:
https://bugs.launchpad.net/ubuntu/+source/qgis/+bug/786784
because I didn't figured out how to link a bug to two projects.

Revision history for this message
Anita Graser (anita-graser-at) wrote :

This bug affect QGIS nightly builds for Natty: http://hub.qgis.org/issues/4036

Revision history for this message
Johan Van de Wauw (johanvdw) wrote :

Which version of ogr2ogr and gdal are you using?
Can you provide the output of:
ogr2ogr --version
ogr2ogr --formats
which ogr2ogr

Revision history for this message
Anita Graser (anita-graser-at) wrote :

ogr2ogr --version
GDAL 1.6.3, released 2009/11/19

ogr2ogr --formats
Supported Formats:
  -> "ESRI Shapefile" (read/write)
  -> "MapInfo File" (read/write)
  -> "UK .NTF" (readonly)
  -> "SDTS" (readonly)
  -> "TIGER" (read/write)
  -> "S57" (read/write)
  -> "DGN" (read/write)
  -> "VRT" (readonly)
  -> "REC" (readonly)
  -> "Memory" (read/write)
  -> "BNA" (read/write)
  -> "CSV" (read/write)
  -> "GML" (read/write)
  -> "GPX" (read/write)
  -> "KML" (read/write)
  -> "GeoJSON" (read/write)
  -> "GMT" (read/write)
  -> "SQLite" (read/write)
  -> "ODBC" (read/write)
  -> "PGeo" (readonly)
  -> "OGDI" (readonly)
  -> "PostgreSQL" (read/write)
  -> "MySQL" (read/write)
  -> "XPlane" (readonly)
  -> "AVCBin" (readonly)
  -> "AVCE00" (readonly)
  -> "Geoconcept" (read/write)

ogrinfo ~/map/qgis_sample_data/gml/lakes.gml
ERROR 1: Unable to create Xerces C++ based GML reader, Xerces support
not configured into GDAL/OGR.
ERROR 1: File /home/agraser/map/qgis_sample_data/gml/lakes.gml appears to be GML but the GML reader can't
be instantiated, likely because Xerces support wasn't
configured in.
FAILURE:
Unable to open datasource `/home/agraser/map/qgis_sample_data/gml/lakes.gml' with the following drivers.
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> SDTS
  -> TIGER
  -> S57
  -> DGN
  -> VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> GML
  -> GPX
  -> KML
  -> GeoJSON
  -> GMT
  -> SQLite
  -> ODBC
  -> PGeo
  -> OGDI
  -> PostgreSQL
  -> MySQL
  -> XPlane
  -> AVCBin
  -> AVCE00
  -> Geoconcept

Revision history for this message
Johan Van de Wauw (johanvdw) wrote : Re: [Bug 786790] Re: Xerces is not linked in GDAL-Util-Package

I don't get issues with the package on maverick, which should be
simliar to natty.
What is the output of ldd /usr/bin/ogr2ogr ?

Revision history for this message
Anita Graser (anita-graser-at) wrote :
Download full text (3.5 KiB)

ldd /usr/bin/ogr2ogr
 linux-vdso.so.1 => (0x00007fff357a7000)
 libgdal1.6.0.so.1 => /usr/lib/libgdal1.6.0.so.1 (0x00007ff54979d000)
 libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff549497000)
 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff549280000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff548eec000)
 libproj.so.0 => /usr/lib/libproj.so.0 (0x00007ff548caa000)
 libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x00007ff548a8d000)
 libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007ff5487f4000)
 libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00007ff54858c000)
 libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0x00007ff548379000)
 libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007ff54814f000)
 libjasper.so.1 => /usr/lib/x86_64-linux-gnu/libjasper.so.1 (0x00007ff547ef8000)
 libhdf5.so.6 => /usr/lib/libhdf5.so.6 (0x00007ff547953000)
 libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007ff547730000)
 libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007ff54748e000)
 libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007ff54726d000)
 libgif.so.4 => /usr/lib/libgif.so.4 (0x00007ff547064000)
 libjpeg.so.62 => /usr/lib/x86_64-linux-gnu/libjpeg.so.62 (0x00007ff546e40000)
 libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007ff546c18000)
 libnetcdf.so.6 => /usr/lib/libnetcdf.so.6 (0x00007ff5468dd000)
 libpq.so.5 => /usr/lib/libpq.so.5 (0x00007ff5466b5000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff54649c000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff54627e000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff54607a000)
 libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x00007ff545e25000)
 libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 (0x00007ff545a1b000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff545796000)
 /lib64/ld-linux-x86-64.so.2 (0x00007ff54a0c8000)
 libgeos-3.2.2.so => /usr/lib/libgeos-3.2.2.so (0x00007ff545438000)
 libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007ff54522e000)
 libhdf5_hl.so.6 => /usr/lib/libhdf5_hl.so.6 (0x00007ff544ffb000)
 libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007ff544da8000)
 libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007ff544a19000)
 libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007ff544754000)
 libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007ff544550000)
 libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007ff54431b000)
 libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007ff5440e1000)
 libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007ff543e96000)
 libidn.so.11 => /usr/lib/libidn.so.11 (0x00007ff543c63000)
 liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007ff543a54000)
 librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff54384c000)
 libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007ff5435ab000)
 libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007ff543330000)
 libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007ff543109000)
 libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007...

Read more...

Changed in gdal (Ubuntu):
status: New → Confirmed
tags: added: natty
Revision history for this message
Johan Van de Wauw (johanvdw) wrote :

I've confirmed this bug:
also shlibs gives no reference to libxerces anymore: http://packages.ubuntu.com/natty/libgdal1-1.6.0
although it does on maverick and debian squeeze. Nothing else in the build system seems to have changed, except the last two rebuilds.

Revision history for this message
Anita Graser (anita-graser-at) wrote :

Can you tell me if it is realistic to wait for a fix or should I tell users to use ubuntugis for now?

Revision history for this message
Johan Van de Wauw (johanvdw) wrote :

From the buidlog: https://launchpadlibrarian.net/63483840/buildlog_ubuntu-natty-i386.gdal_1.6.3-4build3_BUILDING.txt.gz

checking for Xerces C++ Parser headers in /usr/include and /usr/include/xercesc... found
checking for Xerces C++ Parser libraries... not found
checking for Xerces C++ Parser... no

If I rebuild using pbuilder xerces is found - so rebuilding seems to solve the bug

@Anita: not sure - I'll try to grab some attention on IRC today, than it might be fixed within one week. Otherwise I think ubuntugis is the better option.

description: updated
Revision history for this message
Johann Wagner (meles) wrote :

Is there a workaround for this bug yet?
I'm still not able to open gml files in Quantum GIS 1.7.0 on Ubuntu Natty.

Changed in gdal (Ubuntu Natty):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This only affects Natty. Opening as an SRU in Natty. Looks like a rebuild will do it.

Changed in gdal (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Actually I was mistaken, this also affects Oneiric.. there's no dependency on libxerces there either.

Changed in gdal (Ubuntu):
status: Fix Released → Confirmed
importance: Undecided → High
Changed in gdal (Ubuntu):
status: Confirmed → Triaged
Changed in gdal:
status: Unknown → New
Changed in gdal (Ubuntu):
assignee: nobody → Clint Byrum (clint-fewbar)
Changed in gdal (Ubuntu Natty):
assignee: nobody → Clint Byrum (clint-fewbar)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdal - 1.7.3-5ubuntu1

---------------
gdal (1.7.3-5ubuntu1) oneiric; urgency=low

  * d/control, d/rules, d/patches/fix-xerces: Patching m4 macro to
    find xerces properly with --as-needed. (LP: #786790) Added
    dh_autoreconf to pickup patches m4 macro.
 -- Clint Byrum <email address hidden> Tue, 16 Aug 2011 14:11:49 -0700

Changed in gdal (Ubuntu):
status: Triaged → Fix Released
Changed in gdal:
status: New → Fix Released
Changed in gdal (Debian):
status: Unknown → New
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello uhu, or anyone else affected,

Accepted gdal into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in gdal (Ubuntu Natty):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
uhu (w2q) wrote :

Up to now (26. Aug, 9h am), I cannot find any fix with some name like gdal-bin or similar, although I have activated -proposed. Perhaps I have to try it again tomorrow. Or can you tell me what would be the name of that fix?

But THANK YOU in advance for fixing this bug, this is great.

Revision history for this message
Johan Van de Wauw (johanvdw) wrote : Re: [Bug 786790] Re: Xerces is not linked in GDAL-Util-Package

On Fri, Aug 26, 2011 at 9:05 AM, uhu <email address hidden> wrote:
> Up to now (26. Aug, 9h am), I cannot find any fix with some name like
> gdal-bin or similar, although I have activated -proposed. Perhaps I
> have to try it again tomorrow. Or can you tell me what would be the
> name of that fix?
Uhu,

What do you see when you run:
apt-cache showpkg gdal-bin

Perhaps you have a newer version of gdal-bin installed from eg
ubuntugis/unstable which is blocking the upgrade of gdal-bin?
In that case you can try:
sudo aptitude install libgdal1-1.6.0/natty-proposed
sudo aptitude install gdal-bin/natty-proposed

Anyway:
I just did the same thing, and it seems the error with GML is
definitely fixed. I'm still doing some random other tests to be sure
there are no regressions.

Johan

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Excerpts from uhu's message of Fri Aug 26 07:05:02 UTC 2011:
> Up to now (26. Aug, 9h am), I cannot find any fix with some name like
> gdal-bin or similar, although I have activated -proposed. Perhaps I
> have to try it again tomorrow. Or can you tell me what would be the
> name of that fix?

Hi uhu. I assume then that you're on Natty (11.04) ?

What version of libgdal1-1.6.0 do you have installed?

try this to find out:

dpkg -l libgdal1-1.6.0

The fixed version is

1.6.3-4build4

Revision history for this message
uhu (w2q) wrote :

It works!

Thank you, I am able to load gml-files!
Somehow I already had the fixed version installed.

Here is my output

dpkg -l libgdal1-1.6.0
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Beschreibung
+++-==============-==============-============================================
ii libgdal1-1.6.0 1.6.3-4build4 Geospatial Data Abstraction Library

apt-cache showpkg gdal-bin
Package: gdal-bin
Versions:
1.6.3-4build4 (/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_natty-proposed_universe_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_natty-proposed_universe_binary-i386_Packages
                  MD5: 9b991dff688fb509bc873ba688a660b5

1.6.3-4build3 (/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages)
 Description Language: de
                 File: /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_natty_universe_i18n_Translation-de
                  MD5: 9b991dff688fb509bc873ba688a660b5
 Description Language:
                 File: /var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_natty_universe_binary-i386_Packages
                  MD5: 9b991dff688fb509bc873ba688a660b5

Reverse Depends:
  thuban,gdal-bin
  science-geography,gdal-bin
  qlandkartegt,gdal-bin
  libgeotiff1.2,gdal-bin
  libgdal1-1.6.0-grass,gdal-bin
  grass,gdal-bin
  gis-workstation,gdal-bin
  geotiff-bin,gdal-bin
  dans-gdal-scripts,gdal-bin
Dependencies:
1.6.3-4build4 - libc6 (2 2.4) libgcc1 (2 1:4.1.1) libgdal1-1.6.0 (0 (null)) libstdc++6 (2 4.1.1) python-gdal (0 (null))
1.6.3-4build3 - libc6 (2 2.4) libgcc1 (2 1:4.1.1) libgdal1-1.6.0 (0 (null)) libstdc++6 (2 4.1.1) python-gdal (0 (null))
Provides:
1.6.3-4build4 -
1.6.3-4build3 -
Reverse Provides:

Revision history for this message
Anita Graser (anita-graser-at) wrote :

Thanks. Opening GML files on Natty works again.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdal - 1.6.3-4build4

---------------
gdal (1.6.3-4build4) natty-proposed; urgency=low

  * Rebuild to pick up libxerces (LP: #786790)
 -- Clint Byrum <email address hidden> Mon, 15 Aug 2011 11:55:04 -0700

Changed in gdal (Ubuntu Natty):
status: Fix Committed → Fix Released
Changed in gdal (Debian):
status: New → Fix Released
Revision history for this message
annalisapg (annalisa-minelli) wrote :

I just compiled my Gdals 1.10.0 with xerces and expat support.. and I still can't get .gml support - is there any other experiencing this problem?
Thanks

Revision history for this message
Prasanna Dahal (prasanna307) wrote :

I am experiencing the same issue in my Centos 6.6 machine, with Gdal 1.11.1

When I try :
ogr2ogr -f "ESRI" abc.shp temp_vec.gml

The error I get is:

ERROR 1: Unable to create Xerces C++ or Expat based GML reader, Xerces or Expat support
not configured into GDAL/OGR.
ERROR 1: File temp_vec.gml appears to be GML but the GML reader can't
be instantiated, likely because Xerces or Expat support wasn't
configured in.
FAILURE:
Unable to open datasource `temp_vec.gml' with the following drivers.
  -> ESRI Shapefile
  -> MapInfo File
  -> UK .NTF
  -> SDTS
  -> TIGER
  -> S57
  -> DGN
  -> VRT
  -> REC
  -> Memory
  -> BNA
  -> CSV
  -> GML
  -> GPX
  -> KML
  -> GeoJSON
  -> GMT
  -> WAsP
  -> PCIDSK
  -> OpenFileGDB
  -> XPlane
  -> AVCBin
  -> AVCE00
  -> DXF
  -> Geoconcept
  -> GeoRSS
  -> GPSTrackMaker
  -> PGDump
  -> GPSBabel
  -> SUA
  -> OpenAir
  -> PDS
  -> WFS
  -> HTF
  -> AeronavFAA
  -> EDIGEO
  -> GFT
  -> GME
  -> SVG
  -> CouchDB
  -> Idrisi
  -> ARCGEN
  -> SEGUKOOA
  -> SEGY
  -> ElasticSearch
  -> PDF
  -> CartoDB
  -> SXF

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.