All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] package/openpowerlink: fix uClibc build
Date: Wed,  8 Jun 2016 23:21:59 +0200	[thread overview]
Message-ID: <1465420919-3920-3-git-send-email-romain.naour@gmail.com> (raw)
In-Reply-To: <1465420919-3920-1-git-send-email-romain.naour@gmail.com>

In the demo application code, va_list type is used in eventlogstring.h
so stdarg.h must be included to define it.

This problem occurs with a uClibc-ng based toolchain.

Fixes:
http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 ...apps-include-stdarg.h-in-eventlogstring.h.patch | 61 ++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch

diff --git a/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch b/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
new file mode 100644
index 0000000..70e44c2
--- /dev/null
+++ b/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
@@ -0,0 +1,61 @@
+From 533f40e097b8d08e1dfeb03e2484a4369fad778f Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Wed, 8 Jun 2016 13:13:36 +0200
+Subject: [PATCH] [FIX] apps: include stdarg.h in eventlogstring.h
+
+va_list type is used in eventlogstring.h so it must include stdarg.h to define
+it.
+
+Upstream status: Pending
+https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/127
+
+Fixes:
+http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2/build-end.log
+
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+---
+ apps/common/src/eventlog/eventlog.c       | 1 -
+ apps/common/src/eventlog/eventlogstring.c | 1 -
+ apps/common/src/eventlog/eventlogstring.h | 2 ++
+ 3 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/apps/common/src/eventlog/eventlog.c b/apps/common/src/eventlog/eventlog.c
+index f2193e2..eba1101 100644
+--- a/apps/common/src/eventlog/eventlog.c
++++ b/apps/common/src/eventlog/eventlog.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+ 
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+ 
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.c b/apps/common/src/eventlog/eventlogstring.c
+index 9fb677b..a55a1a4 100644
+--- a/apps/common/src/eventlog/eventlogstring.c
++++ b/apps/common/src/eventlog/eventlogstring.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #include "eventlogstring.h"
+ 
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+ 
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.h b/apps/common/src/eventlog/eventlogstring.h
+index 2c291a6..3a5f2fa 100644
+--- a/apps/common/src/eventlog/eventlogstring.h
++++ b/apps/common/src/eventlog/eventlogstring.h
+@@ -41,6 +41,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+ // includes
+ //------------------------------------------------------------------------------
++#include <stdarg.h>
++
+ #include <oplk/oplk.h>
+ #include <oplk/nmt.h>
+ 
+-- 
+2.5.5
+
-- 
2.5.5

  parent reply	other threads:[~2016-06-08 21:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 21:21 [Buildroot] [PATCH 1/3] pckage/openpowerlink: fix sha256 hash Romain Naour
2016-06-08 21:21 ` [Buildroot] [PATCH 2/3] package/openpowerlink: link demos applications with PCIe library interface Romain Naour
2016-06-08 21:21 ` Romain Naour [this message]
2016-06-08 21:25 ` [Buildroot] [PATCH 1/3] pckage/openpowerlink: fix sha256 hash Thomas Petazzoni
2016-06-08 21:29   ` Romain Naour

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=1465420919-3920-3-git-send-email-romain.naour@gmail.com \
    --to=romain.naour@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.