Repository navigation
Closed
Description
Describe the bug
Building audacious 4.6.1 on x86_64 (kernel version fails due to 4.4, i think)STATX_MTIME not being defined.
Steps to reproduce
[53/155] Compiling C++ object src/libaudcore/libaudcore.so.6.0.0.p/vfs.cc.o
[54/155] Compiling C++ object src/libaudcore/libaudcore.so.6.0.0.p/vfs_local.cc.o
FAILED: [code=1] src/libaudcore/libaudcore.so.6.0.0.p/vfs_local.cc.o
c++ -Isrc/libaudcore/libaudcore.so.6.0.0.p -Isrc/libaudcore -I../src/libaudcore -Isrc -I../src -I/usr/local/include/glib-2.0 -I/usr/local/lib64/glib-2.0/include -I/usr/local/include/gtk-3.0 -I/usr/local/include/pango-1.0 -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/include/at-spi-2.0 -I/usr/local/include/atk-1.0 -I/usr/local/include/dbus-1.0 -I/usr/local/lib64/dbus-1.0/include -I/usr/local/include/fribidi -I/usr/local/include/pixman-1 -I/usr/local/include/harfbuzz -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/gio-unix-2.0 -I/usr/local/include/libmount -I/usr/local/include/blkid -flto=auto -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu++17 -O3 -ffast-math -Wtype-limits -Wno-stringop-truncation -fvisibility=hidden -Wno-non-virtual-dtor -Woverloaded-virtual -fvisibility-inlines-hidden -include /usr/local/tmp/crew/audacious.20260623012316.dir/audacious-4.6.1/builddir/config.h -O3 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto -fPIC -pthread -DLIBAUDCORE_BUILD -MD -MQ src/libaudcore/libaudcore.so.6.0.0.p/vfs_local.cc.o -MF src/libaudcore/libaudcore.so.6.0.0.p/vfs_local.cc.o.d -o src/libaudcore/libaudcore.so.6.0.0.p/vfs_local.cc.o -c ../src/libaudcore/vfs_local.cc
../src/libaudcore/vfs_local.cc: In member function βbool LocalTransport::get_file_timestamps(const char*, int64_t*, int64_t*)β:
../src/libaudcore/vfs_local.cc:466:18: error: aggregate βLocalTransport::get_file_timestamps(const char*, int64_t*, int64_t*)::statx stxβ has incomplete type and cannot be defined
466 | struct statx stx;
| ^~~
../src/libaudcore/vfs_local.cc:468:17: error: βSTATX_MTIMEβ was not declared in this scope
468 | STATX_MTIME | STATX_BTIME, &stx) == 0)
| ^~~~~~~~~~~
../src/libaudcore/vfs_local.cc:468:31: error: βSTATX_BTIMEβ was not declared in this scope
468 | STATX_MTIME | STATX_BTIME, &stx) == 0)
| ^~~~~~~~~~~
ninja: build stopped: subcommand failed.
Expected behavior
src/libaudcore/vfs_local.cc to check if STATX_MTIME is defined before using it (there's already a regular stat fallback path in the file that could be used if STATX_MTIME is undefined).
Activity
radioactiveman commentedon Jun 23, 2026
Give full details of your system please.
Also try adding the include directive again which was removed with commit 4e3449d.
Zopolis4 commentedon Jun 24, 2026
(Running inside the
satmandu/crew-pre-glibc-standalone:nocturne-x86_64.m90docker container.The build works fine when I re-add the include.
radioactiveman commentedon Jul 9, 2026
@classabbyamp, @jlindgren90: How would you fix this? Maybe with fallback definitions for STATX_MTIME and STATX_BTIME?
classabbyamp commentedon Jul 10, 2026
based on the compiler command-line that failed, this might just be missing
-I/usr/local/include? otherwise, it might be outdatedlinux-headers(as glibc is just taking the statx declarations fromlinux/stat.h)classabbyamp commentedon Jul 10, 2026
it might make sense to put in a configure test for statx
meson: Check for statx. Closes: audacious-media-player#1843
radioactiveman commentedon Aug 3, 2026
Implemented now with the referenced pull request, closing.
meson: Check for statx. Closes: audacious-media-player#1843