Skip to contentSkip to conversation

frame: Fix build with lld without x11

PATCH New Khem Raj 1 participant 13 messages Nov 14

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/13 frame: Fix build with lld without x11

The frame_x11_* functions are only built with the X11 backend, but the version script always lists them, so lld fails without x11 with:

error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_new' failed: symbol not defined

Generate a version script without them when the X11 backend is disabled.

AI-Generated: Uses Claude Code

---
 ...bols-from-the-version-script-without.patch | 50 +++++++++++++++++++
 .../canonical-multitouch/frame_2.5.0.bb       |  4 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/canonical-multitouch/frame/0001-Drop-the-X11-symbols-from-the-version-script-without.patch
meta-oe/recipes-support/canonical-multitouch/frame/0001-Drop-the-X11-symbols-from-the-version-script-without.patch new file +50 -0
new file mode 100644
index 0000000000..816f6bcf76
@@ -0,0 +1,50 @@
+From ef439367ab9ead953b128971cf85349669802441 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 9 Nov 2026 08:37:30 -0800
+Subject: [PATCH] Drop the X11 symbols from the version script without X11
+
+When the X11 backend is disabled, the frame_x11_* functions are not
+built, and linkers that check the version script, like lld, fail with:
+
+  error: version script assignment of 'FRAME_2.2' to symbol 'frame_x11_new' failed: symbol not defined
+
+Generate a version script without them in that case.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/Makefile.am | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 0d1f547..3664644 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,4 +1,12 @@
++if HAVE_XINPUT
+ version_script = $(srcdir)/libframe.ver
++else
++# The X11 backend is not built, so its symbols must not be in the version script
++version_script = libframe-nox11.ver
++libframe-nox11.ver: $(srcdir)/libframe.ver
++	$(AM_V_GEN)sed -e '/frame_x11_/d' $(srcdir)/libframe.ver > $@
++CLEANFILES = libframe-nox11.ver
++endif
+ 
+ lib_LTLIBRARIES = libframe.la
+ 
+@@ -7,6 +15,8 @@ libframe_la_LDFLAGS = \
+ 	-Wl,-z,defs -Wl,--as-needed \
+ 	-Wl,--version-script=$(version_script)
+ 
++libframe_la_DEPENDENCIES = $(version_script)
++
+ libframe_la_LIBADD = \
+ 	-lm \
+ 	$(COVERAGE_LIBS) \
+@@ -69,4 +79,4 @@ libframe_la_SOURCES += \
+ 	x11/window_x11.cpp
+ endif
+ 
+-EXTRA_DIST = $(version_script)
++EXTRA_DIST = $(srcdir)/libframe.ver
meta-oe/recipes-support/canonical-multitouch/frame_2.5.0.bb +3 -1
index 3afc9c0b31..57ad7a85db 100644
@@ -13,7 +13,9 @@ inherit autotools pkgconfig features_check
 REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
 
 SRC_URI = "https://launchpad.net/${BPN}/trunk/v${PV}/+download/${BPN}-${PV}.tar.gz \
-           file://pessimizing-move.patch"
+           file://pessimizing-move.patch \
+           file://0001-Drop-the-X11-symbols-from-the-version-script-without.patch \
+           "
 
 UPSTREAM_CHECK_URI = "https://launchpad.net/frame/trunk"
 
author
#1 lore raw

PATCH 2/13 dante: Fix build with lld

getipnodebyname() and freehostent() are only interposed when the platform has getipnodebyname(), which glibc and musl do not, but they are always exported, so lld fails with:

error: version script assignment of 'global' to symbol 'freehostent' failed: symbol not defined

Only export them when configure finds getipnodebyname().

Do not export rresvport where it does not exist

AI-Generated: Uses Claude Code

---
 ...rposed-functions-that-exist-on-the-p.patch | 44 +++++++++++++++++++
 .../recipes-protocols/dante/dante_1.4.4.bb    |  3 +-
 2 files changed, 46 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-protocols/dante/dante/0001-Only-export-interposed-functions-that-exist-on-the-p.patch
