[Pkg-mpd-maintainers] Bug#1128846: mpd: FTBFS with glibc 2.43 due to openat2 redefinition

Florian Schlichting fsfs at debian.org
Mon Feb 23 21:39:55 GMT 2026


Control: tags 1128846 +pending

Hi Aurelien,

On Mon, Feb 23, 2026 at 06:08:27PM +0100, Aurelien Jarno wrote:
> mpd fails to build from source with glibc 2.43, currently in
> experimental. From the build log:
> 
> | [95/877] c++ -Isrc/io/libio.a.p -Isrc/io -I../src/io -Isrc -I../src -I. -I.. -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -ffast-math -ftree-vectorize -Wcast-qual -Wdouble-promotion -Wmissing-declarations -Wshadow -Wunused -Wvla -Wwrite-strings -Wno-stringop-overflow -fno-threadsafe-statics -fmerge-all-constants -Wcomma-subscript -Wextra-semi -Wmismatched-tags -Woverloaded-virtual -Wsign-promo -Wsuggest-override -Wvolatile -Wvirtual-inheritance -Wno-missing-field-initializers -Wno-non-virtual-dtor -fvisibility=hidden -ffunction-sections -fdata-sections -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/mpd-0.24.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/io/libio.a.p/Open.cxx.o -MF src/io/libio.a.p/Open.cxx.o.d -o src/io/libio.a.p/Open.cxx.o -c ../src/io/Open.cxx
> | FAILED: [code=1] src/io/libio.a.p/Open.cxx.o 
> | c++ -Isrc/io/libio.a.p -Isrc/io -I../src/io -Isrc -I../src -I. -I.. -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++20 -ffast-math -ftree-vectorize -Wcast-qual -Wdouble-promotion -Wmissing-declarations -Wshadow -Wunused -Wvla -Wwrite-strings -Wno-stringop-overflow -fno-threadsafe-statics -fmerge-all-constants -Wcomma-subscript -Wextra-semi -Wmismatched-tags -Woverloaded-virtual -Wsign-promo -Wsuggest-override -Wvolatile -Wvirtual-inheritance -Wno-missing-field-initializers -Wno-non-virtual-dtor -fvisibility=hidden -ffunction-sections -fdata-sections -D_GNU_SOURCE -g -O2 -ffile-prefix-map=/build/reproducible-path/mpd-0.24.6=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MQ src/io/libio.a.p/Open.cxx.o -MF src/io/libio.a.p/Open.cxx.o.d -o src/io/libio.a.p/Open.cxx.o -c ../src/io/Open.cxx
> | In file included from ../src/io/Open.cxx:12:
> | ../src/system/linux/openat2.h:13:1: error: ‘int openat2(int, const char*, const open_how*, size_t)’ redeclared inline without ‘gnu_inline’ attribute
> |    13 | openat2(int dirfd, const char *pathname,
> |       | ^~~~~~~
> | In file included from /usr/include/aarch64-linux-gnu/bits/fcntl-linux.h:492,
> |                  from /usr/include/aarch64-linux-gnu/bits/fcntl.h:55,
> |                  from /usr/include/fcntl.h:35,
> |                  from ../src/system/linux/openat2.h:7:
> | /usr/include/aarch64-linux-gnu/bits/fcntl-linux-fortify.h:36:1: note: ‘int openat2(int, const char*, const open_how*, size_t)’ previously defined here
> |    36 | openat2 (int __dfd, const char *__filename, const struct open_how *__how,
> |       | ^~~~~~~
> 
> ...
> 
> | ninja: build stopped: subcommand failed.
> | dh_auto_build: error: cd obj-aarch64-linux-gnu && LC_ALL=C.UTF-8 ninja -j128 -v returned exit code 1
> | make: *** [debian/rules:123: binary] Error 25
> | dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
> 
> The full build log is available here [1].
> 
> The issue is due to a definition of the openat2 function, which is now
> also provided by glibc 2.43 [2]. I believe that the issue is fixed
> upstream [3], but I haven't tested the patch.

I also see that build failure and I can confirm that upgrading to mpd
0.24.8, which includes the patch, fixes it.

However I'll have to put off uploading that version until the next curl
upload unbreaks our build by including today's https://github.com/curl/curl/commit/ee9b000438

Florian



More information about the Pkg-mpd-maintainers mailing list