From 102b89bf9da6c60fc0ec6c9257149ad23649f8ec Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Mon, 14 Jul 2025 20:35:17 +0200 Subject: [PATCH] package/libcddb: Fix build with gcc-14 libcddb fail to build with gcc-14 with error: cddb_net.c: In function 'timeout_connect': cddb_net.c:328:63: error: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types] 328 | getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l); | ^~ | | | size_t * {aka long unsigned int *} This commit adds a patch to fix the issue. Fixes: https://autobuild.buildroot.net/results/723/7236cf5fd4f33aabd3178586f877dff04d754abe/ Signed-off-by: Bernd Kuhls [Julien: add error message in commit log] Signed-off-by: Julien Olivain (cherry picked from commit f1b4657bc0f53d6f102f0ec0100cfdc88b1a5eec) Signed-off-by: Thomas Perale --- package/libcddb/0001-gcc15.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/libcddb/0001-gcc15.patch diff --git a/package/libcddb/0001-gcc15.patch b/package/libcddb/0001-gcc15.patch new file mode 100644 index 0000000000..379e654951 --- /dev/null +++ b/package/libcddb/0001-gcc15.patch @@ -0,0 +1,17 @@ +Fix incorrect type. + +Upstream: https://sourceforge.net/p/libcddb/patches/9/#b9ea + +Signed-off-by: Bernd Kuhls + +--- libcddb-1.3.2/lib/cddb_net.c 2009-03-01 03:28:07.000000000 +0000 ++++ libcddb-1.3.2/lib/cddb_net.c 2025-07-03 17:58:30.064232649 +0100 +@@ -305,7 +305,7 @@ + int rv; + fd_set wfds; + struct timeval tv; +- size_t l; ++ socklen_t l; + + /* set up select time out */ + tv.tv_sec = timeout;