NetBSD Problem Report #58285

From he@smistad.uninett.no  Sat May 25 22:11:39 2024
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C62201A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 May 2024 22:11:39 +0000 (UTC)
Message-Id: <20240525221133.8F31143EEB5@smistad.uninett.no>
Date: Sun, 26 May 2024 00:11:33 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: qt6-qttools fails to build on NetBSD/amd64 10.0 user-land
X-Send-Pr-Version: 3.95

>Number:         58285
>Category:       pkg
>Synopsis:       qt6-qttools fails to build on NetBSD/amd64 10.0 user-land
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 25 22:15:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Wed Aug 14 15:35:01 +0000 2024
>Originator:     he@NetBSD.org
>Release:        NetBSD 10.0
>Organization:
	I try...
>Environment:
System: NetBSD xxxx.xxxx.uninett.no 10.99.4 NetBSD 10.99.4 (GENERIC) #4: Tue Jun 13 18:53:05 UTC 2023  he@xxxx.xxxx.uninett.no:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	I'm running a 10.99.4 kernel with (now) 10.0 user-land.
	For me, qt6-qttools fails to build, ref. pkg/58249, but
	this build failure deserves its own PR.

In file included from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:80:10: error: 'void DocumentContainerPrivate::draw_background(litehtml::uint_ptr, const std::vector<litehtml::background_paint>&)' marked 'override', but does not override
   80 |     void draw_background(litehtml::uint_ptr hdc,
      |          ^~~~~~~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:94:10: error: 'void DocumentContainerPrivate::set_clip(const litehtml::position&, const litehtml::border_radiuses&)' marked 'override', but does not override
   94 |     void set_clip(const litehtml::position &pos,
      |          ^~~~~~~~
[ 25%] Built target qtdiag
[ 26%] Building CXX object src/linguist/lupdate/CMakeFiles/lupdate.dir/__/shared/qm.cpp.o
[ 26%] Building CXX object src/linguist/lupdate/CMakeFiles/lupdate.dir/__/shared/qph.cpp.o
[ 26%] Building CXX object src/assistant/help/CMakeFiles/Help.dir/qfilternamedialog.cpp.o
[ 26%] Building CXX object src/qdbus/qdbusviewer/CMakeFiles/qdbusviewer.dir/main.cpp.o
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'bool isVisible(const ptr&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:54:21: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'css'
   54 |     return element->css().get_display() != litehtml::display_none
      |                     ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:55:24: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'css'
   55 |            && element->css().get_visibility() == litehtml::visibility_visible;
      |                        ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: At global scope:
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:58:18: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
   58 | static litehtml::elements_list path(const litehtml::element::ptr &element)
      |                  ^~~~~~~~~~~~~
      |                  element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:72:33: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
   72 | getCommonParent(const litehtml::elements_list &a, const litehtml::elements_list &b)
      |                                 ^~~~~~~~~~~~~
      |                                 element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:72:67: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
   72 | getCommonParent(const litehtml::elements_list &a, const litehtml::elements_list &b)
      |                                                                   ^~~~~~~~~~~~~
      |                                                                   element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'std::tuple<std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element> > getCommonParent(const int&, const int&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:75:18: error: request for member 'cbegin' in 'a', which is of non-class type 'const int'
   75 |     auto ait = a.cbegin();
      |                  ^~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:76:18: error: request for member 'cbegin' in 'b', which is of non-class type 'const int'
   76 |     auto bit = b.cbegin();
      |                  ^~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:77:21: error: request for member 'cend' in 'a', which is of non-class type 'const int'
   77 |     while (ait != a.cend() && bit != b.cend()) {
      |                     ^~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:77:40: error: request for member 'cend' in 'b', which is of non-class type 'const int'
   77 |     while (ait != a.cend() && bit != b.cend()) {
      |                                        ^~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:79:39: error: could not convert '{parent, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::tuple<std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element> >'
   79 |             return {parent, *ait, *bit};
      |                                       ^
      |                                       |
      |                                       <brace-enclosed initializer list>
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:85:23: error: request for member 'cend' in 'a', which is of non-class type 'const int'
   85 |             (ait != a.cend() ? *ait : litehtml::element::ptr()),
      |                       ^~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:86:23: error: request for member 'cend' in 'b', which is of non-class type 'const int'
   86 |             (bit != b.cend() ? *bit : litehtml::element::ptr())};
      |                       ^~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:86:64: error: could not convert '{parent, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::tuple<std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element>, std::shared_ptr<litehtml::element> >'
   86 |             (bit != b.cend() ? *bit : litehtml::element::ptr())};
      |                                                                ^
      |                                                                |
      |                                                                <brace-enclosed initializer list>
[ 26%] Building CXX object src/assistant/help/CMakeFiles/Help.dir/qhelp_global.cpp.o
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'std::pair<Selection::Element, Selection::Element> getStartAndEnd(const Selection::Element&, const Selection::Element&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:97:21: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
   97 |     const litehtml::elements_list aPath = path(a.element);
      |                     ^~~~~~~~~~~~~
      |                     element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:98:21: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
   98 |     const litehtml::elements_list bPath = path(b.element);
      |                     ^~~~~~~~~~~~~
      |                     element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:102:64: error: 'aPath' was not declared in this scope
  102 |     std::tie(commonParent, aBranch, bBranch) = getCommonParent(aPath, bPath);
      |                                                                ^~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:102:71: error: 'bPath' was not declared in this scope
  102 |     std::tie(commonParent, aBranch, bBranch) = getCommonParent(aPath, bPath);
      |                                                                       ^~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:112:62: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'children'; did you mean 'litehtml::elements_vector litehtml::element::m_children'? (not accessible from this context)
  112 |     for (const litehtml::element::ptr &child : commonParent->children()) {
      |                                                              ^~~~~~~~
In file included from /usr/pkg/include/litehtml/html_tag.h:4,
                 from /usr/pkg/include/litehtml/html.h:17,
                 from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/element.h:27:22: note: declared protected here
   27 |   elements_vector    m_children;
      |                      ^~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'litehtml::element::ptr firstLeaf(const ptr&, const ptr&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:130:41: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'children'; did you mean 'litehtml::elements_vector litehtml::element::m_children'? (not accessible from this context)
  130 |     while (current != stop && !current->children().empty())
      |                                         ^~~~~~~~
In file included from /usr/pkg/include/litehtml/html_tag.h:4,
                 from /usr/pkg/include/litehtml/html.h:17,
                 from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/element.h:27:22: note: declared protected here
   27 |   elements_vector    m_children;
      |                      ^~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:131:28: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'children'; did you mean 'litehtml::elements_vector litehtml::element::m_children'? (not accessible from this context)
  131 |         current = current->children().front();
      |                            ^~~~~~~~
In file included from /usr/pkg/include/litehtml/html_tag.h:4,
                 from /usr/pkg/include/litehtml/html.h:17,
                 from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/element.h:27:22: note: declared protected here
   27 |   elements_vector    m_children;
      |                      ^~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'litehtml::element::ptr nextLeaf(const ptr&, const ptr&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:144:19: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'is_root'
  144 |     if (!current->is_root()) {
      |                   ^~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:147:25: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
  147 |         const litehtml::elements_list &children = parent->children();
      |                         ^~~~~~~~~~~~~
      |                         element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:148:37: error: 'children' was not declared in this scope
  148 |         auto childIt = std::find_if(children.cbegin(),
      |                                     ^~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'Selection::Element selectionDetails(const ptr&, const QString&, const QPoint&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:170:19: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'children'; did you mean 'litehtml::elements_vector litehtml::element::m_children'? (not accessible from this context)
  170 |     if (!element->children().empty())
      |                   ^~~~~~~~
In file included from /usr/pkg/include/litehtml/html_tag.h:4,
                 from /usr/pkg/include/litehtml/html.h:17,
                 from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/element.h:27:22: note: declared protected here
   27 |   elements_vector    m_children;
      |                      ^~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:172:42: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'css'
  172 |     const QFont &font = toQFont(element->css().get_font());
      |                                          ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'bool deepest_child_at_point(const ptr&, const QPoint&, const QPoint&, const std::function<bool(const std::shared_ptr<litehtml::element>&)>&, int)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:201:49: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'tag'
  201 |     if (!placement.size().isEmpty() && element->tag() != litehtml::_html_
      |                                                 ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:201:68: error: '_html_' is not a member of 'litehtml'
  201 |     if (!placement.size().isEmpty() && element->tag() != litehtml::_html_
      |                                                                    ^~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:202:21: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'tag'
  202 |         && element->tag() != litehtml::_body_ && !placement.contains(pos)) {
      |                     ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:202:40: error: '_body_' is not a member of 'litehtml'
  202 |         && element->tag() != litehtml::_body_ && !placement.contains(pos)) {
      |                                        ^~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:207:21: error: 'elements_list' in namespace 'litehtml' does not name a type; did you mean 'element_float'?
  207 |     const litehtml::elements_list &children = element->children();
      |                     ^~~~~~~~~~~~~
      |                     element_float
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:208:20: error: 'children' was not declared in this scope
  208 |     for (auto it = children.cbegin(); it != children.cend(); ++it) {
      |                    ^~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'QFont::Style toQFontStyle(litehtml::font_style)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:262:20: error: 'font_style_normal' is not a member of 'litehtml'; did you mean 'fontStyleNormal'?
  262 |     case litehtml::font_style_normal:
      |                    ^~~~~~~~~~~~~~~~~
      |                    fontStyleNormal
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:264:20: error: 'font_style_italic' is not a member of 'litehtml'; did you mean 'fontStyleItalic'?
  264 |     case litehtml::font_style_italic:
      |                    ^~~~~~~~~~~~~~~~~
      |                    fontStyleItalic
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In constructor 'DocumentContainer::DocumentContainer()':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:451:13: error: invalid new-expression of abstract class type 'DocumentContainerPrivate'
  451 |     : d(new DocumentContainerPrivate)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:58:7: note:   because the following virtual functions are pure within 'DocumentContainerPrivate':
   58 | class DocumentContainerPrivate final : public litehtml::document_container
      |       ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/html.h:48:19: note:     'virtual void litehtml::document_container::draw_background(litehtml::uint_ptr, const litehtml::background_paint&)'
   48 |   virtual void    draw_background(litehtml::uint_ptr hdc, const litehtml::background_paint& bg) = 0;
      |                   ^~~~~~~~~~~~~~~
/usr/pkg/include/litehtml/html.h:58:19: note:     'virtual void litehtml::document_container::set_clip(const litehtml::position&, const litehtml::border_radiuses&, bool, bool)'
   58 |   virtual void    set_clip(const litehtml::position& pos, const litehtml::border_radiuses& bdr_radius, bool valid_x, bool valid_y) = 0;
      |                   ^~~~~~~~
[ 26%] Automatic MOC and UIC for target Designer
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In member function 'void DocumentContainer::setDocument(const QByteArray&, DocumentContainerContext*)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:950:98: error: cannot convert 'const char*' to 'litehtml::context*'
  950 |                                                          context->d->masterCss.toUtf8().constData());
      |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                                                                  |
      |                                                                                                  const char*
In file included from /usr/pkg/include/litehtml/litehtml.h:5,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/document.h:90:132: note:   initializing argument 3 of 'static litehtml::document::ptr litehtml::document::createFromString(const tchar_t*, litehtml::document_container*, litehtml::context*, litehtml::css*)'
   90 |   static litehtml::document::ptr createFromString(const tchar_t* str, litehtml::document_container* objPainter, litehtml::context* ctx, litehtml::css* user_styles = nullptr);
      |                                                                                                                 ~~~~~~~~~~~~~~~~~~~^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In lambda function:
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:1138:54: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'tag'
 1138 |                                if (parent && parent->tag() == litehtml::_a_) {
      |                                                      ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:1138:73: error: '_a_' is not a member of 'litehtml'
 1138 |                                if (parent && parent->tag() == litehtml::_a_) {
      |                                                                         ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In lambda function:
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:1210:41: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'css'
 1210 |         const auto fontPtr = e.element->css().get_font();
      |                                         ^~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In member function 'void DocumentContainer::setDefaultFont(const QFont&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:1265:32: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'compute_styles'
 1265 |         d->m_document->root()->compute_styles();
      |                                ^~~~~~~~~~~~~~
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp: In function 'litehtml::element::ptr elementForY(int, const ptr&)':
/usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:1315:57: error: 'using element_type = class litehtml::element' {aka 'class litehtml::element'} has no member named 'children'; did you mean 'litehtml::elements_vector litehtml::element::m_children'? (not accessible from this context)
 1315 |     for (const litehtml::element::ptr &child : element->children()) {
      |                                                         ^~~~~~~~
In file included from /usr/pkg/include/litehtml/html_tag.h:4,
                 from /usr/pkg/include/litehtml/html.h:17,
                 from /usr/pkg/include/litehtml/litehtml.h:4,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:8,
                 from /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
/usr/pkg/include/litehtml/element.h:27:22: note: declared protected here
   27 |   elements_vector    m_children;
      |                      ^~~~~~~~~~
[ 26%] Linking CXX executable ../../../bin/lrelease
[ 26%] Building CXX object src/linguist/lupdate/CMakeFiles/lupdate.dir/__/shared/qrcreader.cpp.o
AutoUic: Detected locale "C" with character encoding "646", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
AutoUic: Detected locale "C" with character encoding "646", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
...
[ 40%] Built target lupdate
gmake: *** [Makefile:146: all] Error 2
*** Error code 2


>How-To-Repeat:
	Trying to build qt6-qttools-6.7.0.
>Fix:
	Yes, please.

>Release-Note:

>Audit-Trail:
From: Niclas Rosenvik <nros@netbsd.org>
To: he@NetBSD.org
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58285: qt6-qttools fails to build on NetBSD/amd64 10.0
 user-land
Date: Tue, 25 Jun 2024 18:30:52 +0200

 On Sat, 25 May 2024 22:15:00 +0000 (UTC)
 he@NetBSD.org wrote:

 > >Description:
 > 	I'm running a 10.99.4 kernel with (now) 10.0 user-land.
 > 	For me, qt6-qttools fails to build, ref. pkg/58249, but
 > 	this build failure deserves its own PR.
 > 
 > In file included from
 > /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
 > /usr/pkgsrc/devel/qt6-qttools/work/qttools-everywhere-src-6.7.0/src/assistant/qlitehtml/src/container_qpainter_p.h:80:10:
 > error: 'void
 > DocumentContainerPrivate::draw_background(litehtml::uint_ptr, const
 > std::vector<litehtml::background_paint>&)' marked 'override', but
 > does not override 80 |     void draw_background(litehtml::uint_ptr
 > hdc, |          ^~~~~~~~~~~~~~~

 I have test built qt6-qttools 6.7.2 with litehtml 0.9 and it builds
 fine on my machine (NetBSD 9) .
 To me these error messages have nothing to do with NetBSD 10 userland
 but the version of lithtml used.
 Are you sure that you are building against litehtml 0.9 from pkgsrc?
 litehtml has a commit (e455a0b50ff89b292193d247d3204384d9c46903) that
 removes draw_background that is newer than litehtml 0.9 or are you
 using litehtml 0.6? draw_background was introduced in litehtml 0.7 . So
 litehtml is not API stable.

 > >How-To-Repeat:
 > 	Trying to build qt6-qttools-6.7.0.
 > >Fix:
 > 	Yes, please.
 > 
 Check the version of litehtml installed on your machine and make sure it
 is litehtml 0.9 . If it is not update to 0.9 and try to build again.
 That might fix it.

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Wed, 14 Aug 2024 09:55:46 +0000
State-Changed-Why:
Could you do the steps suggested in the last answer and report back, please?


From: Havard Eidnes <he@NetBSD.org>
To: gnats-bugs@netbsd.org, bsiegert@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/58285 (qt6-qttools fails to build on NetBSD/amd64 10.0
 user-land)
Date: Wed, 14 Aug 2024 17:32:30 +0200 (CEST)

 > Could you do the steps suggested in the last answer and report back, =
 please?

 You're probably spot on, my host has:

 $ pkg_info | grep litehtml
 litehtml-0.6        Fast and lightweight HTML/CSS rendering engine
 $ =


 Will update & re-try.

 - H=E5vard

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.