Created attachment 917399 [details] build.log media-plugins/gst-plugins-v4l2-1.24.11 fails to compile on musl clang because of an incompatible pointer type error this is similar to https://bugs.gentoo.org/show_bug.cgi?id=896418, but affects a different pointer. Looks like the issue stems from the fact that musl defines the ioctl function as "int ioctl(int, int, ...)", compared to glibc's "int ioctl(int, unsigned long, ...) the issue on 896418 has been fixed upstream in the current stable version, however this new error seems to trace back a struct in <libv4l2.h>, provided by media-libs/libv4l, rather than gst-plugins itself I've checked and there is currently an upstream fix, but it is newer than the current stable version 1.28.1, and relies on HAS_POSIX_IOCTL being defined: https://git.linuxtv.org/v4l-utils.git/commit/?id=fd882f9e77b13cbc6a669e6836c3943393b44152 applying the commit as a patch doesn't fix the issue, but additionally adding a "#define HAVE_POSIX_IOCTL" to gst-plugins-good just before it "#include <libv4l2.h>" fixed the issue on mine (I also experimented with just typecasting the function pointer, but that felt a bit too hacky)
Created attachment 917400 [details] emerge --info
Created attachment 917401 [details, diff] media-libs/libv4l fix from upstream
Created attachment 917402 [details, diff] add have_posix_ioctl to gst-plugins-v4l2