Opened 11 years ago

Closed 10 years ago

#39214 closed defect (fixed)

gdal 1.10 +spatialite fails

Reported by: basmac Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: stanimura
Port: gdal

Description (last modified by larryv (Lawrence Velázquez))

gdal 1.9.2-3 +spatialite made properly, with 1.10 all other variants work except spatiality

bash-3.2# port clean gdal
--->  Cleaning gdal
bash-3.2# port install gdal +curl+expat+geos+hdf5+jasper+lzma+mysql5+netcdf+odbc+opencl+poppler+sqlite3+python27+xerces+postgresql90+spatialite
--->  Computing dependencies for gdal
--->  Fetching archive for gdal
--->  Attempting to fetch gdal-1.10.0_1+curl+expat+geos+hdf5+jasper+lzma+mysql5+netcdf+odbc+opencl+poppler+postgresql90+python27+spatialite+sqlite3+xerces.darwin_12.x86_64.tbz2 from http://packages.macports.org/gdal
--->  Attempting to fetch gdal-1.10.0_1+curl+expat+geos+hdf5+jasper+lzma+mysql5+netcdf+odbc+opencl+poppler+postgresql90+python27+spatialite+sqlite3+xerces.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/gdal
--->  Attempting to fetch gdal-1.10.0_1+curl+expat+geos+hdf5+jasper+lzma+mysql5+netcdf+odbc+opencl+poppler+postgresql90+python27+spatialite+sqlite3+xerces.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gdal
--->  Fetching distfiles for gdal
--->  Verifying checksum(s) for gdal
--->  Extracting gdal
--->  Applying patches to gdal
--->  Configuring gdal
--->  Building gdal
Error: org.macports.build for port gdal returned: command execution failed
Please see the log file for port gdal for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gdal failed
bash-3.2#
bash-3.2# port installed spatialite
The following ports are currently installed:
  spatialite @2.3.1_1 (active)
bash-3.2#

Attachments (1)

main.log (3.5 MB) - added by basmac 11 years ago.

Change History (7)

Changed 11 years ago by basmac

Attachment: main.log added

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Keywords: gdal 1.10 spatialite removed
Owner: changed from macports-tickets@… to seanasy@…
Summary: gdal 1.10 and spatialite failsgdal 1.10 +spatialite fails

Thanks. In the future, please Cc relevant port maintainers.

This occurs at line 5108 in the log. The offending compilation line is just above it; I’m not going to quote it here because it’s 128,551 characters long.

:info:build Undefined symbols for architecture x86_64:
:info:build   "_sqlite3_column_table_name", referenced from:
:info:build       OGRSQLiteSelectLayer::OGRSQLiteSelectLayer(OGRSQLiteDataSource*, CPLString, sqlite3_stmt*, int, int) in ogrsqliteselectlayer.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [libgdal.la] Error 1

comment:2 Changed 11 years ago by julien.malik@…

Confirmed here. Interested in any workaround (except disabling spatialite), or at least some ideas : does spatialite/sqlite3 version is known to be too recent for gdal or is this something else ?

comment:3 Changed 11 years ago by Veence (Vincent)

The final link line misses -lsqlite, and therefore the SQLite dependency is not honored, whereby the error. It should be a very simple matter to patch this.

comment:4 Changed 11 years ago by stanimura

Cc: aruminat@… added

Cc Me!

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from seanasy@… to macports-tickets@…

This port is no longer maintained. See #44038.

comment:6 Changed 10 years ago by Veence (Vincent)

Resolution: fixed
Status: newclosed

I close this ticket. Please reopen with the current version if it still does not work.

Note: See TracTickets for help on using tickets.