[Bug 219190] graphics/gdal: ld error: undefined symbol

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 10 11:43:51 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219190

            Bug ID: 219190
           Summary: graphics/gdal: ld error: undefined symbol
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: ohartmann at walstatt.org
          Assignee: sunpoet at FreeBSD.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)

Updating recent ports tree on recent 12-CURRENT results in a
misconpilation/failure when linking, as shown below.

The system in question is FreeBSD 12.0-CURRENT #30 r317932: Mon May  8 06:49:29
CEST 2017 amd64, and ports tree is at  revision 440554.

The host is compiled with WITH_LLD_IS_LLD=yes!


[...]
c++ -std=gnu++11 -I/usr/ports/graphics/gdal/work/gdal-2.2.0/port
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/gcore
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/alg
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/ogr
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/ogr/ogrsf_frmts
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/gnm
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/apps -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -O2 -pipe -O3 -fPIC
-DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include
-fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include -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 -Wcomma -Wfloat-conversion -Wdocumentation
-Wno-documentation-deprecated-sync -Wunused-private-field -Wmissing-prototypes
-Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
-fno-operator-names -Wimplicit-fallthrough 
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/frmts/vrt -DGNM_ENABLED
-DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/port -I/usr/local/include -I/usr
-I/usr/include  -DGDAL_COMPILATION -I/usr/local/include/json-c
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/ogr/ogrsf_frmts/geojson
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/ogr/ogrsf_frmts/generic
-I/usr/ports/graphics/gdal/work/gdal-2.2.0/gnm -DHAVE_GEOS=1
-I/usr/local/include -c -o gdal_rasterize_bin.o gdal_rasterize_bin.cpp
c++ -std=gnu++11 -L/usr/local/lib -fstack-protector gdal_rasterize_bin.o 
-L/usr/ports/graphics/gdal/work/gdal-2.2.0 -lgdal  -L/usr/local/lib -lpoppler
-ljson-c -L/usr/local/lib -lSFCGAL -L/usr/local/lib -lgeos_c -L/usr/local/lib
-lexpat -lopenjp2 -ljasper -L/usr/local/lib -lnetcdf -lgif -ljpeg -lgeotiff
-ltiff -lpng -lcfitsio -L/usr/local/lib -lpq -llzma -lz -L/usr -L/usr/lib
-lpthread -lm -lrt -L/usr/local/lib   -L/usr/local/lib -lcurl                
-o gdal_rasterize
/usr/bin/ld: error: gdal_rasterize_bin.cpp:(function main): undefined symbol
'GDALDriverManager::GetDriverCount() const'
/usr/bin/ld: error: gdal_rasterize_bin.cpp:(function main): undefined symbol
'GDALDriverManager::GetDriverCount() const'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [GNUmakefile:106: gdal_rasterize] Error 1
gmake[3]: Leaving directory '/usr/ports/graphics/gdal/work/gdal-2.2.0/apps'
gmake[2]: *** [GNUmakefile:93: apps-target] Error 2
gmake[2]: Leaving directory '/usr/ports/graphics/gdal/work/gdal-2.2.0'
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list