[Bug 286875] emulators/qemu-user-static-devel: Switch to blitz, and sync to 11.0.50; restore build on 15+

[email protected] Tue, 23 Jun 2026 17:12:21 +0000
Newsgroups gmane.os.freebsd.devel.emulation
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286875

--- Comment #36 from Alexey Shuvaev <[email protected]> ---
Created attachment 272081
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D272081&action=
=3Dedit
meson log of the failed configure on 14-STABLE

It is not that simple...
The meson configure script does something weird with the inotify, probably =
it
does not expect it to be in a separate library, so not adding -linotify lin=
ker
flag in the configure tests.

I have attached the meson-log.txt from the failed configure run, at the end
there are three inotify-related tests. The second test probably should be
positive on 14-STABLE:

> #define inotify_init1 meson_disable_define_of_inotify_init1
>=20
> #include <limits.h>
> #undef inotify_init1
>=20
> #ifdef __cplusplus
> extern "C"
> #endif
> char inotify_init1 (void);
>=20
> #if defined __stub_inotify_init1 || defined __stub___inotify_init1
> fail fail fail this function is not going to work
> #endif
>=20
> int main(void) {
>   return inotify_init1 ();
> }

Out-of-the-box, it fails at linking stage as it does not add -linotify:
> cc -m64 -L/usr/local/lib -I/wrkdirs/overlays/patches/emulators/qemu-user-=
static-devel/work/qemu-bsd-user-e725658f900ca7b4c4a05527256bb927b054ada7 -I=
/usr/local/include /wrkdirs/overlays/patches/emulators/qemu-user-static-dev=
el/work/.build/meson-private/tmpwc58paq2/testfile.c -o /wrkdirs/overlays/pa=
tches/emulators/qemu-user-static-devel/work/.build/meson-private/tmpwc58paq=
2/output.exe -O2 -pipe -Wno-address-of-packed-member -fstack-protector-stro=
ng -fno-strict-aliasing '-DPREFIX=3D\""/usr/local\""' -D_FILE_OFFSET_BITS=
=3D64 -O0 -U_FORTIFY_SOURCE -Werror=3Dimplicit-function-declaration -std=3D=
gnu11` -> 1
> stderr:
> ld: error: undefined symbol: inotify_init1

Can some kind ports guru point what to do?
I suppose one should (patch) the meson config so it looks for the inotify
functions in a separate libs on 14-STABLE.

Warner, how do you build blitz on 14.4? Do you by-pass meson configure?

--=20
You are receiving this mail because:
You are the assignee for the bug.=