From patchwork Fri Jun 18 18:31:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1494388 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=b1fi4g6a; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G66wH2YbZz9s1l for ; Sat, 19 Jun 2021 04:32:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6789C42277; Fri, 18 Jun 2021 18:32:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7XUECE9JiA4O; Fri, 18 Jun 2021 18:32:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 37A5742282; Fri, 18 Jun 2021 18:32:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 710551BF5E9 for ; Fri, 18 Jun 2021 18:31:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6BB59400FF for ; Fri, 18 Jun 2021 18:31:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MYL22tI5Ahfs for ; Fri, 18 Jun 2021 18:31:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by smtp2.osuosl.org (Postfix) with ESMTPS id F09DF401AE for ; Fri, 18 Jun 2021 18:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624041111; bh=YWG1orj/88ph9Q/3oN+omkVdED3tI7eLW1jYcMT+ch8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=b1fi4g6a7D3+iUQWJVu+RtI6G3bQ/MsYGBK2DaV9Dz6921cSLazvb4q7E4Ty9ZXGo Za1AvzaSPd+tDL41PrLJPAU4YnYT4VKzM7BAvzH23oUtB9DUmJNSLLhWawsEs7jhDf s/eMa51MuedFDCrzdkQhVgs4BoX/4st7o90Q3MU4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.79]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MSKuA-1ljDUV23pI-00SeMN; Fri, 18 Jun 2021 20:31:51 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Fri, 18 Jun 2021 20:31:49 +0200 Message-Id: <20210618183150.618-1-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:mUDjgI7VZAZWyZIy5K9qetG2BrCOkjCpoY95LspW8ig7p0JYGRI YWKhPy64q6NxxBQPCVYnZtMl+UZTZvMwD+fEpV1jnV2uAHGV6J/yYrmGw/WNN4/73OHr6VT 1L9vjwLMOhZh1zw+51tCOlXTKKgKhDdGBodtcvgVjPc6jXA2ncnpiYDZSDMNcq4W166EZsP Q8ehBdYEgrpnRgmy6vSFg== X-UI-Out-Filterresults: notjunk:1;V03:K0:rkqH7Add3qA=:d3bBdOKDjBIpWZ8lkh/ib2 kBVc0f9XbniVnzRbLYvm9RYaZSaklkUBC7AB4i/JtkYNNmMcU/c8HcDG1RE5A9CLQwaZsoV5X /GcBBlozV0VfQN2v4MJYGTD+ckmj26klQmzmj7hTjVGK2XDKxALPLFzdesi8KcoCFPg1zDgiL D0HFol3QZpZAf86ZHNf5x0gKB8EM7oAhMfLQeAuZyHXx9a4LNyDjIWgd0VfEcPgccri+oBue0 32PkWSCnY/fRkacQ5nwC7WUgrLnCfeg/9Xx5WIg4CjgGHgE0qMu0llZ9UuzmxfammAuhRafQU HijffhYitDFd8zkbA+NVxpDGJg6Ylu7TOWcJP+FrQsANTykR+wOeLYPG1LmV2HGOPELwQ7xUM 7OIlcppGgAGv0fX/3Y/6AKL1VAEAQVasNYweEImI+UtuT82QNk6RN+wdTSUZQSlCktZd6Iwbg m7GoIEHJgrDpHkJ3SqF/2zcH32DzJxK4TmEf9a3LCoxWDsUuA00Na58NeswNbfgHKyvor2Llq jJiu1qqTAgfZclHjkyKkAcXgjbbTfBRH8rNf+7+A/Jpq/2LnSQ1JP1ullsDHNOOKi+RTdI2ky b/ayHFXqHRZ2KOrDLZbpEJoPz8qNobyJ61aCHJ4XHuosl4GDLlbUvNt21ze26igeojGPd/H0W edjNtSfySe/Dwk6lhZYm4TraVfZYzyuqWMF1duLXFF1blruV8k13dDVr5Ev04WfvAAKGR1EzV 9xoqjZkU1LOGMx6NdHqX6PSIkIc/I/nv1NMuIjir40w5bZ+YQqu7AWrDwGnGJgiwj/9oBE9Cf iVhDXM+X4YNMxdRdxgoKx8pADZscOH3uxjl6kJKeTNY41Vz0QWrAd5KW/xbLvrxc+H9xtsLRU 4zL+nr7mNDIjLM39QBpRagj5/oIBsr0ptnfLxDnaB6YVU7ynQMxQW4tf5F+Cfb1W30tLiMUKy reHQpbYk3oSj4herRNrfPZNrK5jmdGcefFhcAGFvy9acpP4qMAQttqbD9icz2MFCyYYoBr3Kw gIGh/UeTYNhFrRMmQ8icQ0bEW9c3N3c4cyqD2vxqZYGnsHr6nLJn0lFoCFmVCUaPjE9MnOY/f GpRjeYzfjqSZrS9SaX5EuMM38eGe55gbPva Subject: [Buildroot] [PATCH v1 1/2] package/sane-backends: fix uclibc compile (missing stdarg.h include for va_list/va_start/va_end) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add missing stdarg.h include for va_list/va_start/va_end. Fixes: - http://autobuild.buildroot.net/results/88f4ea971875b1a5eb88662326d9343341eaaea2 microtek.c: In function ‘MDBG_INIT’: microtek.c:163:3: error: unknown type name ‘va_list’ 163 | va_list ap; | ^~~~~~~ microtek.c:78:1: note: ‘va_list’ is defined in header ‘’; did you forget to ‘#include ’? 77 | #include "microtek.h" +++ |+#include 78 | microtek.c:164:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-declaration] 164 | va_start(ap, format); | ^~~~~~~~ | sane_start microtek.c:165:54: warning: passing argument 4 of ‘vsnprintf’ makes pointer from integer without a cast [-Wint-conversion] 165 | vsnprintf(_mdebug_string, MAX_MDBG_LENGTH, format, ap); | ^~ | | | int In file included from ../include/sane/sanei_config.h:50, from microtek.c:70: .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:359:57: note: expected ‘__va_list_tag *’ but argument is of type ‘int’ 359 | const char *__restrict __format, __gnuc_va_list __arg) | ~~~~~~~~~~~~~~~^~~~~ microtek.c:166:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration] 166 | va_end(ap); | ^~~~~~ and sm3600-scanutil.c: In function ‘debug_printf’: sm3600-scanutil.c:69:3: error: unknown type name ‘va_list’ 69 | va_list ap; | ^~~~~~~ sm3600-scanutil.c:48:1: note: ‘va_list’ is defined in header ‘’; did you forget to ‘#include ’? 47 | #include "sm3600-scantool.h" +++ |+#include 48 | sm3600-scanutil.c:75:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-decla ration] 75 | va_start(ap,szFormat); | ^~~~~~~~ | sane_start sm3600-scanutil.c:76:28: warning: passing argument 3 of ‘vfprintf’ makes pointer from integer without a cast [-Wint-conversion] 76 | vfprintf(stderr,szFormat,ap); | ^~ | | | int In file included from ../include/sane/sanei_config.h:50, from sm3600.c:70: .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:339:23: note: expected ‘__va_list_tag *’ but argument is of type ‘int’ 339 | __gnuc_va_list __arg); | ~~~~~~~~~~~~~~~^~~~~ In file included from sm3600.c:94: sm3600-scanutil.c:77:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration] 77 | va_end(ap); | ^~~~~~ Signed-off-by: Peter Seiderer --- ...-fix-uclibc-compile-include-stdarg.h.patch | 58 ++++++++++++++++++ ...canutil-fix-uclibc-compile-include-s.patch | 59 +++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 package/sane-backends/0004-backend-microtek-fix-uclibc-compile-include-stdarg.h.patch create mode 100644 package/sane-backends/0005-backend-sm3600-scanutil-fix-uclibc-compile-include-s.patch diff --git a/package/sane-backends/0004-backend-microtek-fix-uclibc-compile-include-stdarg.h.patch b/package/sane-backends/0004-backend-microtek-fix-uclibc-compile-include-stdarg.h.patch new file mode 100644 index 0000000000..c5af162469 --- /dev/null +++ b/package/sane-backends/0004-backend-microtek-fix-uclibc-compile-include-stdarg.h.patch @@ -0,0 +1,58 @@ +From 145e16008e7479ea58278e55f71d6dfcd4db714b Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Fri, 18 Jun 2021 19:51:45 +0200 +Subject: [PATCH] backend/microtek: fix uclibc compile (include stdarg.h for + va_list/va_start/va_end) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + + microtek.c: In function ‘MDBG_INIT’: + microtek.c:163:3: error: unknown type name ‘va_list’ + 163 | va_list ap; + | ^~~~~~~ + microtek.c:78:1: note: ‘va_list’ is defined in header ‘’; did you forget to ‘#include ’? + 77 | #include "microtek.h" + +++ |+#include + 78 | + microtek.c:164:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-declaration] + 164 | va_start(ap, format); + | ^~~~~~~~ + | sane_start + microtek.c:165:54: warning: passing argument 4 of ‘vsnprintf’ makes pointer from integer without a cast [-Wint-conversion] + 165 | vsnprintf(_mdebug_string, MAX_MDBG_LENGTH, format, ap); + | ^~ + | | + | int + In file included from ../include/sane/sanei_config.h:50, + from microtek.c:70: + .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:359:57: note: expected ‘__va_list_tag *’ but argument is of type ‘int’ + 359 | const char *__restrict __format, __gnuc_va_list __arg) + | ~~~~~~~~~~~~~~~^~~~~ + microtek.c:166:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration] + 166 | va_end(ap); + | ^~~~~~ + +[Upstream: https://gitlab.com/sane-project/backends/-/merge_requests/638] +Signed-off-by: Peter Seiderer +--- + backend/microtek.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/backend/microtek.c b/backend/microtek.c +index 200a69c1a..63560179c 100644 +--- a/backend/microtek.c ++++ b/backend/microtek.c +@@ -57,6 +57,7 @@ + + #include "../include/sane/config.h" + ++#include + #include + #include + #include +-- +2.31.1 + diff --git a/package/sane-backends/0005-backend-sm3600-scanutil-fix-uclibc-compile-include-s.patch b/package/sane-backends/0005-backend-sm3600-scanutil-fix-uclibc-compile-include-s.patch new file mode 100644 index 0000000000..0ea9de245e --- /dev/null +++ b/package/sane-backends/0005-backend-sm3600-scanutil-fix-uclibc-compile-include-s.patch @@ -0,0 +1,59 @@ +From 7dafc52dda96fa68f39058b10eec3d822fd5ea9d Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Fri, 18 Jun 2021 19:56:56 +0200 +Subject: [PATCH] backend/sm3600-scanutil: fix uclibc compile (include stdarg.h + for va_list/va_start/va_end) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + + sm3600-scanutil.c: In function ‘debug_printf’: + sm3600-scanutil.c:69:3: error: unknown type name ‘va_list’ + 69 | va_list ap; + | ^~~~~~~ + sm3600-scanutil.c:48:1: note: ‘va_list’ is defined in header ‘’; did you forget to ‘#include ’? + 47 | #include "sm3600-scantool.h" + +++ |+#include + 48 | + sm3600-scanutil.c:75:3: warning: implicit declaration of function ‘va_start’; did you mean ‘sane_start’? [-Wimplicit-function-declaration] + 75 | va_start(ap,szFormat); + | ^~~~~~~~ + | sane_start + sm3600-scanutil.c:76:28: warning: passing argument 3 of ‘vfprintf’ makes pointer from integer without a cast [-Wint-conversion] + 76 | vfprintf(stderr,szFormat,ap); + | ^~ + | | + | int + In file included from ../include/sane/sanei_config.h:50, + from sm3600.c:70: + .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/stdio.h:339:23: note: expected ‘__va_list_tag *’ but argument is of type ‘int’ + 339 | __gnuc_va_list __arg); + | ~~~~~~~~~~~~~~~^~~~~ + In file included from sm3600.c:94: + sm3600-scanutil.c:77:3: warning: implicit declaration of function ‘va_end’ [-Wimplicit-function-declaration] + 77 | va_end(ap); + | ^~~~~~ + +[Upstream: https://gitlab.com/sane-project/backends/-/merge_requests/638] +Signed-off-by: Peter Seiderer +--- + backend/sm3600-scanutil.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/backend/sm3600-scanutil.c b/backend/sm3600-scanutil.c +index 6fe67ed0c..616bf3f4c 100644 +--- a/backend/sm3600-scanutil.c ++++ b/backend/sm3600-scanutil.c +@@ -43,6 +43,7 @@ Userspace scan tool for the Microtek 3600 scanner + + ====================================================================== */ + ++#include + #include + #include "sm3600-scantool.h" + +-- +2.31.1 + From patchwork Fri Jun 18 18:31:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1494387 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=bn6MzayQ; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G66w474xgz9s1l for ; Sat, 19 Jun 2021 04:32:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4686160586; Fri, 18 Jun 2021 18:31:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ZJQnxqCUpl0; Fri, 18 Jun 2021 18:31:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 76C7D607BF; Fri, 18 Jun 2021 18:31:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 44A661BF5E9 for ; Fri, 18 Jun 2021 18:31:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 33D54401EE for ; Fri, 18 Jun 2021 18:31:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DspWvH3TbXs3 for ; Fri, 18 Jun 2021 18:31:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by smtp2.osuosl.org (Postfix) with ESMTPS id B5833400FF for ; Fri, 18 Jun 2021 18:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1624041112; bh=c8PWMLJlfArKQjS7wkIzdsw9qTjZXmsO4vhf0J8J9XU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bn6MzayQ4S3krn4lPY6hsq8+5dxGpym5r4rpCEeWbKY+/KDkt+N49C8hVK3PYYKIC AhCADOpuO1OljbiV1+pSNI3S1HAjfpr1GiQ05xpl3mffibxrndK6jr8v6BZo6qY+TH hKBea6V98FQA7B/eQzFpkgci/QUEanCy5erTRT4U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.fritz.box ([62.216.209.79]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMobO-1lbXRT3CTc-00IjG3; Fri, 18 Jun 2021 20:31:51 +0200 From: Peter Seiderer To: buildroot@buildroot.org Date: Fri, 18 Jun 2021 20:31:50 +0200 Message-Id: <20210618183150.618-2-ps.report@gmx.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210618183150.618-1-ps.report@gmx.net> References: <20210618183150.618-1-ps.report@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:90vWah04xh6xTxd+J34FPyRE9tWxuHN7qvVBjX4zS45Q4bG4e+5 gEzlswHbOJreSJ5nZ2XJ82UTs7RuSzziWBRwliADOMAgmUGNDyx3Be0CqAZf5u2o8sqJRFe gg4/2uSCxxhp3wIv/xSi69mYccT9DMw+Q6YT2lN+hpc0krfBQsstrJbcgyr+2NKjRSCAdnF kDVBW7NdAoHpIUmeMtaNQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:B5d5MFFwptE=:gtjsAiR9wAWkZqcpkKaYrt sjPAO4iwgo0DOLqdcK82QaRaqJcisW6ffS+GYcdoI8gKZeO0lOstDAKmL7PgYlK0Baztj2r0s kNohPaJ3BY4rBQ9yRdKcVtOIEzV2eu+K8i+GDdNFyFkKGVq+XltHWECOFJivwj+s3MkkxIuJw i03lnxfouYigtY/0OutOm5NVGw5NCrmKGrER8nXI34aO0GCrueV5vepYF36jkwQFKDF2IIGkA fnB9l08QTZE3Zti1j0zIyfk8I2HpV7n/J3kaK4NJv+nVwU6y5RZL08j4ZtK3QnhagxiPMYT3V gSitXNxvp/S2GXSaebq0mH9gr/r3MiIqelZJnzMMYSxm54XMJocf5OAOl4FWVzxe3vCEp4TZA 59Vl7F42ks3/CI1fiukjFxwmuJI5+kXwJWnWZE87r5z7rfs+Om1bFzPMQywCxZXa+3UkCX/Pj 3O+yEah9Yeq0Mw2qaedwuUrP1edoh+smTbi524aH53l6rs6A8jaD39B89kPtanVKXojemGsTe 1AdahtqjbbL/hyk02Ah9smO4W7W1m/nZ7c8VcDNO3XlTsDDC+3qbp4MYTD2Zzb4lDvMmMDOch m8G1vMGHFAVi1rvPuoShqV/w6OND0gbOM9OVmCMG2bo36EWdIZjPxlrolhWsMuS5gR4kOKqYz olvrXN31GoylVwmvMDOlSOW/oAbFjjT4f93gjg/e9OT7c86yHdl09Xk+rbEKypiHvpU1fWpLX DRhJ9KXPSkHc9b7K87Q9Udv2S2tTZ09zCjq8OcDTPInqSXO8BJq9D7UfwweAbIND+PHnKjGFG pP1zgrCEw/cLAVrEtzrRSEm5O/HQpblhlfHoe9sgVolwnCytYGQvjh46LDYqImVcX1R0uE2X8 YvUbut101Vy/3+OP1w5bpYTh0VMJMixe/T/O2poE+/spkbHpNlECFTSuJE2DecK5VBiaVLyZy tX8bQZA0drYE1M85KkauBlBhTANhbQSfjj5Kqzz1Y2nlFJSoLXKp+WUnDJoPbqY1HkM1tSsac 91izMbaPSLjPMzK9UApmnbA+MWlKh1/ZpZkgwXNlxFdfbFMPflMxjkdYPuRK5sAwjkiNRZVls C3qkEEKpJHWcf0ljI9TUvyIzrloHQo5XR1R7VvU5PWrbZDJfCsASmZfFpIPVeeUsbnkrpY0pi Yqo3XzfWBwWIR9HZ+LBtrn8PBYxmkFrl787F7/xIOVdq5xbFaxsqsQu+Xf4OI0t8yyqhY= Subject: [Buildroot] [PATCH v1 2/2] package/sane-backends: fix NDEBUG compile (missing PDBG before pixma_dbg) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add patch to add missing PDBG before pixma_dbg. Fixes: - http://autobuild.buildroot.net/results/88f4ea971875b1a5eb88662326d9343341eaaea2 .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: ./.libs/libpixma.a(libpixma_la-pixma_common.o): in function `sanei_pixma_read_image': pixma_common.c:(.text+0xc05): undefined reference to `DBG' .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xc38): undefined reference to `DBG' .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xcbf): undefined reference to `DBG' Signed-off-by: Peter Seiderer --- ...ackend-pixma-fix-compile-with-NDEBUG.patch | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 package/sane-backends/0006-backend-pixma-fix-compile-with-NDEBUG.patch diff --git a/package/sane-backends/0006-backend-pixma-fix-compile-with-NDEBUG.patch b/package/sane-backends/0006-backend-pixma-fix-compile-with-NDEBUG.patch new file mode 100644 index 0000000000..2213cdb9b5 --- /dev/null +++ b/package/sane-backends/0006-backend-pixma-fix-compile-with-NDEBUG.patch @@ -0,0 +1,47 @@ +From b1021e09e435e6c727303b9bfa2f69eb8fcf958a Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Fri, 18 Jun 2021 20:10:02 +0200 +Subject: [PATCH] backend/pixma: fix compile with NDEBUG + +Fixes: + + .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: ./.libs/libpixma.a(libpixma_la-pixma_common.o): in function `sanei_pixma_read_image': +pixma_common.c:(.text+0xc05): undefined reference to `DBG' + .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xc38): undefined reference to `DBG' + .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xcbf): undefined reference to `DBG' + +[Upstream: https://gitlab.com/sane-project/backends/-/merge_requests/638] +Signed-off-by: Peter Seiderer +--- + backend/pixma/pixma_common.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/backend/pixma/pixma_common.c b/backend/pixma/pixma_common.c +index 6bce4bce9..24912b863 100644 +--- a/backend/pixma/pixma_common.c ++++ b/backend/pixma/pixma_common.c +@@ -968,16 +968,16 @@ pixma_read_image (pixma_t * s, void *buf, unsigned len) + s->last_source = s->param->source; + if ((s->cur_image_size != s->param->image_size) && !s->param->mode_jpeg) + { +- pixma_dbg (1, "WARNING:image size mismatches\n"); +- pixma_dbg (1, ++ PDBG (pixma_dbg (1, "WARNING:image size mismatches\n")); ++ PDBG (pixma_dbg (1, + " %"PRIu64" expected (%d lines) but %"PRIu64" received (%"PRIu64" lines)\n", + s->param->image_size, s->param->h, + s->cur_image_size, +- s->cur_image_size / s->param->line_size); ++ s->cur_image_size / s->param->line_size)); + if ((s->cur_image_size % s->param->line_size) != 0) + { +- pixma_dbg (1, +- "BUG:received data not multiple of line_size\n"); ++ PDBG (pixma_dbg (1, ++ "BUG:received data not multiple of line_size\n")); + } + } + if ((s->cur_image_size < s->param->image_size) && !s->param->mode_jpeg) +-- +2.31.1 +