meta-networking/recipes-protocols/dante/dante/0001-Only-export-interposed-functions-that-exist-on-the-p.patch new file +44 -0
new file mode 100644
index 0000000000..ea7c3e03ff
@@ -0,0 +1,44 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 9 Nov 2026 08:37:30 -0800
+Subject: [PATCH] Only export interposed functions that exist on the platform
+
+dlib only interposes getipnodebyname() and freehostent() when the
+platform has getipnodebyname() (Solaris), and rresvport() when it is
+available (not on Android or musl), but they are always listed in the
+exported symbols, so linkers that check the version script, like lld,
+fail with:
+
+  error: version script assignment of 'global' to symbol 'freehostent' failed: symbol not defined
+  error: version script assignment of 'global' to symbol 'rresvport' failed: symbol not defined
+
+Leave them out of the symbol list when configure did not find them.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ mapfile.m4 | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/mapfile.m4 b/mapfile.m4
+index 644a94b..dc964f8 100644
+--- a/mapfile.m4
++++ b/mapfile.m4
+@@ -12,8 +12,16 @@ PLDDIRS="dlib/" #preloading (standard, non-Rfoo functions)
+ if test x"$sol64" = xt; then
+    PLDDIRS="$PLDDIRS dlib64/"
+ fi
++#only export interposed functions that exist on this platform
++PLDEXCLUDE="-e ^$" #skip blank lines
++if test x"$ac_cv_func_getipnodebyname" != xyes; then
++    PLDEXCLUDE="$PLDEXCLUDE -e ^freehostent$ -e ^getipnodebyname$"
++fi
++if test x"$ac_cv_func_rresvport" != xyes; then
++    PLDEXCLUDE="$PLDEXCLUDE -e ^rresvport$"
++fi
+ for symdir in $PLDDIRS; do
+-    cat include/symbols_preload.txt >> $symdir/$MAPFILE
++    grep -v $PLDEXCLUDE include/symbols_preload.txt >> $symdir/$MAPFILE
+
+     #platform dependent symbols
+     case $host in
meta-networking/recipes-protocols/dante/dante_1.4.4.bb +2 -1
index 6a1eed3edb..e15f7c4d41 100644
@@ -12,7 +12,8 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b3a8e7dc09bb720460f28c9d3796afa5"
 
 SRC_URI = "https://www.inet.no/dante/files/dante-${PV}.tar.gz \
-          "
+           file://0001-Only-export-interposed-functions-that-exist-on-the-p.patch \
+           "
 SRC_URI[sha256sum] = "1973c7732f1f9f0a4c0ccf2c1ce462c7c25060b25643ea90f9b98f53a813faec"
 
 # without --without-gssapi, config.log will contain reference to /usr/lib
author
#2 lore raw

PATCH 3/13 tremor: Fix build with lld

In reply to Khem Raj

The version script lists vorbis_comment_add() and vorbis_comment_add_tag(), which tremor does not implement, so lld fails with:

error: version script assignment of 'libvorbisidec.so.1' to symbol 'vorbis_comment_add' failed: symbol not defined

Drop them from the version script. It has CRLF line endings, which a patch does not survive git am with, so use sed.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/tremor/tremor_20180319.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-multimedia/recipes-multimedia/tremor/tremor_20180319.bb +5 -0
index f195a4a654..707054d540 100644
@@ -17,4 +17,9 @@ inherit autotools pkgconfig
 
 EXTRA_OECONF = "--enable-shared"
 
+do_configure:prepend() {
+    # Not implemented by tremor, lld fails when the version script names them
+    sed -i -e '/vorbis_comment_add/d' ${S}/Version_script.in
+}
+
 ARM_INSTRUCTION_SET = "arm"
author
#3 lore raw

PATCH 4/13 wtmpdb: Fix build with lld

In reply to Khem Raj

The pam module version script lists pam_sm_chauthtok(), which pam_wtmpdb does not implement, so lld fails with:

error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined

Drop it from the version script.

AI-Generated: Uses Claude Code

---
 ...pam_sm_chauthtok-from-the-version-sc.patch | 28 +++++++++++++++++++
 .../recipes-extended/wtmpdb/wtmpdb_0.76.0.bb  |  4 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch
meta-oe/recipes-extended/wtmpdb/wtmpdb/0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch new file +28 -0
new file mode 100644
index 0000000000..6593b8b0d9
@@ -0,0 +1,28 @@
+From 37f2e346c259e946258f95d89bf310fe463d2d92 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 9 Nov 2026 08:37:30 -0800
+Subject: [PATCH] pam_wtmpdb: Drop pam_sm_chauthtok from the version script
+
+pam_wtmpdb does not implement pam_sm_chauthtok(), so linkers that check
+the version script, like lld, fail with:
+
+  error: version script assignment of 'global' to symbol 'pam_sm_chauthtok' failed: symbol not defined
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/pam_wtmpdb.map | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/pam_wtmpdb.map b/src/pam_wtmpdb.map
+index 369b047..dcc94d8 100644
+--- a/src/pam_wtmpdb.map
++++ b/src/pam_wtmpdb.map
+@@ -2,7 +2,6 @@
+   global:
+     pam_sm_acct_mgmt;
+     pam_sm_authenticate;
+-    pam_sm_chauthtok;
+     pam_sm_close_session;
+     pam_sm_open_session;
+     pam_sm_setcred;
meta-oe/recipes-extended/wtmpdb/wtmpdb_0.76.0.bb +3 -1
index ebbfc7e994..392ec0a452 100644
@@ -7,7 +7,9 @@ SECTION = "libs"
 
 SRCREV = "89c0861f74e576c5ad0ec9f5302aa635a4e50dc6"
 
-SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https;tag=v${PV} \
+           file://0001-pam_wtmpdb-Drop-pam_sm_chauthtok-from-the-version-sc.patch \
+           "
 
 
 inherit meson pkgconfig systemd features_check
