Opened 11 hours ago

Closed 11 hours ago

#71106 closed update (duplicate)

poppler: Update to @24.06.1 or later to fix fail to build with "incomplete definition of type 'std::char_traits<unsigned short>'"

Reported by: jlargentaye (John de Largentaye) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans), mascguy (Christopher Nielsen)
Port: poppler

Description

Poppler releases 24.06.1 (2024-06-12) and later contain what I believe is a fix [1] for a build issue in the latest beta versions of Xcode which removes deprecated functionality (see attached log), which manifests as, succinctly:

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.cpp:30:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.h:32:
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk/usr/include/c++/v1/string:2221:16: error: incomplete definition of type 'std::char_traits<unsigned short>'
:info:build  2221 |     traits_type::assign(__p[__newsz], value_type());
:info:build       |     ~~~~~~~~~~~^~
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk/usr/include/c++/v1/string:2368:3: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>'.          <------ USING char_traits still
:info:build  2368 |   traits_type::copy(std::__to_address(__p), __s, __sz + 1);
:info:build       |   ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk/usr/include/c++/v1/string:1005:7: note: in instantiation of member function 'std::basic_string<unsigned short>::__init_copy_ctor_external' requested here
:info:build  1005 |       __init_copy_ctor_external(std::__to_address(__str.__get_long_pointer()), __str.__get_long_size());
:info:build       |       ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.h:101:26: note: in instantiation of member function 'std::basic_string<unsigned short>::basic_string' requested here
:info:build   101 | class POPPLER_CPP_EXPORT ustring : public std::basic_string<unsigned short>
:info:build       |                          ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.cpp:304:12: note: in implicit copy constructor for 'poppler::ustring' first required here
:info:build   304 |     return ret;
:info:build       |            ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
:info:build    23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
:info:build       |                             ^
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.cpp:30:
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-24.04.0/cpp/poppler-global.h:32:
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX16.0.sdk/usr/include/c++/v1/string:2368:14: error: incomplete definition of type 'std::char_traits<unsigned short>'
:info:build  2368 |   traits_type::copy(std::__to_address(__p), __s, __sz + 1);
:info:build       |   ~~~~~~~~~~~^~
:info:build 18 errors generated.

Please integrate that version of Poppler or later to address the build issue.

[1] https://gitlab.freedesktop.org/poppler/poppler/-/commit/b4ac7d9a

Attachments (1)

main.log.bz2 (105.2 KB) - added by jmroot (Joshua Root) 11 hours ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 11 hours ago by jlargentaye (John de Largentaye)

Hi, I accidentally uploaded the wrong file, log.org, which contains private information. Is it possible to delete it?

comment:2 in reply to:  description Changed 11 hours ago by ryandesign (Ryan Carsten Schmidt)

Cc: dbevans mascguy added
Resolution: duplicate
Status: newclosed
Summary: Update poppler to @24.06.1 or later to fix fail to build with "incomplete definition of type 'std::char_traits<unsigned short>'"poppler: Update to @24.06.1 or later to fix fail to build with "incomplete definition of type 'std::char_traits<unsigned short>'"

Replying to jlargentaye:

Please integrate that version of Poppler or later to address the build issue.

Duplicate of #71105.

Replying to jlargentaye:

Hi, I accidentally uploaded the wrong file, log.org, which contains private information. Is it possible to delete it?

I deleted it.

Changed 11 hours ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added
Note: See TracTickets for help on using tickets.