Add the following patch to solve the compilation error when using musl: 0001-Fix-bug-caused-by-missing-types.h-file.patch 0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch
Signed-off-by: Zang Ruochen <[email protected]> --- ...x-bug-caused-by-missing-types.h-file.patch | 50 +++++++++++++++++++ ...ed-by-using-functions-not-provided-b.patch | 31 ++++++++++++ .../ell/{ell_0.33.bb => ell_0.35.bb} | 8 +++- 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/ell/ell/0001-Fix-bug-caused-by-missing-types.h-file.patch create mode 100644 meta/recipes-core/ell/ell/0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch rename meta/recipes-core/ell/{ell_0.33.bb => ell_0.35.bb} (72%) diff --git a/meta/recipes-core/ell/ell/0001-Fix-bug-caused-by-missing-types.h-file.patch b/meta/recipes-core/ell/ell/0001-Fix-bug-caused-by-missing-types.h-file.patch new file mode 100644 index 0000000000..039a7c5705 --- /dev/null +++ b/meta/recipes-core/ell/ell/0001-Fix-bug-caused-by-missing-types.h-file.patch @@ -0,0 +1,50 @@ +Subject: [PATCH] Fix bug caused by missing types.h file. + +Fix the following error: +../ell-0.35/ell/dhcp-private.h:75:2: error: unknown type name '__be32' +| 75 | __be32 xid; +| | ^~~~~~ +| ../ell-0.35/ell/dhcp-private.h:76:2: error: unknown type name '__be16' +| 76 | __be16 secs; +| | ^~~~~~ +| ../ell-0.35/ell/dhcp-private.h:77:2: error: unknown type name '__be16' +| 77 | __be16 flags; +| | ^~~~~~ +| ../ell-0.35/ell/dhcp-private.h:85:2: error: unknown type name '__be32' +| 85 | __be32 magic; + +Upstream-status: Pending + +Signed-off-by: Zang Ruochen <[email protected]> +--- + ell/dhcp-private.h | 1 + + ell/dhcp6-private.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/ell/dhcp-private.h b/ell/dhcp-private.h +index 204e54e..b418535 100644 +--- a/ell/dhcp-private.h ++++ b/ell/dhcp-private.h +@@ -19,6 +19,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ ++#include <linux/types.h> + + struct l_dhcp_client; + struct l_dhcp_server; +diff --git a/ell/dhcp6-private.h b/ell/dhcp6-private.h +index 2bbd1d3..14dd85c 100644 +--- a/ell/dhcp6-private.h ++++ b/ell/dhcp6-private.h +@@ -19,6 +19,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ ++#include <linux/types.h> + + struct l_dhcp6_client; + +-- +2.25.1 + diff --git a/meta/recipes-core/ell/ell/0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch b/meta/recipes-core/ell/ell/0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch new file mode 100644 index 0000000000..176fccab40 --- /dev/null +++ b/meta/recipes-core/ell/ell/0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch @@ -0,0 +1,31 @@ +Subject: [PATCH] Fix the bug caused by using functions not provided by musl. + +Fix the following error: +/usr/src/debug/ell/0.35-r0/build/../ell-0.35/ell/pem.c:227: undefined reference to `rawmemchr' + +Upstream-status: Pending + +Signed-off-by: Zang Ruochen <[email protected]> +--- + ell/pem.c | 4 ++++ + 1 file changed, 4 insertion(+), 0 deletion(-) + +diff --git a/ell/pem.c b/ell/pem.c +index 790f2c2..27d47a0 100644 +--- a/ell/pem.c ++++ b/ell/pem.c +@@ -224,7 +224,11 @@ static uint8_t *pem_load_buffer(const void *buf, size_t buf_len, + + /* Check that each header line has a key and a colon */ + while (start < end) { ++#if defined(__GLIBC__) + const char *lf = rawmemchr(start, '\n'); ++#else ++ const char *lf = strchr(start, '\n'); ++#endif + const char *colon = memchr(start, ':', lf - start); + + if (!colon) +-- +2.25.1 + diff --git a/meta/recipes-core/ell/ell_0.33.bb b/meta/recipes-core/ell/ell_0.35.bb similarity index 72% rename from meta/recipes-core/ell/ell_0.33.bb rename to meta/recipes-core/ell/ell_0.35.bb index 2fa05104fb..3742c90bab 100644 --- a/meta/recipes-core/ell/ell_0.33.bb +++ b/meta/recipes-core/ell/ell_0.35.bb @@ -13,8 +13,12 @@ DEPENDS = "dbus" inherit autotools pkgconfig -SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/libs/${BPN}/${BPN}-${PV}.tar.xz" -SRC_URI[sha256sum] = "d9e40e641164150394b74b719b9726fc734f24b2cde679cf5f3be6915c34eded" +SRC_URI = "https://mirrors.edge.kernel.org/pub/linux/libs/${BPN}/${BPN}-${PV}.tar.xz \ + file://0001-Fix-bug-caused-by-missing-types.h-file.patch \ + file://0001-Fix-the-bug-caused-by-using-functions-not-provided-b.patch \ +" + +SRC_URI[sha256sum] = "2bfe9da7781f65f1cb1595a5a068a3ae74d4b68b74f287c6f0c892cfe623913f" do_configure_prepend () { mkdir -p ${S}/build-aux -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#146237): https://lists.openembedded.org/g/openembedded-core/message/146237 Mute This Topic: https://lists.openembedded.org/mt/79263319/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
