Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882623 - gnome-base/nautilus-43.0 USE="-wayland" compile fails.
Summary: gnome-base/nautilus-43.0 USE="-wayland" compile fails.
Status: RESOLVED DUPLICATE of bug 624960
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-23 19:54 UTC by Francois
Modified: 2022-11-25 20:15 UTC (History)
1 user (show)

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


Attachments
nautilus-43.0 build.log from portage (nautilus-build.log,276.54 KB, text/plain)
2022-11-24 05:50 UTC, Francois
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francois 2022-11-23 19:54:53 UTC
Nautilus-43.0 fails to compile on my system with USE="-wayland".

/usr/lib64/libportal-gtk4.so: undefined reference to `gdk_wayland_display_get_type'
/usr/lib64/libportal-gtk4.so: undefined reference to `gdk_wayland_toplevel_export_handle'
/usr/lib64/libportal-gtk4.so: undefined reference to `gdk_wayland_toplevel_unexport_handle'

Downgrading resolves the problem so it's seems specific to 43.0 .
Using USE="wayland" also resolves the problem.

The problem never occurred on <43.0 versions.

#emerge --info

Portage 3.0.39 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.3.0, glibc-2.36-r5, 6.0.9-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.0.9-gentoo-dist-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11370H_@_3.30GHz-with-glibc2.36
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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 aribsub avresample bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dist-kernel dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts grub gstreamer gtk gui heif iconv icu introspection ipv6 jpeg layers lcms libass libglvnd libnotify libsecret libtirpc mad matroska minimal mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio rar readline sdl seccomp sna spell split-usr ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb uxa vorbis vpx vulkan vulkan-overlay wxwidgets x264 xattr xcb xml xv xvid yt-dlp zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr en en-US" 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_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel" 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
Comment 1 Mike Gilbert gentoo-dev 2022-11-24 01:46:14 UTC
Please attach a full build log.
Comment 2 Francois 2022-11-24 05:50:42 UTC
Created attachment 836093 [details]
nautilus-43.0 build.log from portage
Comment 3 Matt Turner gentoo-dev 2022-11-25 17:17:58 UTC
I can rebuild nautilus with USE=-wayland just fine. The problem is that, I suspect, you originally built dev-libs/libportal against x11-libs/gtk+ with USE=wayland and now you have rebuilt x11-libs/gtk+ with USE=-wayland, leaving the symbol undefined.

I don't think we have a great way of handling this in Gentoo. Cc'ing leio@.
Comment 4 Matt Turner gentoo-dev 2022-11-25 17:18:27 UTC
tl;dr: if you just want think to work, rebuild libportal.
Comment 5 Francois 2022-11-25 19:49:52 UTC
Confirming that rebuilding libportal did the trick.
Thanks a lot !
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-25 20:15:25 UTC
We should warn in pkg_postinst of gtk+.

*** This bug has been marked as a duplicate of bug 624960 ***