app-crypt/seahorse has a hard dependency on Wayland and so can't be built for X. My laptop has a touch screen which is not yet supported by Wayland. Trying to install GNOME with "X" USE-flag results in: [code] /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_set_transient_for_exported' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_get_type' collect2: error: ld returned 1 exit status [/code] Only one version of seahorse s available so there is no way to downgrade.
This doesnt add up. I have the same setup, non Wayland system, X use flag, and my readelf -s /usr/lib64/libgcr-ui-3.so | grep wayland definitely doesnt have any functions. Something is gone wrong and we need more information, please post a full emerge --info and the result of the full build.log as it says to do so on the bottom of any portage compile error message.
emerge --info is as follows: Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-10.3.0, glibc-2.38-r10, 5.10.52-gentoo x86_64) ================================================================= System uname: Linux-5.10.52-gentoo-x86_64-AMD_FX-9800P_RADEON_R7,_12_COMPUTE_CORES_4C+8G-with-glibc2.38 KiB Mem: 7670864 total, 5462424 free KiB Swap: 16777212 total, 15819848 free Timestamp of repository gentoo: Sun, 24 Mar 2024 04:00:00 +0000 Head commit of repository gentoo: abf0318b44807782dcb9a636e321b9304e3df955 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.3::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.2::gentoo dev-lang/perl: 5.38.2-r2::gentoo dev-lang/python: 3.9.18_p2::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo dev-lang/rust: 1.75.0-r1::gentoo sys-apps/baselayout: 2.14-r2::gentoo sys-apps/openrc: 0.53::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.35.2::gentoo, 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.6::gentoo sys-devel/gcc: 10.3.0-r2::gentoo, 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 12.0.1::gentoo, 17.0.6::gentoo sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r10::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE PUEL PUEL-11" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j5" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli colord crypt dbus dri dts dvd dvdr eds elogind encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vpx vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 889114 [details] seahorse build log The build log file
And when I run the grep command you posted I have following output: [code] 491: 0000000000000000 0 FUNC GLOBAL DEFAULT UND gdk_wayland_wind[...] 554: 0000000000000000 0 FUNC GLOBAL DEFAULT UND gdk_wayland_wind[...] [/code] The problem might be that I'm trying to switch off from Wayland to X and so I did have wayland USE-flag but now it is turned off. I did try to re-emerge gcr, but those errors persisted.
Ok i'm starting to piece it together. Still unusual. Idk how to proceed so, Try to run some debugging commands: grep "gdk_wayland" /usr/include -r which should not be showing anything in there. If it is in there, that is part of the package you need to rebuild. grep "wayland" /usr/share/pkgconfig -r should only return 1 file named Xwaylandproto.pc IMO these are the most likely locations where wayland could be being hiding and being picked up still - somehow.
Also to double check, make sure you dont accidentally set wayland USE in package.use flags somehow, run: grep -rsin "wayland" /etc/portage This is the full compilation line that failed: ?[31mFAILED: ?[0mssh/ssh-askpass x86_64-pc-linux-gnu-gcc -o ssh/ssh-askpass ssh/ssh-askpass.p/seahorse-ssh-askpass.c.o -Wl,--as-needed -Wl,--no-undefined -march=native -O2 -pipe -Wno-incompatible-pointer-types -Wl,-O1 -Wl,--as-needed -Wl,--start-group common/libcommon.a /usr/lib64/libgcr-ui-3.so /usr/lib64/libp11-kit.so /usr/lib64/libgdk-3.so /usr/lib64/libharfbuzz.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libcairo.so /usr/lib64/libcairo-gobject.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgck-1.so /usr/lib64/libgcr-base-3.so /usr/lib64/libgtk-3.so -Wl,--export-dynamic /usr/lib64/libgmodule-2.0.so -pthread /usr/lib64/libhandy-1.so -Wl,--end-group /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_set_transient_for_exported' /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgcr-ui-3.so: undefined reference to `gdk_wayland_window_get_type' collect2: error: ld returned 1 exit status I assume at least one of these libraries is the one that needs to be rebuilt. You can try doing emerge --selective=n /usr/lib64/libgdk-3.so going through the list of libraries one by one and emerge will detect which package its from and re-install it.
Yes, switching these flags is fiddly. You need to rebuild things in correct order when you hit issues. It's essentially duplicate of bug 624960 then. You don't NEED to disable USE=wayland when you use Xorg though ;)
K, The first command didn't yield anything as predicted. The second command gives 2 files: [code] /usr/share/pkgconfig/xwaylandproto.pc /usr/share/pkgconfig/xwayland-protocols.pc [/code]
Hi, Only libgdk was re-emerged⁴ And after that I still get that error... Thank you.
The error suggests you need to rebuild app-crypt/gcr. And then you might hit other issues, but you can see from the link failure what you need to rebuild. In this case I ran `qfile /usr/lib64/libgcr-ui-3.so` but you could also just run this directly too (changing the filename as pointed out by the failure): emerge -1va /usr/lib64/libgcr-ui-3.so
@MartRaudsepp, It looks like "emerge -1va /usr/lib64/libgcr-ui-3.so" solved the problem. Thank you.
You may encounter more such issues from the transition, but now you should know how to workaround them in the same way :) *** This bug has been marked as a duplicate of bug 624960 ***
The bug comes from this forum discussion: https://forums.gentoo.org/viewtopic.php?p=8849585#8849585. The compilation of myodbc went thru fine, but doing setup fails. Thank you. [code] IgorsGentoo /home/igor/dbhandler_new/Debug # emerge --config =dev-db/myodbc-8.0.27 Configuring pkg... * ERROR: dev-db/myodbc-8.0.27::gentoo failed (config phase): * Sorry, non-standard ROOT setting is not supported :-( * * Call stack: * ebuild.sh, line 127: Called pkg_config * environment, line 2504: Called die * The specific snippet of code: * [ "${ROOT}" != "/" ] && die 'Sorry, non-standard ROOT setting is not supported :-('; * * If you need support, post the output of `emerge --info '=dev-db/myodbc-8.0.27::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/myodbc-8.0.27::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-db/myodbc-8.0.27/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/myodbc-8.0.27/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/myodbc-8.0.27/empty' * S: '/var/tmp/portage/dev-db/myodbc-8.0.27/work/myodbc-8.0.27' [/code] [code] gorsGentoo /home/igor/dbhandler_new/Debug # emerge --info '=dev-db/myodbc-8.0.27::gentoo' Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.10.27-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.27-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-glibc2.33 KiB Mem: 1997504 total, 262596 free KiB Swap: 8388604 total, 7003108 free Timestamp of repository gentoo: Tue, 08 Feb 2022 01:30:01 +0000 Head commit of repository gentoo: 9f7d489a95e24a4c84c29119a434d98062feb841 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 ccache version 4.5.1 [enabled] app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.8.9_p2::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo dev-lang/rust: 1.58.1::gentoo dev-util/ccache: 4.5.1::gentoo dev-util/cmake: 3.21.4::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.35.2::gentoo, 2.37_p1::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 11.1.0::gentoo, 13.0.0::gentoo sys-devel/gcc: 10.2.0-r5::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/lld: 13.0.0::gentoo sys-devel/llvm: 11.1.0::gentoo, 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE Broadcom MPEG-4" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cdr cli crypt dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit postgres ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-db/myodbc-8.0.27::gentoo was built with the following: USE="" ABI_X86="(64) -32 (-x32)" [/code]
(In reply to Igor Korot from comment #13) > The bug comes from this forum discussion: > https://forums.gentoo.org/viewtopic.php?p=8849585#8849585. > This bug has nothing to do with that, though, and you've also accidentally changed category and so on.
*** This bug has been marked as a duplicate of bug 624960 ***