[MacPorts] #66119: gnucash @4.11_1: gnc-main-window.c:80:10: fatal error: 'gtkmacintegration/gtkosxapplication.h' file not found
MacPorts
noreply at macports.org
Mon Oct 31 02:06:57 UTC 2022
#66119: gnucash @4.11_1: gnc-main-window.c:80:10: fatal error:
'gtkmacintegration/gtkosxapplication.h' file not found
----------------------+----------------------
Reporter: JDLH | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords:
Port: gnucash |
----------------------+----------------------
Description changed by JDLH:
Old description:
> When I try to `port install gnucash`, the building phase consistently
> fails when building **gnc-main-window.c** with the message, "fatal error:
> 'gtkmacintegration/gtkosxapplication.h' file not found". The indicated
> line reads, `#include <gtkmacintegration/gtkosxapplication.h>`. But that
> include file seems to exist. Another file, **binreloc.c**, has the same
> `#include` line, but builds without a problem.
>
> I have attached the main.log file for the failing build. The relevant
> failure part is (line breaks added for clarity):
> {{{
> :info:build [ 34%] Building C object gnucash/gnome-utils/CMakeFiles/gnc-
> gnome-utils.dir/gnc-main-window.c.o
> :info:build cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/gnucash/gnome-utils
> && /usr/bin/clang
> -DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H -DHAVE_GUILE22
> -DMAC_INTEGRATION -D_GNU_SOURCE -Dgnc_gnome_utils_EXPORTS
> -I/opt/local/libexec/boost/1.71/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
> _macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash
> /gnome-utils
> -I/opt/local/include/gtkmacintegration-gtk3/gtkmacintegration
> -I/opt/local/include/libsecret-1
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/gnucash/gnome-utils
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/app-utils
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/engine
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/common
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/common
> -I/opt/local/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/borrowed/libc
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/libgnucash/core-utils
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-utils
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/tax
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/bindings/guile
> -I/opt/local/include/guile/2.2 -I/opt/local/include/libxml2
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/backend/xml
> -isystem /opt/local/include/gtk-3.0 -isystem /opt/local/include/gio-
> unix-2.0 -isystem /opt/local/include/cairo
> -isystem /opt/local/include/pango-1.0 -isystem
> /opt/local/include/harfbuzz -isystem /opt/local/include/fribidi
> -isystem /opt/local/include/atk-1.0 -isystem
> /opt/local/include/pixman-1 -isystem /opt/local/include/freetype2
> -isystem /opt/local/include/gdk-pixbuf-2.0 -isystem
> /opt/local/include/libpng16 -isystem /opt/local/include/glib-2.0
> -isystem
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs
> _ports_gnome_gnucash/gnucash/work/glib-2.0/include
> -Wno-error=deprecated-declarations -Wno-error=parentheses
> -Wdeclaration-after-statement -Wno-pointer-sign -Wall
> -Wmissing-prototypes -Wmissing-declarations -Wno-unused -pipe -Os
> -DNDEBUG
> -I/opt/local/libexec/boost/1.71/include -isystem/opt/local/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
> arm64
> -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
> -mmacosx-version-min=12.0 -fPIC
> -Wno-deprecated-declarations -xobjective-c -std=gnu11 -MD
> -MT gnucash/gnome-utils/CMakeFiles/gnc-gnome-utils.dir/gnc-main-
> window.c.o
> -MF CMakeFiles/gnc-gnome-utils.dir/gnc-main-window.c.o.d -o CMakeFiles
> /gnc-gnome-utils.dir/gnc-main-window.c.o
> -c
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/gnucash/gnome-utils/gnc-
> main-window.c
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs
> _ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash/gnome-utils
> /gnc-main-window.c:80:10:
> fatal error: 'gtkmacintegration/gtkosxapplication.h' file not found
> :info:build #include <gtkmacintegration/gtkosxapplication.h>
> :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> :info:build 1 error generated.
> }}}
>
> Earlier, the following module builds successfully. It also includes the
> same header file (line breaks added for clarity):
> {{{
> :info:build [ 5%] Building C object libgnucash/core-utils/CMakeFiles
> /gnc-core-utils.dir/binreloc.c.o
> :info:build cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/libgnucash/core-utils
> && /usr/bin/clang
> -DG_LOG_DOMAIN=\"gnc.core-utils\" -DHAVE_CONFIG_H -DHAVE_GUILE22
> -DMAC_INTEGRATION -D_GNU_SOURCE -Dgnc_core_utils_EXPORTS
> -I/opt/local/libexec/boost/1.71/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
> _macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/common
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/common
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/build/libgnucash/core-utils
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-utils
> -I/opt/local/include/glib-2.0
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/glib-2.0/include
> -I/opt/local/include/gtkmacintegration-gtk3/gtkmacintegration
> -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0
> -I/opt/local/include/cairo -I/opt/local/include/pango-1.0
> -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi
> -I/opt/local/include/atk-1.0 -I/opt/local/include/pixman-1
> -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
> -I/opt/local/include/libpng16
> -Wno-error=deprecated-declarations -Wno-error=parentheses
> -Wdeclaration-after-statement -Wno-pointer-sign -Wall
> -Wmissing-prototypes -Wmissing-declarations -Wno-unused -pipe -Os
> -DNDEBUG -I/opt/local/libexec/boost/1.71/include
> -isystem/opt/local/include
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
> _gnome_gnucash/gnucash/work/gnucash-4.11
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
> arm64
> -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
> -mmacosx-version-min=12.0 -fPIC -xobjective-c
> -std=gnu11 -MD -MT libgnucash/core-utils/CMakeFiles/gnc-core-
> utils.dir/binreloc.c.o
> -MF CMakeFiles/gnc-core-utils.dir/binreloc.c.o.d -o CMakeFiles/gnc-
> core-utils.dir/binreloc.c.o
> -c
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_
> gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-
> utils/binreloc.c
> }}}
>
> I believe that there are only three modules which include this header
> file. One is compiled successfully, one triggers the above error, and one
> is not yet attempted.
> {{{
> % grep -Frn "gtkmacintegration/gtkosxapplication.h" $(port work gnucash)
> | head -5
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash
> /core-utils/binreloc.c:48:#include
> <gtkmacintegration/gtkosxapplication.h>
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash/gnome
> /window-reconcile.c:62:#include <gtkmacintegration/gtkosxapplication.h>
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash
> /gnome-utils/gnc-main-window.c:80:#include
> <gtkmacintegration/gtkosxapplication.h>
> }}}
>
> It sure looks to me like I have this header installed:
> {{{
> % ls -l /opt/local/include/gtkmacintegration-
> gtk3/gtkmacintegration/gtkosxapplication.h
> -rw-r--r-- 1 root wheel 6498 26 Jul 08:50 /opt/local/include
> /gtkmacintegration-gtk3/gtkmacintegration/gtkosxapplication.h
> }}}
>
> Expected behaviour: `port install gnucash` completes without error, and
> gnucash is installed.
New description:
When I try to `port install gnucash`, the building phase consistently
fails when building **gnc-main-window.c** with the message, "fatal error:
'gtkmacintegration/gtkosxapplication.h' file not found". The indicated
line reads, `#include <gtkmacintegration/gtkosxapplication.h>`. But that
include file seems to exist. Another file, **binreloc.c**, has the same
`#include` line, but builds without a problem.
I have attached the main.log file for the failing build. The relevant
failure part is (line breaks added for clarity):
{{{
:info:build [ 34%] Building C object gnucash/gnome-utils/CMakeFiles/gnc-
gnome-utils.dir/gnc-main-window.c.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/gnucash/gnome-utils
&& /usr/bin/clang
-DG_LOG_DOMAIN=\"gnc.gui\" -DHAVE_CONFIG_H -DHAVE_GUILE22
-DMAC_INTEGRATION -D_GNU_SOURCE -Dgnc_gnome_utils_EXPORTS
-I/opt/local/libexec/boost/1.71/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash
/gnome-utils
-I/opt/local/include/gtkmacintegration-gtk3/gtkmacintegration
-I/opt/local/include/libsecret-1
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/gnucash/gnome-utils
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/app-utils
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/engine
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/common
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/common
-I/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/borrowed/libc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/libgnucash/core-utils
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-utils
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/tax
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/bindings/guile
-I/opt/local/include/guile/2.2 -I/opt/local/include/libxml2
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/backend/xml
-isystem /opt/local/include/gtk-3.0 -isystem /opt/local/include/gio-
unix-2.0 -isystem /opt/local/include/cairo
-isystem /opt/local/include/pango-1.0 -isystem
/opt/local/include/harfbuzz -isystem /opt/local/include/fribidi
-isystem /opt/local/include/atk-1.0 -isystem /opt/local/include/pixman-1
-isystem /opt/local/include/freetype2
-isystem /opt/local/include/gdk-pixbuf-2.0 -isystem
/opt/local/include/libpng16 -isystem /opt/local/include/glib-2.0
-isystem
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs
_ports_gnome_gnucash/gnucash/work/glib-2.0/include
-Wno-error=deprecated-declarations -Wno-error=parentheses
-Wdeclaration-after-statement -Wno-pointer-sign -Wall
-Wmissing-prototypes -Wmissing-declarations -Wno-unused -pipe -Os
-DNDEBUG
-I/opt/local/libexec/boost/1.71/include -isystem/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
arm64
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-mmacosx-version-min=12.0 -fPIC
-Wno-deprecated-declarations -xobjective-c -std=gnu11 -MD
-MT gnucash/gnome-utils/CMakeFiles/gnc-gnome-utils.dir/gnc-main-
window.c.o
-MF CMakeFiles/gnc-gnome-utils.dir/gnc-main-window.c.o.d -o CMakeFiles
/gnc-gnome-utils.dir/gnc-main-window.c.o
-c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash/gnome-utils/gnc-main-
window.c
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs
_ports_gnome_gnucash/gnucash/work/gnucash-4.11/gnucash/gnome-utils
/gnc-main-window.c:80:10:
fatal error: 'gtkmacintegration/gtkosxapplication.h' file not found
:info:build #include <gtkmacintegration/gtkosxapplication.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
}}}
Earlier, the following module builds successfully. It also includes the
same header file (line breaks added for clarity):
{{{
:info:build [ 5%] Building C object libgnucash/core-utils/CMakeFiles/gnc-
core-utils.dir/binreloc.c.o
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/libgnucash/core-utils
&& /usr/bin/clang
-DG_LOG_DOMAIN=\"gnc.core-utils\" -DHAVE_CONFIG_H -DHAVE_GUILE22
-DMAC_INTEGRATION -D_GNU_SOURCE -Dgnc_core_utils_EXPORTS
-I/opt/local/libexec/boost/1.71/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/common
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/common
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/build/libgnucash/core-utils
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-utils
-I/opt/local/include/glib-2.0
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/glib-2.0/include
-I/opt/local/include/gtkmacintegration-gtk3/gtkmacintegration
-I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/fribidi
-I/opt/local/include/atk-1.0 -I/opt/local/include/pixman-1
-I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
-I/opt/local/include/libpng16
-Wno-error=deprecated-declarations -Wno-error=parentheses
-Wdeclaration-after-statement -Wno-pointer-sign -Wall
-Wmissing-prototypes -Wmissing-declarations -Wno-unused -pipe -Os
-DNDEBUG -I/opt/local/libexec/boost/1.71/include
-isystem/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports
_gnome_gnucash/gnucash/work/gnucash-4.11
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-mmacosx-version-min=12.0 -fPIC -xobjective-c
-std=gnu11 -MD -MT libgnucash/core-utils/CMakeFiles/gnc-core-
utils.dir/binreloc.c.o
-MF CMakeFiles/gnc-core-utils.dir/binreloc.c.o.d -o CMakeFiles/gnc-core-
utils.dir/binreloc.c.o
-c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_
gnome_gnucash/gnucash/work/gnucash-4.11/libgnucash/core-
utils/binreloc.c
}}}
I believe that there are only three modules which include this header
file. One is compiled successfully, one triggers the above error, and one
is not yet attempted. (Line breaks inserted in paths for legibility.)
{{{
% grep -Frn "gtkmacintegration/gtkosxapplication.h" $(port work gnucash)
| head -5
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/
libgnucash/core-utils/binreloc.c:48:#include
<gtkmacintegration/gtkosxapplication.h>
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/
gnucash/gnome/window-reconcile.c:62:#include
<gtkmacintegration/gtkosxapplication.h>
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org
_macports_release_tarballs_ports_gnome_gnucash/gnucash/work/gnucash-4.11/
gnucash/gnome-utils/gnc-main-window.c:80:#include
<gtkmacintegration/gtkosxapplication.h>
}}}
It sure looks to me like I have this header installed:
{{{
% ls -l /opt/local/include/gtkmacintegration-
gtk3/gtkmacintegration/gtkosxapplication.h
-rw-r--r-- 1 root wheel 6498 26 Jul 08:50 /opt/local/include
/gtkmacintegration-gtk3/gtkmacintegration/gtkosxapplication.h
}}}
Expected behaviour: `port install gnucash` completes without error, and
gnucash is installed.
--
--
Ticket URL: <https://trac.macports.org/ticket/66119#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list