Bug 243535 - graphics/gdal: 3.0.3: ld: error: undefined symbol: OSRSetAxisMappingStrategy
Summary: graphics/gdal: 3.0.3: ld: error: undefined symbol: OSRSetAxisMappingStrategy
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Sunpoet Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-23 08:03 UTC by O. Hartmann
Modified: 2020-01-23 20:23 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2020-01-23 08:03:33 UTC
On both recent CURRENT and 12-STABLE, compiling port graphics/gdal fails with the error shown below while updating an existing port. Ports tree is at r523900, procedure is portmaster -da.

[...]
c++ -I/usr/ports/graphics/gdal/work/gdal-3.0.3/port -I/usr/ports/graphics/gdal/work/gdal-3.0.3/gcore -I/usr/ports/graphics/gdal/work/gdal-3.0.3/alg -I/usr/ports/graphics/gdal/work/gdal-3.0.3/ogr -I/usr/ports/graphics/gdal/work/gdal-3.0.3/ogr/ogrsf_frmts -I/usr/ports/graphics/gdal/work/gdal-3.0.3/gnm -I/usr/ports/graphics/gdal/work/gdal-3.0.3/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -pipe  -fPIC -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -DLIBICONV_PLUG -isystem /usr/local/include -std=c++11  -fPIC  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wzero-as-null-pointer-constant -Wimplicit-fallthrough  -I/usr/ports/graphics/gdal/work/gdal-3.0.3/frmts/vrt -DGNM_ENABLED -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include -I/usr/ports/graphics/gdal/work/gdal-3.0.3/port -I/usr -I/usr/include  -DGDAL_COMPILATION -I/usr/local/include/json-c -I/usr/ports/graphics/gdal/work/gdal-3.0.3/ogr/ogrsf_frmts/geojson -I/usr/ports/graphics/gdal/work/gdal-3.0.3/ogr/ogrsf_frmts/generic -I/usr/ports/graphics/gdal/work/gdal-3.0.3/gnm -c -o gdallocationinfo.o gdallocationinfo.cpp
c++ -L/usr/local/lib -fstack-protector-strong  gdallocationinfo.o  -L/usr/ports/graphics/gdal/work/gdal-3.0.3 -lgdal  -lcrypto -ljson-c  -lsqlite3 -ljasper -lgif -ljpeg -lgeotiff -ltiff -lpng -lcfitsio -L/usr/local/lib -lpq  -llzma -lproj -lz -L/usr -L/usr/lib -lpthread -lm -lrt -ldl -L/usr/local/lib               -L/usr/local/lib -lxml2 -lz -L/usr/lib -llzma -L/usr/lib -lm       -o gdallocationinfo
ld: error: undefined symbol: OSRSetAxisMappingStrategy
>>> referenced by gdallocationinfo.cpp
>>>               gdallocationinfo.o:(main)

ld: error: undefined symbol: GDALGetSpatialRef
>>> referenced by gdallocationinfo.cpp
>>>               gdallocationinfo.o:(main)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [GNUmakefile:136: gdallocationinfo] Error 1
gmake[3]: Leaving directory '/usr/ports/graphics/gdal/work/gdal-3.0.3/apps'
gmake[2]: *** [GNUmakefile:112: apps-target] Error 2
gmake[2]: Leaving directory '/usr/ports/graphics/gdal/work/gdal-3.0.3'
*** Error code 1
Comment 1 Loïc Bartoletti freebsd_committer 2020-01-23 20:23:27 UTC
Confirmed with make -C /usr/ports/graphics/gdal clean build install.

As usual with this port, the solution is 
make -C /usr/ports/graphics/gdal deinstall clean build install