author
#4 lore raw

PATCH 5/13 libkcapi: Fix build with lld

In reply to Khem Raj

The version script lists all APIs, including the asymmetric cipher and KPP ones that are only built with --enable-lib-asym/--enable-lib-kpp, so lld fails with:

error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_init' failed: symbol not defined

Upstream prefers to keep a single version script for all configurations [1], so allow undefined versioned symbols with lld.

[1] https://github.com/smuellerDD/libkcapi/issues/191

AI-Generated: Uses Claude Code

---
 meta-oe/recipes-crypto/libkcapi/libkcapi_1.5.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-crypto/libkcapi/libkcapi_1.5.1.bb +3 -0
index c4f5010058..c9983f3bd8 100644
@@ -11,6 +11,9 @@ inherit autotools
 
 CACHED_CONFIGUREVARS += "ac_cv_prog_cc_c23=no"
 
+# The version script lists the APIs that can be disabled at configure time
+LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}"
+
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash"
 PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
author
#5 lore raw

PATCH 6/13 libdc1394: Fix build with clang

In reply to Khem Raj

The juju backend uses variable length arrays in structs, a GCC extension which clang does not support:

error: fields must have a constant size: 'variable length array in structure' extension will never be supported

Allocate the buffers with alloca() and use the flexible array members of the kernel event structs instead.

AI-Generated: Uses Claude Code

---
 ...se-variable-length-arrays-in-structs.patch | 233 ++++++++++++++++++
 .../libdc1394/libdc1394_2.2.7.bb              |   3 +-
 2 files changed, 235 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-multimedia/libdc1394/files/0001-juju-Do-not-use-variable-length-arrays-in-structs.patch
