Opened 4 months ago

Last modified 4 months ago

#70356 assigned defect

gdal-libkml linking failure: Undefined symbols: "__ZN9kmlengine4Href5ParseERKSs" etc.

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: Veence (Vincent), nilason (Nicklas Larsson), cooljeanius (Eric Gallager)
Port: gdal-libkml

Description

/opt/local/bin/g++-mp-14 -pipe -DGDAL_COMPILATION -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -I/opt/local/libexec/boost/1.76/include -D_GLIBCXX_USE_CXX11_ABI=0 -fvisibility=hidden -arch ppc -mmacosx-version-min=10.6 -bundle -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -o ../../../gdalplugins/ogr_LIBKML.so CMakeFiles/ogr_LIBKML.dir/ogrlibkmldriver.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmlfeaturestyle.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmllayer.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmlfeature.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmlgeometry.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmlstyle.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmldatasource.cpp.o CMakeFiles/ogr_LIBKML.dir/ogrlibkmlfield.cpp.o CMakeFiles/ogr_LIBKML.dir/for_driver_ogrlibkmldrivercore.cpp.o  -Wl,-rpath,/opt/local/lib ../../../libgdal.35.3.9.1.dylib /opt/local/lib/libkmlbase.dylib /opt/local/lib/libkmldom.dylib /opt/local/lib/libkmlengine.dylib /opt/local/lib/libminizip.dylib /opt/local/lib/liburiparser.dylib /opt/local/lib/libz.dylib /opt/local/lib/libexpat.1.9.2.dylib -lm
[ 98%] Linking CXX executable gdaltindex
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal-libkml/work/build/apps && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/gdaltindex.dir/link.txt --verbose=ON
Undefined symbols:
  "__ZN9kmlengine4Href5ParseERKSs", referenced from:
      __ZN9kmlengine4HrefC1ERKSs in ogrlibkmldatasource.cpp.o
  "__ZN6kmldom15SerializePrettyERKN5boost13intrusive_ptrINS_7ElementEEE", referenced from:
      __ZN19OGRLIBKMLDataSource8WriteKmlEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteKmzEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteKmzEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteKmzEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteDirEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteDirEv in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource8WriteDirEv in ogrlibkmldatasource.cpp.o
  "__ZN6kmldom5ParseERKSsPSs", referenced from:
      __ZL17StyleFromStyleURLRKN5boost13intrusive_ptrIN6kmldom8StyleMapEEERKSsP13OGRStyleTable in ogrlibkmlstyle.cpp.o
      __ZL14OGRLIBKMLParseRKSsPSs in ogrlibkmldatasource.cpp.o
  "__ZNK9kmlengine7KmzFile17ReadKmlAndGetPathEPSsS1_", referenced from:
      __ZN19OGRLIBKMLDataSource7OpenKmzEPKci in ogrlibkmldatasource.cpp.o
  "__ZN6kmldom7ParseNSERKSsPSs", referenced from:
      __ZL14OGRLIBKMLParseRKSsPSs in ogrlibkmldatasource.cpp.o
  "__ZN9kmlengine7KmzFile14OpenFromStringERKSs", referenced from:
      __ZN19OGRLIBKMLDataSource7OpenKmzEPKci in ogrlibkmldatasource.cpp.o
  "__ZNK9kmlengine7KmzFile8ReadFileEPKcPSs", referenced from:
      __ZN19OGRLIBKMLDataSource7OpenKmzEPKci in ogrlibkmldatasource.cpp.o
      __ZN19OGRLIBKMLDataSource7OpenKmzEPKci in ogrlibkmldatasource.cpp.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[2]: *** [gdalplugins/ogr_LIBKML.so] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal-libkml/work/build'
make[1]: *** [ogr/ogrsf_frmts/libkml/CMakeFiles/ogr_LIBKML.dir/all] Error 2

Attachments (1)

main.log (3.9 MB) - added by barracuda156 4 months ago.

Change History (2)

Changed 4 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 4 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.