Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780813 - app-office/libreoffice-6.4.7.2: gtkframe.hxx:25:10: fatal error: gdk/gdkx.h: No such file or directory
Summary: app-office/libreoffice-6.4.7.2: gtkframe.hxx:25:10: fatal error: gdk/gdkx.h: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-07 11:51 UTC by Marcel Schilling
Modified: 2024-08-05 08:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=app-office/libreoffice-6.4.7.2::gentoo (emerge.info,14.73 KB, text/plain)
2021-04-07 11:51 UTC, Marcel Schilling
Details
gzip --best < /var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/build.log (build.log.gz,334.87 KB, application/gzip)
2021-04-07 11:54 UTC, Marcel Schilling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Schilling 2021-04-07 11:51:37 UTC
Created attachment 698187 [details]
emerge --info '=app-office/libreoffice-6.4.7.2::gentoo

LibreOffice consistently fails to install on my Gentoo system.

I suspect this is due to a missing dependency not caught in testing because I happen to run an 'unusual' system in the sense that I run a Wayland-only system.

Here is the error I get:

 * Working directory: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
 * S: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'

 * Messages for package app-office/libreoffice-6.4.7.2:

 * If you plan to use Base application you must enable USE base.
 * Without USE java, several wizards are not going to be available.

 * Messages for package media-fonts/urw-fonts-2.4.9:

 * If you upgraded from urw-fonts-2.1-r2 some fonts will look a bit
 * different. Take a look at bug #208990 if interested.

 * Messages for package app-text/libpaper-1.1.24_p5:

 * run e.g. "paperconfig -p letter" as root to use letter-pagesizes

 * Messages for package dev-libs/boost-1.75.0:

 * Boost.Regex is *extremely* ABI sensitive. If you get errors such as
 *
 *   undefined reference to `boost::re_detail_107500::cpp_regex_traits_implementation
 *     <char>::transform_primary[abi:cxx11](char const*, char const*) const'
 *
 * Then you need to recompile Boost and all its reverse dependencies
 * using the same toolchain. In general, *every* change of the C++ toolchain
 * requires a complete rebuild of the Boost-dependent ecosystem.
 *
 * See for instance https://bugs.gentoo.org/638138

 * Messages for package x11-libs/gtk+-3.24.26:

 * Please install app-text/evince for print preview functionality.
 * Alternatively, check "gtk-print-preview-command" documentation and
 * add it to your settings.ini file.

 * Messages for package app-office/libreoffice-6.4.7.2:

 * ERROR: app-office/libreoffice-6.4.7.2::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_compile
 *   environment, line 5224:  Called die
 * The specific snippet of code:
 *       make ${target} || die
 *
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-6.4.7.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-6.4.7.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
 * S: '/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (app-office/libreoffice-6.4.7.2:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/build.log'
 *

 * Regenerating GNU info directory index...
 * Processed 149 info files.
Comment 1 Marcel Schilling 2021-04-07 11:54:50 UTC
Created attachment 698190 [details]
gzip --best < /var/tmp/portage/app-office/libreoffice-6.4.7.2/temp/build.log
Comment 2 Marcel Schilling 2021-04-07 11:56:13 UTC
`emerge -pqv '=app-office/libreoffice-6.4.7.2::gentoo'`:

[ebuild  N    ] app-office/libreoffice-6.4.7.2  USE="branding cups dbus gtk mariadb pdfimport -accessibility (-base) -bluetooth (-coinmp) -debug -eds (-firebird) -googledrive -gstreamer -java -kde -ldap -odk -postgres -test" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"
Comment 3 Marcel Schilling 2021-04-07 11:59:51 UTC
Somehow I screwed up copying the error message in my first comment.

Here is the relevant (I guess) part:

[build CXX] vcl/unx/gtk3/a11y/gtk3atkimage.cxx
In file included from /var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/vcl/unx/gtk3/a11y/gtk3atkfactory.cxx:20:
/var/tmp/portage/app-office/libreoffice-6.4.7.2/work/libreoffice-6.4.7.2/vcl/inc/unx/gtk/gtkframe.hxx:25:10: fatal error: gdk/gdkx.h: No such file or directory
   25 | #include <gdk/gdkx.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Comment 4 Andreas Sturmlechner gentoo-dev 2021-04-07 12:06:37 UTC
$ equery b gdkx.h
 * Searching for gdkx.h ... 
x11-libs/gtk+-2.24.32-r1 (/usr/include/gtk-2.0/gdk/gdkx.h)
x11-libs/gtk+-3.24.26 (/usr/include/gtk-3.0/gdk/gdkx.h)

$ equery u gtk+
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-libs/gtk+-3.24.26:
 U I
 + + X             : Add support for X11
Comment 5 Marcel Schilling 2021-04-07 17:18:42 UTC
I can confirm that `USE=X emerge -1 gtk+ && emerge libreoffice` results in a successfull installation of LibreOffice.
So is my understanding correct that this is a packaging bug?
At least I would expect Portage to tell me I need to change the USE flags for a dependency to build the package I asked for without me needing to read build logs and run equery commands. ;-)
Comment 6 Larry the Git Cow gentoo-dev 2021-05-05 01:39:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feb45d707e30cef14b8b5c3f3ef83c8d2a7c0f82

commit feb45d707e30cef14b8b5c3f3ef83c8d2a7c0f82
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-05-05 01:39:27 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-05-05 01:39:27 +0000

    app-office/libreoffice: Add missing x11-libs/gtk+ usedep on X
    
    Reported-by: Marcel Schilling <marcel.schilling@uni-luebeck.de>
    Closes: https://bugs.gentoo.org/780813
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-office/libreoffice/libreoffice-7.1.3.2.ebuild  | 2 +-
 app-office/libreoffice/libreoffice-7.1.9999.ebuild | 2 +-
 app-office/libreoffice/libreoffice-9999.ebuild     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)