Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 942765

Summary: x11-libs/wxGTK-3.2.5: uiactionx11.cpp:35:10: fatal error: gdk/gdkx.h: No such file or directory
Product: Gentoo Linux Reporter: yongxiang <tanekliang>
Component: Current packagesAssignee: Gentoo wxWidgets project <wxwidgets>
Status: UNCONFIRMED ---    
Severity: normal CC: randerson55, tanekliang
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description yongxiang 2024-11-02 15:57:09 UTC
I tried switching to the default wayland environment, enabling X use for just the necessary packages, and then starting empty tree compilation.
The compile error is:

x86_64-pc-linux-gnu-g++ -c -o coredll_gtk_bitmap.o         -I/tmp/portage/x11-libs/wxGTK-3.2.5/work/wxWidgets-3.2.5-abi_x86_64.amd64/lib/wx/include/gtk3-unicode-3.2-gtk3 -I/tmp/portage/x11-libs/wxGTK-3.2.5/work/wxWidgets-3.2.5/include -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -D__WXGTK__      -DWXBUILDING -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -pthread -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -I/usr/include/pango-1.0 -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/lib64/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/gio-unix-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/lib64/libffi/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/gspell-1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/enchant-2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -ggdb3 -fdiagnostics-color=always -frecord-gcc-switches -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orc-0.4  -fvisibility=hidden -fvisibility-inlines-hidden  -O2 -pipe -ggdb3 -fdiagnostics-color=always -frecord-gcc-switches /tmp/portage/x11-libs/wxGTK-3.2.5/work/wxWidgets-3.2.5/src/gtk/bitmap.cpp
/tmp/portage/x11-libs/wxGTK-3.2.5/work/wxWidgets-3.2.5/src/unix/uiactionx11.cpp:35:10: fatal error: gdk/gdkx.h: No such file or directory
   35 | #include <gdk/gdkx.h>
      |          ^~~~~~~~~~~~


Reproducible: Always
Comment 1 yongxiang 2024-11-02 15:57:22 UTC
Created attachment 907694 [details]
emerge --info
Comment 2 yongxiang 2024-11-02 15:57:58 UTC
Created attachment 907695 [details]
build.log
Comment 3 AntiMS 2025-01-24 22:32:42 UTC
In case this helps, I worked around this issue by installing x11-libs/gtk+ with the X flag enabled.