Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952125 - sys-apps/xdg-desktop-portal-1.18.4-r1 w/ media-video/pipewire-1.4.1: error: passing argument 1 of ‘pw_registry_add_listener’ from incompatible pointer type [-Wincompatible-pointer-types]
Summary: sys-apps/xdg-desktop-portal-1.18.4-r1 w/ media-video/pipewire-1.4.1: error: p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-27 08:30 UTC by Gabriel
Modified: 2025-04-01 21:30 UTC (History)
4 users (show)

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


Attachments
Relevant build.log (build.log,56.57 KB, text/x-log)
2025-03-27 08:35 UTC, Gabriel
Details
xdg-desktop-portal-1.18.4-r log (dg-desktop-portal-1.18.4-r1.log,55.86 KB, text/x-log)
2025-03-27 12:38 UTC, jms
Details
xdg-desktop-portal-1.18.4-r2 (xdg-desktop-portal-1.18.4-r2.log,59.91 KB, text/x-log)
2025-03-27 12:42 UTC, jms
Details
emerge--info (emerge-info.txt,9.58 KB, text/plain)
2025-03-27 12:44 UTC, jms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel 2025-03-27 08:30:49 UTC
Failing to compile with:
FAILED: src/xdg-desktop-portal.p/pipewire.c.o
x86_64-pc-linux-gnu-gcc -Isrc/xdg-desktop-portal.p -Isrc -I../xdg-desktop-portal-1.18.4/src -Idocument-portal -I../xdg-desktop-portal-1.18.4/document-portal -I. -I../xdg-desktop-portal-1.18.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_66 -march=native -O3 -pipe -D_REENTRANT -pthread -MD -MQ src/xdg-desktop-portal.p/pipewire.c.o -MF src/xdg-desktop-portal.p/pipewire.c.o.d -o src/xdg-desktop-portal.p/pipewire.c.o -c ../xdg-desktop-portal-1.18.4/src/pipewire.c
../xdg-desktop-portal-1.18.4/src/pipewire.c: In function ‘pipewire_remote_new_sync’:
../xdg-desktop-portal-1.18.4/src/pipewire.c:332:35: error: passing argument 1 of ‘pw_registry_add_listener’ from incompatible pointer type [-Wincompatible-pointer-types]
  332 |   pw_registry_add_listener (remote->registry,
      |                             ~~~~~~^~~~~~~~~~
      |                                   |
      |                                   struct pw_proxy *
In file included from /usr/include/pipewire-0.3/pipewire/context.h:48,
                 from /usr/include/pipewire-0.3/pipewire/protocol.h:26,
                 from /usr/include/pipewire-0.3/pipewire/proxy.h:90,
                 from /usr/include/pipewire-0.3/pipewire/client.h:16,
                 from /usr/include/pipewire-0.3/pipewire/pipewire.h:15,
                 from ../xdg-desktop-portal-1.18.4/src/pipewire.c:23:
/usr/include/pipewire-0.3/pipewire/core.h:564:71: note: expected ‘struct pw_registry *’ but argument is of type ‘struct pw_proxy *’
  564 | PW_API_REGISTRY_IMPL int pw_registry_add_listener(struct pw_registry *registry,
      |                                                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~

Reproducible: Always

Steps to Reproduce:
emerge as usual
Actual Results:  
Failed to emerge

Expected Results:  
Success to emerge

Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/desktop, gcc-14, glibc-2.40-r8, 6.12.16-gentoo x86_64)
=================================================================
System uname: Linux-6.12.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-10210U_CPU_@_1.60GHz-with-glibc2.40
KiB Mem:    16050180 total,   7263976 free
KiB Swap:   16759804 total,  13799884 free
Timestamp of repository gentoo: Thu, 27 Mar 2025 07:45:00 +0000
Head commit of repository gentoo: a5965b833afaa6a9b113c5e63cdaa28b60c8dd02
Timestamp of repository brother-overlay: Sun, 16 Feb 2025 18:52:05 +0000
Head commit of repository brother-overlay: 98cf4667f1edbdca145a2298bc7a9e42571dad8b

Head commit of repository gg-overlay: 0a8e8db8674d

Timestamp of repository php-overlay: Sun, 16 Mar 2025 16:18:30 +0000
Head commit of repository php-overlay: 4a2c704b02a3d4ba01034f6edaf9eb381313a48e

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust:             1.84.1-r1::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: [private, but sync'ed from gentoo]
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

php-overlay
    location: /var/db/repos/php-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/php-overlay.git
    masters: gentoo
    volatile: False

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://www.mirrorservice.org/sites/distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/apache2-php8.4/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cgi-php8.4/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/cli-php8.4/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/fpm-php8.4/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/php/phpdbg-php8.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O3 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 100"
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="-march=native -O3 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-request-signature buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en es jp"
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 bluetooth branding bzip2 cairo cdda cdr cet crypt css cups dbus dri dts dvd dvdr egl elogind encode exif flac gif gles2 gpm gtk gui heif iconv icu idn ipv6 jpeg kf6compat lcms libnotify libtirpc lm-sensors mad mng mp3 mp4 mpeg multilib ncurses nls nvme ogg opengl openmp pam pango pcre pcsc-lite pdf pipewire png policykit ppds pulseaudio qml qt5 qt6 quicktime readline screencast sdl seccomp sound spell ssl startup-notification svg synaptics test-rust thunderbolt tiff tpm truetype udev udisks uefi unicode upower usb v4l vaapi vorbis vulkan wayland webp wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="maestro3 hdspm ymfpci" 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 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" 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-3" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" SANE_BACKENDS="net" VIDEO_CARDS="fbdev intel vesa dummy" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, 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
Comment 1 Gabriel 2025-03-27 08:35:57 UTC
Created attachment 922986 [details]
Relevant build.log
Comment 2 Gabriel 2025-03-27 11:22:55 UTC
Done a bit of digging:
It's worth mentioning that I'm using pipewire 1.4 (unstable); if xdg-desktop-portal was compiled against stable 1.2.7, there's a chance that that function does take a pw_proxy, as opposed to a pw_registry.
I _think_ that the dependency has to be updated for a lower pipewire version.
Comment 3 jms 2025-03-27 12:38:52 UTC
Created attachment 922996 [details]
xdg-desktop-portal-1.18.4-r log
Comment 4 jms 2025-03-27 12:42:05 UTC
Created attachment 922997 [details]
xdg-desktop-portal-1.18.4-r2
Comment 5 jms 2025-03-27 12:44:55 UTC
Created attachment 922998 [details]
emerge--info
Comment 6 jms 2025-03-27 12:48:11 UTC
hello,
confirming bug for both
sys-apps/xdg-desktop-portal-1.18.4-r1
sys-apps/xdg-desktop-portal-1.18.4-r2


I am also using pipewire-1.4.1
sys-apps/xdg-desktop-portal-1.20.0-r2 compile fine
Comment 7 Gabriel 2025-03-27 12:59:51 UTC
Good workaround: 1.20.0-r2 works fine for me too.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-27 13:05:37 UTC
I'd really urge not using ~arch pipewire on stable at the moment, or be prepared to use ~arch versions of packages which are then broken with it.
Comment 9 Gabriel 2025-03-27 13:31:08 UTC
Sam, while I tend to agree with that approach [of keeping a system stable], I do remember trying to go back a few versions with pipewire in order to stabilise, only to find some things not working.  Having said that, I don't remember what these things were.
Personally, I've now stopped upgrading to non stable versions of pipewire; wireplumber was already stable and xdg-desktop-portal is being pulled unstable as an exception.
Comment 10 Michał Ziąbkowski 2025-03-31 16:21:44 UTC
For what it's worth, this upstream commit fixes build with pipewire-1.4.1 installed for me: https://github.com/flatpak/xdg-desktop-portal/commit/da7b73b0b0174e9a6dcf706ae64218e822e2c685
Comment 11 Larry the Git Cow gentoo-dev 2025-04-01 21:30:37 UTC
The bug has been closed via the following commit(s):

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

commit 91bc7256864417974a9b11f9551596530690298a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2025-04-01 21:28:37 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-04-01 21:30:13 +0000

    sys-apps/xdg-desktop-portal: Fix build w/ media-video/pipewire-1.4.1
    
    Closes: https://bugs.gentoo.org/952125
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../xdg-desktop-portal-1.18.4-pipewire-1.4.patch   | 29 ++++++++++++++++++++++
 .../xdg-desktop-portal-1.18.4-r2.ebuild            |  1 +
 2 files changed, 30 insertions(+)