Opened 14 months ago

Last modified 14 months ago

#67003 assigned defect

qpdf @11.2.0_0+gnutls: fatal error: 'string_view' file not found

Reported by: macdeport Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: yosemite Cc:
Port: qpdf

Description

qpdf/work/qpdf-11.3.0/libqpdf/OffsetInputSource.cc
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-11.3.0/libqpdf/NNTree.cc:1:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-11.3.0/libqpdf/qpdf/NNTree.hh:4:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-11.3.0/include/qpdf/QPDF.hh:35:10: fatal error: 'string_view' file not found
:info:build #include <string_view>
:info:build          ^
:info:build 1 error generated.
:info:build make[2]: *** [libqpdf/CMakeFiles/libqpdf_object.dir/NNTree.cc.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build [ 18%] Building CXX object libqpdf/CMakeFiles/libqpdf.dir/NNTree.cc.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/

Attachments (2)

main.log.zip (8.2 KB) - added by macdeport 14 months ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/main.log
main.log.230301.zip (8.3 KB) - added by macdeport 14 months ago.
with clang-15 selected

Download all attachments as: .zip

Change History (8)

Changed 14 months ago by macdeport

Attachment: main.log.zip added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/main.log

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: yosemite added
Owner: set to Schamschula
Status: newassigned
Summary: qpdf @11.2.0_0+gnutls fail to update on macOS 10.10.5qpdf @11.2.0_0+gnutls: fatal error: 'string_view' file not found

comment:2 Changed 14 months ago by Schamschula (Marius Schamschula)

Perhaps Yosemite needs to use newer version of clang, as string_view.h is provided by clang.

comment:3 Changed 14 months ago by macdeport

$/usr/bin/clang -v
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

$port installed clang*
The following ports are currently installed:
  clang-15 @15.0.7_1+analyzer+libstdcxx (active)
  clang_select @2.2_1 (active)

$sudo port select clang mp-clang-15
Password:
Selecting 'mp-clang-15' for 'clang' succeeded. 'mp-clang-15' is now active.

$which clang
/opt/local/bin

$path
user.cs_path: /usr/bin:/bin:/usr/sbin:/sbin
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/alain/.selenium:/Users/alain/Library/Python/3.9/bin

$clang -v
clang version 15.0.7
Target: x86_64-apple-darwin14.5.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-15/bin

Despite these settings qpdf fails to update (plese see main.log.230301.zip)

Last edited 14 months ago by macdeport (previous) (diff)

Changed 14 months ago by macdeport

Attachment: main.log.230301.zip added

with clang-15 selected

comment:4 Changed 14 months ago by Schamschula (Marius Schamschula)

The main.log is still showing

:info:configure -- The C compiler identification is AppleClang 7.0.2.7000181
:info:configure -- The CXX compiler identification is AppleClang 7.0.2.7000181

comment:5 Changed 14 months ago by Marius Schamschula <mschamschula@…>

In 5ad8537f863bf18f51201e15789981f181b9470f/macports-ports (master):

qpdf: use compiler.cxx_standard 2017

See: #67003

comment:6 Changed 14 months ago by Schamschula (Marius Schamschula)

Unfortunately, this only runs into a second issue:

"CMakeFiles/libqpdf.dir/qpdflogger-c.cc.o" CMakeFiles/libqpdf.dir/QPDFCrypto_gnutls.cc.o CMakeFiles/libqpdf.dir/AES_PDF_native.cc.o CMakeFiles/libqpdf.dir/MD5_native.cc.o CMakeFiles/libqpdf.dir/QPDFCrypto_native.cc.o CMakeFiles/libqpdf.dir/RC4_native.cc.o CMakeFiles/libqpdf.dir/SHA2_native.cc.o CMakeFiles/libqpdf.dir/rijndael.cc.o CMakeFiles/libqpdf.dir/sha2.c.o CMakeFiles/libqpdf.dir/sha2big.c.o  -Wl,-rpath,/opt/local/lib /opt/local/lib/libz.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libgnutls.dylib 
Undefined symbols for architecture x86_64:
  "typeinfo for std::bad_variant_access", referenced from:
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in QPDFValue.cc.o
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in QPDF_json.cc.o
  "vtable for std::bad_variant_access", referenced from:
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in QPDFValue.cc.o
      __ZNSt3__126__throw_bad_variant_accessB6v15007Ev in QPDF_json.cc.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64

Also see #65778

Note: See TracTickets for help on using tickets.