meta-multimedia/recipes-multimedia/libdc1394/files/0001-juju-Do-not-use-variable-length-arrays-in-structs.patch new file +233 -0
new file mode 100644
index 0000000000..b246af85e4
@@ -0,0 +1,233 @@
+From a78265d465723a7c7b6354c04756d8cbf3045e72 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 9 Nov 2026 08:37:30 -0800
+Subject: [PATCH] juju: Do not use variable length arrays in structs
+
+Variable length arrays in structs are a GCC extension which clang does
+not support:
+
+  error: fields must have a constant size: 'variable length array in structure' extension will never be supported
+
+The kernel event structs already end with a flexible array member for
+the payload, so allocate the same amount of stack with alloca() and use
+the payload member instead.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ dc1394/juju/capture.c | 19 ++++++-----
+ dc1394/juju/control.c | 76 +++++++++++++++++++++++--------------------
+ 2 files changed, 51 insertions(+), 44 deletions(-)
+
+diff --git a/dc1394/juju/capture.c b/dc1394/juju/capture.c
+index e9da6e3..36e6031 100644
+--- a/dc1394/juju/capture.c
++++ b/dc1394/juju/capture.c
+@@ -22,6 +22,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <alloca.h>
+ #include <string.h>
+ #include <sys/types.h>
+ #include <netinet/in.h>
+@@ -319,10 +320,10 @@ dc1394_juju_capture_dequeue (platform_camera_t * craw,
+ 		return DC1394_CAPTURE_IS_NOT_SET;
+ 	}
+
+-    struct {
+-        struct fw_cdev_event_iso_interrupt i;
+-		__u32 headers[craw->packets_per_frame*2 + 16]; // HPK 20161209
+-    } iso;
++    /* the iso headers follow struct fw_cdev_event_iso_interrupt */
++    size_t iso_size = sizeof (struct fw_cdev_event_iso_interrupt) +
++        (craw->packets_per_frame*2 + 16) * sizeof (__u32); // HPK 20161209
++    struct fw_cdev_event_iso_interrupt *iso = alloca (iso_size);
+
+     if ( (policy<DC1394_CAPTURE_POLICY_MIN) || (policy>DC1394_CAPTURE_POLICY_MAX) )
+         return DC1394_INVALID_CAPTURE_POLICY;
+@@ -344,13 +345,13 @@ dc1394_juju_capture_dequeue (platform_camera_t * craw,
+             return DC1394_SUCCESS;
+         }
+
+-        len = read (craw->iso_fd, &iso, sizeof iso);
++        len = read (craw->iso_fd, iso, iso_size);
+         if (len < 0) {
+             dc1394_log_error("Juju: dequeue failed to read a response: %m");
+             return DC1394_FAILURE;
+         }
+
+-        if (iso.i.type == FW_CDEV_EVENT_ISO_INTERRUPT)
++        if (iso->type == FW_CDEV_EVENT_ISO_INTERRUPT)
+             break;
+     }
+
+@@ -358,7 +359,7 @@ dc1394_juju_capture_dequeue (platform_camera_t * craw,
+     f = craw->frames + craw->current;
+
+     dc1394_log_debug("Juju: got iso event, cycle 0x%04x, header_len %d",
+-            iso.i.cycle, iso.i.header_length);
++            iso->cycle, iso->header_length);
+
+     f->frame.frames_behind = 0;
+     f->frame.timestamp = 0;
+@@ -368,14 +369,14 @@ dc1394_juju_capture_dequeue (platform_camera_t * craw,
+         /* Current bus time in usec as retrieved by the ioctl */
+         uint32_t bus_time = bus_time_to_usec(tm.cycle_timer);
+         /* Bus time of the interrupt packet (end of frame) */
+-        uint32_t dma_time = iso.i.cycle;
++        uint32_t dma_time = iso->cycle;
+         /* Estimated usec between start of frame and end of frame */
+         uint32_t diff =
+             (craw->frames[0].frame.packets_per_frame - 1) * 125;
+
+         /* If per-packet timestamps are available in the headers use them */
+         if (craw->header_size >= 8) {
+-            uint8_t * b = (uint8_t *)(iso.i.header + 1);
++            uint8_t * b = (uint8_t *)(iso->header + 1);
+             /* Bus time of the first frame in the packet */
+             dma_time = (b[2] << 8) | b[3];
+             dc1394_log_debug("Juju: using cycle 0x%04x (diff was %d)",
+diff --git a/dc1394/juju/control.c b/dc1394/juju/control.c
+index 4a4acbb..26ed292 100644
+--- a/dc1394/juju/control.c
++++ b/dc1394/juju/control.c
+@@ -22,6 +22,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <alloca.h>
+ #include <errno.h>
+ #include <unistd.h>
+ #include <string.h>
+@@ -280,41 +281,46 @@ typedef struct _juju_response_info {
+ static int
+ juju_handle_event (platform_camera_t * cam)
+ {
+-    union {
+-        struct {
+-            struct fw_cdev_event_response r;
+-            __u32 buffer[cam->max_response_quads];
+-        } response;
++    union juju_event {
++        struct fw_cdev_event_response response;
+         struct fw_cdev_event_bus_reset reset;
+         struct fw_cdev_event_iso_resource resource;
+-    } u;
++    } *u;
++    size_t size;
+     int len, i;
+     juju_response_info *resp_info;
+     juju_iso_info *iso_info;
+
+-    len = read (cam->fd, &u, sizeof u);
++    /* the response data follows struct fw_cdev_event_response */
++    size = sizeof (struct fw_cdev_event_response) +
++           cam->max_response_quads * sizeof (__u32);
++    if (size < sizeof *u)
++        size = sizeof *u;
++    u = alloca (size);
++
++    len = read (cam->fd, u, size);
+     if (len < 0) {
+         dc1394_log_error("juju: Read failed: %m");
+         return -1;
+     }
+
+-    switch (u.reset.type) {
++    switch (u->reset.type) {
+     case FW_CDEV_EVENT_BUS_RESET:
+-        cam->generation = u.reset.generation;
+-        cam->node_id = u.reset.node_id;
++        cam->generation = u->reset.generation;
++        cam->node_id = u->reset.node_id;
+         dc1394_log_debug ("juju: Bus reset, gen %d, node 0x%x",
+                 cam->generation, cam->node_id);
+         break;
+
+     case FW_CDEV_EVENT_RESPONSE:
+-        if (!u.response.r.closure) {
++        if (!u->response.closure) {
+             dc1394_log_warning ("juju: Unsolicited response, rcode %x len %d",
+-                    u.response.r.rcode, u.response.r.length);
++                    u->response.rcode, u->response.length);
+             break;
+         }
+-        resp_info = u64_to_ptr(u.response.r.closure);
+-        resp_info->rcode = u.response.r.rcode;
+-        resp_info->actual_num_quads = u.response.r.length/4;
++        resp_info = u64_to_ptr(u->response.closure);
++        resp_info->rcode = u->response.rcode;
++        resp_info->actual_num_quads = u->response.length/4;
+         resp_info->got_response = 1;
+         if (resp_info->rcode || !resp_info->data)
+             break;
+@@ -326,48 +332,48 @@ juju_handle_event (platform_camera_t * cam)
+
+         len = MIN(resp_info->actual_num_quads, resp_info->num_quads);
+         for (i = 0; i < len; i++)
+-            resp_info->data[i] = ntohl (u.response.r.data[i]);
++            resp_info->data[i] = ntohl (u->response.data[i]);
+         break;
+
+     case FW_CDEV_EVENT_ISO_RESOURCE_ALLOCATED:
+-        if (!u.resource.closure) {
++        if (!u->resource.closure) {
+             dc1394_log_warning ("juju: Spurious ISO allocation event: "
+-                    "handle %d, chan %d, bw %d", u.resource.handle,
+-                    u.resource.channel, u.resource.bandwidth);
++                    "handle %d, chan %d, bw %d", u->resource.handle,
++                    u->resource.channel, u->resource.bandwidth);
+             break;
+         }
+-        iso_info = u64_to_ptr(u.resource.closure);
+-        if (iso_info->handle != u.resource.handle)
++        iso_info = u64_to_ptr(u->resource.closure);
++        if (iso_info->handle != u->resource.handle)
+             dc1394_log_warning ("juju: ISO alloc handle was %d, expected %d",
+-                    u.resource.handle, iso_info->handle);
++                    u->resource.handle, iso_info->handle);
+         dc1394_log_debug ("juju: Allocated handle %d: chan %d bw %d",
+-                u.resource.handle, u.resource.channel, u.resource.bandwidth);
++                u->resource.handle, u->resource.channel, u->resource.bandwidth);
+         iso_info->got_alloc = 1;
+-        iso_info->channel = u.resource.channel;
+-        iso_info->bandwidth = u.resource.bandwidth;
++        iso_info->channel = u->resource.channel;
++        iso_info->bandwidth = u->resource.bandwidth;
+         break;
+
+     case FW_CDEV_EVENT_ISO_RESOURCE_DEALLOCATED:
+-        if (!u.resource.closure) {
++        if (!u->resource.closure) {
+             dc1394_log_warning ("juju: Spurious ISO deallocation event: "
+-                    "handle %d, chan %d, bw %d", u.resource.handle,
+-                    u.resource.channel, u.resource.bandwidth);
++                    "handle %d, chan %d, bw %d", u->resource.handle,
++                    u->resource.channel, u->resource.bandwidth);
+             break;
+         }
+-        iso_info = u64_to_ptr(u.resource.closure);
+-        if (iso_info->handle != u.resource.handle)
++        iso_info = u64_to_ptr(u->resource.closure);
++        if (iso_info->handle != u->resource.handle)
+             dc1394_log_warning ("juju: ISO dealloc handle was %d, expected %d",
+-                    u.resource.handle, iso_info->handle);
++                    u->resource.handle, iso_info->handle);
+         dc1394_log_debug ("juju: Deallocated handle %d: chan %d bw %d",
+-                u.resource.handle, u.resource.channel, u.resource.bandwidth);
++                u->resource.handle, u->resource.channel, u->resource.bandwidth);
+         iso_info->got_dealloc = 1;
+-        iso_info->channel = u.resource.channel;
+-        iso_info->bandwidth = u.resource.bandwidth;
++        iso_info->channel = u->resource.channel;
++        iso_info->bandwidth = u->resource.bandwidth;
+         break;
+
+     default:
+         dc1394_log_warning ("juju: Unhandled event type %d",
+-                u.reset.type);
++                u->reset.type);
+         break;
+     }
+
meta-multimedia/recipes-multimedia/libdc1394/libdc1394_2.2.7.bb +2 -1
index 8cac780d64..e1f3b0f2fb 100755
@@ -13,7 +13,8 @@ DEPENDS += "libusb1 libraw1394 libsdl \
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \
            file://install_examples.patch \
-          "
+           file://0001-juju-Do-not-use-variable-length-arrays-in-structs.patch \
+           "
 SRC_URI[sha256sum] = "537ceb78dd3cef271a183f4a176191d1cecf85f025520e6bd3758b0e19e6609f"
 inherit autotools pkgconfig
 
author
#6 lore raw

PATCH 7/13 tinymembench: Fix build with clang's integrated assembler

In reply to Khem Raj

The x86 assembly aliases registers with .set, and clang's integrated assembler can not infer the operand size from such aliases:

x86-sse2.S:124:9: error: ambiguous operand size for instruction 'add'

Define the aliases with the preprocessor instead.

AI-Generated: Uses Claude Code

---
 ...he-preprocessor-for-register-aliases.patch | 69 +++++++++++++++++++
 .../tinymembench/tinymembench_git.bb          |  1 +
 2 files changed, 70 insertions(+)
 create mode 100644 meta-oe/recipes-benchmark/tinymembench/tinymembench/0001-x86-sse2-Use-the-preprocessor-for-register-aliases.patch
meta-oe/recipes-benchmark/tinymembench/tinymembench/0001-x86-sse2-Use-the-preprocessor-for-register-aliases.patch new file +69 -0
new file mode 100644
index 0000000000..ebc9327f89
@@ -0,0 +1,69 @@
+From a0c69f4ab35712592194cd3839d78bfecdd4992c Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 9 Nov 2026 08:37:31 -0800
+Subject: [PATCH] x86-sse2: Use the preprocessor for register aliases
+
+clang's integrated assembler can not infer the operand size from a
+register that is aliased with .set:
+
+  x86-sse2.S:124:9: error: ambiguous operand size for instruction 'add'
+
+The aliases are the same for all functions, so define them with the
+preprocessor instead, which works with both GNU as and clang.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+---
+ x86-sse2.S | 31 +++++++++++++++++++------------
+ 1 file changed, 19 insertions(+), 12 deletions(-)
+
+diff --git a/x86-sse2.S b/x86-sse2.S
+index 409031b..2ab9e38 100644
+--- a/x86-sse2.S
++++ b/x86-sse2.S
+@@ -28,26 +28,33 @@
+
+ #define PREFETCH_DISTANCE 256
+
+-.macro asm_function_helper function_name
+-    .global \function_name
+-\function_name:
++/*
++ * Use the preprocessor for the register aliases, clang's integrated
++ * assembler can not infer the operand size from a register set with .set
++ */
+ #ifdef __amd64__
+   #ifdef _WIN64
+-    .set DST,  rcx
+-    .set SRC,  rdx
+-    .set SIZE, r8
++    #define DST  rcx
++    #define SRC  rdx
++    #define SIZE r8
+   #else
+-    .set DST,  rdi
+-    .set SRC,  rsi
+-    .set SIZE, rdx
++    #define DST  rdi
++    #define SRC  rsi
++    #define SIZE rdx
+   #endif
+ #else
++    #define DST  eax
++    #define SRC  ecx
++    #define SIZE edx
++#endif
++
++.macro asm_function_helper function_name
++    .global \function_name
++\function_name:
++#ifndef __amd64__
+     mov  eax,  [esp + 4]
+     mov  ecx,  [esp + 8]
+     mov  edx,  [esp + 12]
+-    .set DST,  eax
+-    .set SRC,  ecx
+-    .set SIZE, edx
+ #endif
+ .endm
+
meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb +1 -0
index f0527a7ca3..1e6f642217 100644
@@ -12,6 +12,7 @@ SRCREV = "a2cf6d7e382e3aea1eb39173174d9fa28cad15f3"
 UPSTREAM_CHECK_COMMITS = "1"
 SRC_URI = "git://github.com/ssvb/tinymembench.git;branch=master;protocol=https \
            file://0001-asm-Delete-.func-.endfunc-directives.patch \
+           file://0001-x86-sse2-Use-the-preprocessor-for-register-aliases.patch \
            "
 
 
author
#7 lore raw

PATCH 8/13 wvstreams, wvdial: Build with gcc

In reply to Khem Raj

wvstreams relies on C++ that clang rejects, e.g. access to private and incomplete nested classes, and so do its headers that wvdial includes. Upstream is no longer maintained, so build both with gcc when clang is the default toolchain.

AI-Generated: Uses Claude Code

---
 meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb     | 3 +++
 meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb | 3 +++
 2 files changed, 6 insertions(+)
meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb +3 -0
index 165872e2b1..5d07ec8c3b 100644
@@ -6,6 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605"
 
 inherit pkgconfig
 
+# wvstreams headers rely on C++ that clang rejects
+TOOLCHAIN = "gcc"
+
 DEPENDS = "wvstreams"
 RDEPENDS:${PN} = "ppp"
 
meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +3 -0
index 27e6e33224..a4c81142af 100644
@@ -36,6 +36,9 @@ COMPATIBLE_HOST:libc-musl = "null"
 
 inherit autotools-brokensep pkgconfig
 
+# Relies on C++ that clang rejects
+TOOLCHAIN = "gcc"
+
 TARGET_CFLAGS:append = " -fno-tree-dce -fno-optimize-sibling-calls"
 
 LDFLAGS:append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"
author
#8 lore raw

PATCH 9/13 caps: Build with gcc

In reply to Khem Raj

caps relies on GCC vector extensions that clang does not support, and on the register storage class, which C++17 removed, so build it with gcc when clang is the default toolchain.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/caps/caps_0.9.26.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/caps/caps_0.9.26.bb +3 -0
index f33d7ad582..964d18a5de 100644
@@ -16,6 +16,9 @@ EXTRA_OEMAKE = " \
     CFLAGS='${CFLAGS} -ffast-math -funroll-loops -fPIC -DPIC' \
     ARCH='' \
 "
+# Relies on GCC vector extensions and the register keyword
+TOOLCHAIN = "gcc"
+
 do_compile() {
     oe_runmake all
 }
author
#9 lore raw

PATCH 10/13 ibus: Fix build without x11

In reply to Khem Raj

The upgrade to 1.5.35 made ibus depend on the target libx11 for the X11 compose data that the compose table is generated from, so ibus, and with it gnome-shell and gnome-control-center, can no longer be built without x11:

ERROR: Nothing PROVIDES 'libx11' (but .../ibus_1.5.35.bb DEPENDS on or otherwise requires it)

The compose table is also used without X11. gen-internal-compose-table reads ./Compose first, so copy it from libx11-native like before the switch to meson.

AI-Generated: Uses Claude Code

---
 meta-gnome/recipes-support/ibus/ibus_1.5.35.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-gnome/recipes-support/ibus/ibus_1.5.35.bb +7 -1
index 891013ee03..0e2584fa90 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/ibus/ibus/wiki"
 LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
 
-DEPENDS = "unicode-ucd libx11 glib-2.0-native glib-2.0 dbus iso-codes"
+DEPENDS = "unicode-ucd libx11-native glib-2.0-native glib-2.0 dbus iso-codes"
 
 SRC_URI = " \
     git://github.com/ibus/ibus.git;branch=main;protocol=https;tag=${PV} \
@@ -40,6 +40,12 @@ EXTRA_OEMESON = " \
     -Ducd-dir=${STAGING_DATADIR}/unicode/ucd \
 "
 
+# gen-internal-compose-table reads ./Compose before the X11 locale data,
+# which is not in the sysroot without x11
+do_compile:prepend() {
+    cp ${STAGING_DATADIR_NATIVE}/X11/locale/en_US.UTF-8/Compose ${B}/Compose
+}
+
 do_install:append() {
     sed -i -e 's|${PYTHON}|${bindir}/python3|' ${D}${bindir}/ibus-setup
 }
author
#10 lore raw

PATCH 11/13 rdma-core: Do not export LFS64 wrappers in librspreload when not built

In reply to Khem Raj

librspreload.map always exports fcntl64 and sendfile64, but preload.c only defines them when the libc provides them, which is not the case on musl, so lld fails with:

error: version script assignment of 'global' to symbol 'fcntl64' failed: symbol not defined

Drop them from the version script when RDMA_PRELOAD_WRAP_LFS64 is off.

AI-Generated: Uses Claude Code

---
 ...librspreload-version-script-entries-.patch | 45 +++++++++++++++++++
 .../rdma-core/rdma-core_66.0.bb               |  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 meta-networking/recipes-support/rdma-core/rdma-core/0003-librdmacm-Allow-librspreload-version-script-entries-.patch
meta-networking/recipes-support/rdma-core/rdma-core/0003-librdmacm-Allow-librspreload-version-script-entries-.patch new file +45 -0
new file mode 100644
index 0000000000..845a6ce37e
@@ -0,0 +1,45 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 10 Nov 2026 06:06:10 -0800
+Subject: [PATCH] librdmacm: Allow librspreload version script entries the libc
+ lacks
+
+librspreload.map exports fcntl, fcntl64, sendfile and sendfile64, but
+which of them preload.c ends up defining depends on the libc. On musl
+there are no LFS64 symbols, so the fcntl64() and sendfile64() wrappers
+are not built, while on glibc with _FILE_OFFSET_BITS=64 the fcntl() and
+sendfile() wrappers are emitted as fcntl64 and sendfile64. Linkers that
+check the version script, like lld, then fail, e.g. on musl:
+
+  error: version script assignment of 'global' to symbol 'fcntl64' failed: symbol not defined
+  error: version script assignment of 'global' to symbol 'sendfile64' failed: symbol not defined
+
+Pass --undefined-version for the preload module when the linker
+supports it, so whichever of these names are defined get exported.
+
+Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/1853]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ buildlib/rdma_functions.cmake | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/buildlib/rdma_functions.cmake b/buildlib/rdma_functions.cmake
+index 6e0c7d2e..95709537 100644
+--- a/buildlib/rdma_functions.cmake
++++ b/buildlib/rdma_functions.cmake
+@@ -131,6 +131,15 @@ function(rdma_rspreload_module DEST VERSION_SCRIPT)
+   set_target_properties(${DEST} PROPERTIES LINK_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
+   set_target_properties(${DEST} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${BUILD_LIB}")
+   rdma_set_library_map(${DEST} ${VERSION_SCRIPT})
++  # Which of fcntl/fcntl64 and sendfile/sendfile64 get defined depends on the
++  # libc: musl has no LFS64 symbols, while glibc with _FILE_OFFSET_BITS=64
++  # emits the plain wrappers under the 64 names. Let linkers that check the
++  # version script (lld) skip the names that do not exist.
++  RDMA_CHECK_C_LINKER_FLAG("-Wl,--undefined-version" SUPPORTS_UNDEFINED_VERSION)
++  if (SUPPORTS_UNDEFINED_VERSION)
++    set_property(TARGET ${DEST} APPEND_STRING PROPERTY
++      LINK_FLAGS " -Wl,--undefined-version")
++  endif()
+ endfunction()
+
+ # Create a special provider with exported symbols in it The shared provider
meta-networking/recipes-support/rdma-core/rdma-core_66.0.bb +1 -0
index a5e9ba9f12..2725d77cb2 100644
@@ -8,6 +8,7 @@ RDEPENDS:${PN} = "bash perl"
 SRC_URI = "git://github.com/linux-rdma/rdma-core.git;branch=master;protocol=https;tag=v${PV} \
            file://0001-cmake-Allow-SYSTEMCTL_BIN-to-be-overridden-from-envi.patch \
            file://0002-mana-Link-with-libatomic-when-64-bit-atomics-need-it.patch \
+           file://0003-librdmacm-Allow-librspreload-version-script-entries-.patch \
 "
 SRCREV = "0fa90c60fbc274edb3495f30c1afd02b3f5fd38e"
 
author
#11 lore raw

PATCH 12/13 ot-br-posix: Do not error on sign-compare with musl and clang

In reply to Khem Raj

musl's CMSG_NXTHDR compares a size_t with a ptrdiff_t, which clang reports under -Wextra when the macro is expanded in openthread's posix platform code, and -Werror turns it into:

infra_if.cpp:275:31: fatal error: comparison of integers of different signs: '__size_t' (aka 'unsigned long') and '__ptrdiff_t' (aka 'long') [-Wsign-compare]

This used to be handled by meta-clang's nonclangable.conf. Do the same as oe-core's seatd recipe.

AI-Generated: Uses Claude Code

---
 .../recipes-connectivity/openthread/ot-br-posix_git.bb          | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-connectivity/openthread/ot-br-posix_git.bb +2 -0
index 59e1dae2a3..5006b253fe 100644
@@ -27,6 +27,8 @@ inherit pkgconfig cmake systemd
 # Use -std=c++20 for fixing
 # recipe-sysroot/usr/include/c++/15.1.0/ciso646:46:4: error: #warning "<ciso646> is deprecated in C++17, use <version> to detect implementation-specific macros" [-Werror=cpp]
 CXXFLAGS += "-std=c++20 -Wno-error=attributes"
+# musl CMSG_NXTHDR mixes size_t and ptrdiff_t
+CXXFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare"
 LDFLAGS:append:riscv32 = " -latomic"
 
 EXTRA_OECMAKE = "-DBUILD_TESTING=OFF \
author
#12 lore raw

PATCH 13/13 fluentbit: Fix build with clang 23 on riscv64

In reply to Khem Raj

The bundled simdutf enables its RVV kernel through target regions with clang >= 19 even when -march has no V extension, and clang 23 rejects it:

simdutf.cpp:4941:57: error: RISC-V type 'vuint16m1_t' (aka '__rvv_uint16m1_t') requires the 'zve32x' extension

Backport the upstream simdutf change that drops the RVV target region support, so the RVV kernel is only built when targeting V.

AI-Generated: Uses Claude Code

---
 ...imdutf-Do-not-use-RVV-target-regions.patch | 42 +++++++++++++++++++
 .../fluentbit/fluentbit_5.1.5.bb              |  1 +
 2 files changed, 43 insertions(+)
 create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0005-simdutf-Do-not-use-RVV-target-regions.patch
meta-oe/recipes-extended/fluentbit/fluentbit/0005-simdutf-Do-not-use-RVV-target-regions.patch new file +42 -0
new file mode 100644
index 0000000000..76b67bde7b
@@ -0,0 +1,42 @@
+From e20d9dd911c83790316f66277320851cdc0c96b8 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Wed, 11 Nov 2026 11:41:05 -0800
+Subject: [PATCH] simdutf: Do not use RVV target regions
+
+With clang >= 19 simdutf enables its RVV kernel through target regions on
+riscv64 even when the baseline -march has no V extension. clang 23 rejects
+the RVV types in the function templates of that region:
+
+  simdutf.cpp:4941:57: error: RISC-V type 'vuint16m1_t' (aka '__rvv_uint16m1_t') requires the 'zve32x' extension
+
+Upstream simdutf no longer defines SIMDUTF_HAS_RVV_TARGET_REGION, so the
+RVV kernel is only built when the compiler targets V. Backport that hunk to
+the bundled amalgamation.
+
+Upstream-Status: Backport [https://github.com/simdutf/simdutf/commit/37be90689b18]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ lib/simdutf-amalgamation-5.5.0/src/simdutf/simdutf.h | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/lib/simdutf-amalgamation-5.5.0/src/simdutf/simdutf.h b/lib/simdutf-amalgamation-5.5.0/src/simdutf/simdutf.h
+index 4b534c1..a0945ae 100644
+--- a/lib/simdutf-amalgamation-5.5.0/src/simdutf/simdutf.h
++++ b/lib/simdutf-amalgamation-5.5.0/src/simdutf/simdutf.h
+@@ -156,11 +156,11 @@
+ // RISC-V 64-bit
+ #define SIMDUTF_IS_RISCV64 1
+ 
+-#if __clang_major__ >= 19
+-// Does the compiler support target regions for RISC-V
+-#define SIMDUTF_HAS_RVV_TARGET_REGION 1
+-#endif
+-
++//#if __riscv_v_intrinsic >= 1000000
++//  #define SIMDUTF_HAS_RVV_INTRINSICS 1
++//  #define SIMDUTF_HAS_RVV_TARGET_REGION 1
++//#elif ...
++// Check for special compiler versions that implement pre v1.0 intrinsics
+ #if __riscv_v_intrinsic >= 11000
+ #define SIMDUTF_HAS_RVV_INTRINSICS 1
+ #endif
meta-oe/recipes-extended/fluentbit/fluentbit_5.1.5.bb +1 -0
index a9a5122e83..5b71003bbe 100644
@@ -23,6 +23,7 @@ SRC_URI = "\
     file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \
     file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \
     file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \
+    file://0005-simdutf-Do-not-use-RVV-target-regions.patch \
 "
 SRC_URI:append:libc-musl = "\
     file://0004-chunkio-Link-with-fts-library-with-musl.patch \