Bug 281137 - devel/qt6-base: reinstall to qt6-base-6.7.2_1 won't build
Summary: devel/qt6-base: reinstall to qt6-base-6.7.2_1 won't build
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-30 15:47 UTC by Oclair
Modified: 2025-03-04 14:22 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oclair 2024-08-30 15:47:19 UTC
[ 91% 1345/1468] /usr/bin/c++ -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 -DQGtk3ThemePlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/include -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.2/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/include -I/usr/ports/devel/qt6-base/work/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.2/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.2/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.2/QtGui -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
FAILED: src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o 
/usr/bin/c++ -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 -DQGtk3ThemePlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/include -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.2/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/include -I/usr/ports/devel/qt6-base/work/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.2/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.2/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.2/QtGui -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp:2:
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/moc_qgtk3interface_p.cpp:9:
/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/../../../../../../../qtbase-everywhere-src-6.7.2/src/plugins/platformthemes/gtk3/qgtk3interface_p.h:30:10: fatal error: 'gtk/gtk.h' file not found
   30 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/qt6-base
*** Error code 1
Comment 1 Oclair 2024-10-07 04:38:21 UTC
Same result for 6.7.3


rk/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.3/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.3 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.3/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.3 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.3/QtGui -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
FAILED: src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o 
/usr/bin/c++ -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 -DQGtk3ThemePlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/include -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.3/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/include -I/usr/ports/devel/qt6-base/work/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.7.3/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.3 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.7.3/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.3 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.7.3/QtGui -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp:2:
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/moc_qgtk3interface_p.cpp:9:
/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/../../../../../../../qtbase-everywhere-src-6.7.3/src/plugins/platformthemes/gtk3/qgtk3interface_p.h:30:10: fatal error: 'gtk/gtk.h' file not found
   30 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/qt6-base
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt6-base
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2024-12-29 18:01:33 UTC
Are building on the host without using an isolated environment?
Comment 3 Oclair 2025-03-04 05:36:33 UTC
(In reply to Gleb Popov from comment #2)
no
Comment 4 Oclair 2025-03-04 05:40:14 UTC
feedback submitted
Comment 5 Gleb Popov freebsd_committer freebsd_triage 2025-03-04 05:53:34 UTC
Your log hints that you do. What command do you use to run the build?
Comment 6 Oclair 2025-03-04 06:28:39 UTC
(In reply to Gleb Popov from comment #5)
production environment using ports and make

>Are building on the host without using an isolated environment?
Please use straightforward language to avoid confusion thanks!
Comment 7 Oclair 2025-03-04 06:36:25 UTC
qt6-base-6.8.2_2 on 13.4-RELEASE-p3 FreeBSD 13.4-RELEASE-p3 GENERIC amd64



[ 90% 1376/1523] /usr/bin/c++ -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 -DQGtk3ThemePlugin_EXPORTS -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_PLUGIN -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/include -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.8.2/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/include -I/usr/ports/devel/qt6-base/work/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.8.2/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.8.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.8.2/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.8.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.8.2/QtGui -I/usr/ports/devel/qt6-base/work/.build/include/QtDBus -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
FAILED: src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o 
/usr/bin/c++ -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_6 -DQGtk3ThemePlugin_EXPORTS -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_PLUGIN -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/include -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.8.2/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3 -I/usr/ports/devel/qt6-base/work/.build/include -I/usr/ports/devel/qt6-base/work/.build/include/QtCore -I/usr/ports/devel/qt6-base/work/qtbase-everywhere-src-6.8.2/mkspecs/freebsd-clang -I/usr/ports/devel/qt6-base/work/.build/src/corelib -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.8.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtCore/6.8.2/QtCore -I/usr/ports/devel/qt6-base/work/.build/include/QtGui -I/usr/ports/devel/qt6-base/work/.build/src/gui -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.8.2 -I/usr/ports/devel/qt6-base/work/.build/include/QtGui/6.8.2/QtGui -I/usr/ports/devel/qt6-base/work/.build/include/QtDBus -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -O2 -std=gnu++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -pthread -fcf-protection=full -ftrivial-auto-var-init=pattern -fstack-protector-strong -MD -MT src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -MF src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o.d -o src/plugins/platformthemes/gtk3/CMakeFiles/QGtk3ThemePlugin.dir/QGtk3ThemePlugin_autogen/mocs_compilation.cpp.o -c /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/mocs_compilation.cpp:2:
In file included from /usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/moc_qgtk3interface_p.cpp:9:
/usr/ports/devel/qt6-base/work/.build/src/plugins/platformthemes/gtk3/QGtk3ThemePlugin_autogen/EWIEGA46WW/../../../../../../../qtbase-everywhere-src-6.8.2/src/plugins/platformthemes/gtk3/qgtk3interface_p.h:30:10: fatal error: 'gtk/gtk.h' file not found
   30 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/qt6-base
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt6-base
root@nq3:/usr/ports/devel/qt6-base #
Comment 8 Gleb Popov freebsd_committer freebsd_triage 2025-03-04 06:44:00 UTC
Building in an isolated environment in most cases means using Poudriere to build packages. Poudriere creates a fresh jail for each package build, which ensures that no extra dependencies may be picked up by the build system.

Running make install in /usr/ports on the production system can not provide a clean isolated environment for the build and this is not officially supported way to update your packages.

Regarding your case, installing gtk3 should probably fix your problem.
Comment 9 Oclair 2025-03-04 08:42:21 UTC
(In reply to Gleb Popov from comment #8)
>Building in an isolated environment in most cases means using Poudriere to build packages. Poudriere creates a fresh jail for each package build, which ensures that no extra dependencies may be picked up by the build system.

>Running make install in /usr/ports on the production system can not provide a clean isolated environment for the build and this is not officially supported way to update your packages.

>Regarding your case, installing gtk3 should probably fix your problem.

Hi there,

These responses are not appropriate for the FreeBSD community.  They are provocative and manipulative.

I do have gtk3 in my system, your workaround suggestion is not logical because the port already checked gtk3 is installed, and if not would have installed it automatically.  That is how the FreeBSD ports system has been working for decades.

Kind Regards,
Jason
Comment 10 Gleb Popov freebsd_committer freebsd_triage 2025-03-04 08:53:51 UTC
(In reply to Oclair from comment #9)
> These responses are not appropriate for the FreeBSD community.  They are provocative and manipulative.

I was trying to help, but if you think so, I'll let someone else to do it.
Comment 11 Jason E. Hale freebsd_committer freebsd_triage 2025-03-04 12:13:16 UTC
All of the includes for gtk3 are missing. Qt gets these from pkgconf (pkg-config).

What is the output of `pkgconf --cflags gtk+3.0`?
Comment 12 Oclair 2025-03-04 12:27:17 UTC
# pkgconf --cflags gtk+3.0
Package gtk+3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+3.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk+3.0' not found

# pkg info gtk3
gtk3-3.24.43
Name           : gtk3
Version        : 3.24.43
Installed on   : Mon Jul 22 09:15:12 2024 CEST
Origin         : x11-toolkits/gtk30
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : x11-toolkits
Licenses       : LGPL20
Maintainer     : desktop@FreeBSD.org
WWW            : https://www.gtk.org/
Comment        : Gimp Toolkit for X11 GUI (current stable version)
Options        :
	ATK_BRIDGE     : on
	BROADWAY       : on
	COLORD         : on
	CUPS           : on
	DEBUG          : off
	DOCS           : on
	WAYLAND        : on
	X11            : on
Shared Libs required:
	libxkbcommon.so.0
	libwayland-egl.so.1
	libwayland-cursor.so.0
	libwayland-client.so.0
	libpangoft2-1.0.so.0
	libpangocairo-1.0.so.0
	libpango-1.0.so.0
	libintl.so.8
	libharfbuzz.so.0
	libgobject-2.0.so.0
	libgmodule-2.0.so.0
	libglib-2.0.so.0
	libgio-2.0.so.0
	libgdk_pixbuf-2.0.so.0
	libfribidi.so.0
	libfontconfig.so.1
	libepoxy.so.0
	libcups.so.2
	libcolord.so.2
	libcairo.so.2
	libcairo-gobject.so.2
	libatk-bridge-2.0.so.0
	libatk-1.0.so.0
	libXrandr.so.2
	libXinerama.so.1
	libXi.so.6
	libXfixes.so.3
	libXext.so.6
	libXdamage.so.1
	libXcursor.so.1
	libXcomposite.so.1
	libX11.so.6
Shared Libs provided:
	libgtk-3.so.0
	libgdk-3.so.0
	libgailutil-3.so.0
Annotations    :
	FreeBSD_version: 1303001
	build_timestamp: 2024-07-16T01:30:32+0000
	built_by       : poudriere-git-3.4.1-30-g79e3edcd
	cpe            : cpe:2.3:a:gnome:gtk:3.24.43:::::freebsd13:x64
	port_checkout_unclean: no
	port_git_hash  : 257616c3b9e
	ports_top_checkout_unclean: no
	ports_top_git_hash: 8f18cec99b9
	repo_type      : binary
	repository     : FreeBSD
Flat size      : 79.1MiB
Description    :
The GIMP ToolKit (GTK+) is a collection of GUI widgets.  GTK+
essentially provides the building blocks from which GUIs can be
built.  It is highly themable, and its functionality is highly
extensible.

GTK+-3 is a very stable release, similar only in design to GTK+-2.
GTK+-3 can coexist happily alongside GTK+-2, but applications are
written for one version or the other.
Comment 13 Jason E. Hale freebsd_committer freebsd_triage 2025-03-04 12:36:43 UTC
(In reply to Oclair from comment #12)
Sorry, I was trying to type that command on my phone and it kept falsely autocorrecting me every step of the way. There should have been another dash in there:

`pkgconf --cflags gtk+-3.0`
Comment 14 Oclair 2025-03-04 12:37:41 UTC
No problem!

# pkgconf --cflags gtk+-3.0
Package cairo-xlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-xlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'cairo-xlib', required by 'gdk-3.0', not found
Comment 15 Jason E. Hale freebsd_committer freebsd_triage 2025-03-04 12:51:49 UTC
(In reply to Oclair from comment #14)
It seems like you have the X11 option turned off in graphics/cairo because cairo-xlib is missing. Gtk3, which provides gdk-3.0 was built with X11 on, however, so it is missing that requisite library.

Try reinstalling graphics/cairo with X11 on.
Comment 16 Oclair 2025-03-04 12:56:32 UTC
Perhaps my make.conf file and make config settings indicating my system does not require x11 is making things dificult.  After all it is a vps hosted mail, web etc server originally setup in 2014-16 or so.

contained in /etc/make.conf

OPTIONS_UNSET+= X11 GUI CUPS NLS HAL GSSAPI_BASE KRB_BASE KERBEROS
OPTIONS_SET+= GSSAPI_NONE KRB_NONE
WITHOUT_X=YES
WITH_X=NO
ENABLE_GUI=NO

# cd  /usr/ports/graphics/cairo && make config
cairo-1.18.2,3
[X] DOCS Build and/or install documentation│ │  
[X] GLIB Enable GObject Functions Feature  │ │  
[ ] X11  X11 (graphics) support            │ │  


#pkg info cairo
cairo-1.18.2,3
Name           : cairo
Version        : 1.18.2,3
Installed on   : Sat Jan 25 03:11:38 2025 CET
Origin         : graphics/cairo
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : graphics
Licenses       : LGPL21, MPL11
Maintainer     : desktop@FreeBSD.org
WWW            : https://www.cairographics.org/
Comment        : Vector graphics library with cross-device output support
Options        :
	DOCS           : on
	GLIB           : on
	X11            : off
Shared Libs required:
	libz.so.6
	libthr.so.3
	libpng16.so.16
	libpixman-1.so.0
	libm.so.5
	liblzo2.so.2
	libgobject-2.0.so.0
	libglib-2.0.so.0
	libfreetype.so.6
	libfontconfig.so.1
	libdl.so.1
	libc.so.7
Shared Libs provided:
	libcairo.so.2
	libcairo-trace.so
	libcairo-script-interpreter.so.2
	libcairo-gobject.so.2
	libcairo-fdr.so
Annotations    :
	FreeBSD_version: 1304000
	cpe            : cpe:2.3:a:cairographics:cairo:1.18.2:::::freebsd13:x64
Flat size      : 3.70MiB
Description    :
Cairo is a vector graphics library with cross-device output
support. Currently supported output targets include the X Window
System and in-memory image buffers. PostScript and PDF file output is
planned. Cairo is designed to produce identical output on all output
media while taking advantage of display hardware acceleration when
available (eg. through the X Render Extension).

Cairo provides a stateful user-level API with capabilities similar to
the PDF 1.4 imaging model. Cairo provides operations including stroking
and filling Bezier cubic splines, transforming and compositing translucent
images, and antialiased text rendering.
Comment 17 Jason E. Hale freebsd_committer freebsd_triage 2025-03-04 13:07:02 UTC
(In reply to Oclair from comment #16)
The ATK_BRIDGE option in x11-toolkits/gtk30 is on by default and it implies X11, so even though you have X11 globally disabled, it still gets turned on. You could try keeping X11 off in graphics/cairo and unset ATK_BRIDGE and X11 in gtk30 and rebuild gtk30 as an alternative. Not a guarantee that's going to work, but at least we've discovered the main issue.

Things do get kind of murky when the default settings are changed because it's too difficult and time consuming to test every configuration. It's unfortunate.
Comment 18 Oclair 2025-03-04 14:21:03 UTC
(In reply to Jason E. Hale from comment #17)

>The ATK_BRIDGE option in x11-toolkits/gtk30 is on by default and it implies X11, so even though you have X11 globally disabled, it still gets turned on. You could try keeping X11 off in graphics/cairo and unset ATK_BRIDGE and X11 in gtk30 and rebuild gtk30 as an alternative. Not a guarantee that's going to work, but at least we've discovered the main issue.

>Things do get kind of murky when the default settings are changed because it's too difficult and time consuming to test every configuration. It's unfortunate.

Your suggestions resolved the issue I was having! Thank You!


while read t; do  install -l rs $t;  done </usr/ports/devel/qt6-base/work/.build/user_facing_tool_links.txt
/bin/rm -f -r /usr/ports/devel/qt6-base/work/stage/usr/local/lib/qt6/cmake
/bin/rm -f -r /usr/ports/devel/qt6-base/work/stage/usr/local/lib/qt6/pkgconfig
====> Compressing man pages (compress-man)
===>   Installing ldconfig configuration file
===>  Installing for qt6-base-6.8.2_2
===>  Checking if qt6-base is already installed
===>   Registering installation for qt6-base-6.8.2_2
Installing qt6-base-6.8.2_2...
===>  Cleaning for qt6-base-6.8.2_2