From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v1 1/2] package/sane-backends: fix uclibc compile (missing stdarg.h include for va_list/va_start/va_end)
Date: Sun, 18 Jul 2021 13:50:57 +0200 [thread overview]
Message-ID: <20210718135057.33e39218@windsurf> (raw)
In-Reply-To: <20210618183150.618-1-ps.report@gmx.net>
On Fri, 18 Jun 2021 20:31:49 +0200
Peter Seiderer <ps.report@gmx.net> wrote:
> 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 ?<stdarg.h>?; did you forget to ?#include <stdarg.h>??
> 77 | #include "microtek.h"
> +++ |+#include <stdarg.h>
> 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 ?<stdarg.h>?; did you forget to ?#include <stdarg.h>??
> 47 | #include "sm3600-scantool.h"
> +++ |+#include <stdarg.h>
> 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 <ps.report@gmx.net>
> ---
> ...-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
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2021-07-18 11:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 18:31 [Buildroot] [PATCH v1 1/2] package/sane-backends: fix uclibc compile (missing stdarg.h include for va_list/va_start/va_end) Peter Seiderer
2021-06-18 18:31 ` [Buildroot] [PATCH v1 2/2] package/sane-backends: fix NDEBUG compile (missing PDBG before pixma_dbg) Peter Seiderer
2021-07-04 19:57 ` Yann E. MORIN
2021-07-18 11:50 ` Thomas Petazzoni [this message]
2021-08-04 7:48 ` [Buildroot] [PATCH v1 1/2] package/sane-backends: fix uclibc compile (missing stdarg.h include for va_list/va_start/va_end) Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210718135057.33e39218@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox