[MacPorts] #73696: poppler @26.02.0_0: Undefined symbols __ZN5GpgME4Data8toStringB5cxx11Ev __ZNK5GpgME5Error11asStdStringB5cxx11Ev
MacPorts
noreply at macports.org
Thu Aug 27 19:20:31 UTC 2026
#73696: poppler @26.02.0_0: Undefined symbols __ZN5GpgME4Data8toStringB5cxx11Ev
__ZNK5GpgME5Error11asStdStringB5cxx11Ev
-------------------------+-------------------------------------------------
Reporter: | Owner: dbevans
jrandall814 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.12.4
Resolution: | Keywords: lion mountainlion mavericks
Port: poppler | yosemite elcapitan sierra highsierra mojave
-------------------------+-------------------------------------------------
Comment (by JULWAL1):
Recently, a new upstream version of Poppler was released (26.08.0)
I edited two sections of the Portfile (that I shared above) to:
{{{
version 26.08.0
}}}
and
{{{
checksums rmd160 48d9db233c40b16264dda40ca18178981d7adf4a \
sha256
dc906e68cea698109706ac6aa3d2c9d4512fcfcac42d90b8afcda486d1b9abd0 \
size 2031352
}}}
and I then managed to compile it successfully without any errors.
The patch file: ''patch-CMakeLists.txt-fix-boost.diff'' did change for
''Poppler 26.05.0'' onwards:
{{{
--- CMakeLists.txt.orig 2026-05-18 16:18:23.000000000 +0100
+++ CMakeLists.txt 2026-05-18 16:27:13.000000000 +0100
@@ -235,7 +235,7 @@
macro_optional_find_package(Cairo ${CAIRO_VERSION})
if (ENABLE_BOOST)
- find_package(Boost ${BOOST_VERSION} CONFIG)
+ find_package(Boost 1.74.0 MODULE)
if(Boost_FOUND)
set(USE_BOOST_HEADERS ON)
else()
}}}
Before I shared the Portfile in question, I added the following section
that I borrowed from the Portfile from ''libheif 1.23.x'', as I thought is
was relevant.
{{{
platform darwin {
if {${os.major} >= 10 && [string match *clang* ${configure.compiler}]}
{
# Fix for error: non-portable path to file <DAV1D/xxx.h> and
<AOM/xxx.h>
# https://trac.macports.org/ticket/67404
# Flags are Clang-specific, they break build with GCC.
configure.cxxflags-append \
-Wno-nonportable-include-path \
-Wno-error=nonportable-include-path \
-Wno-unknown-warning-option \
-Wno-error=unknown-warning-option
}
}
}}}
These are the important parts that I added/changed to get it to compile
correctly or macOS Sierra (10.12):
{{{
configure.cxxflags-append \
-D_LIBCPP_DISABLE_AVAILABILITY
}}}
and
{{{
# Tell the legacy support module to seamlessly bridge the standard library
paths
legacysupport.newest_darwin_requires_legacy 18
legacysupport.use_mp_libcxx no
}}}
and
{{{
platform darwin {
if {${os.major} < 17} {
configure.ldflags-append -L${prefix}/lib/libcxx
-Wl,-rpath,${prefix}/lib/libcxx
}
}
}}}
Maybe the logic needs changing for 10.11 or 10.13
Also, on 10.12, I have the following installed:
{{{
$ echo ; xcodebuild -version && xcodebuild -showsdks ; echo ; xcodebuild
-sdk macosx -version ; echo ; xcrun --sdk macosx --show-sdk-path ; echo ;
/usr/bin/clang -isysroot "$(xcrun --sdk macosx --show-sdk-path)" -v ; echo
; /usr/bin/clang -isysroot
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" -v
Xcode 9.2
Build version 9C40b
macOS SDKs:
macOS 10.13 -sdk macosx10.13
MacOSX10.13.sdk - macOS 10.13 (macosx10.13)
SDKVersion: 10.13
Path:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
PlatformVersion: 1.1
PlatformPath:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
ProductBuildVersion: 17C76
ProductCopyright: 1983-2017 Apple Inc.
ProductName: Mac OS X
ProductUserVisibleVersion: 10.13.2
ProductVersion: 10.13.2
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: warning: argument unused during compilation: '-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk'
[-Wunused-command-line-argument]
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: warning: argument unused during compilation: '-isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wunused-command-
line-argument]
}}}
--
Ticket URL: <https://trac.macports.org/ticket/73696#comment:34>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list