All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitrii Kolesnichenko <Dmitrii.Kolesnichenko@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] libtirpc: Fix build error due to missing stdint.h inclusion
Date: Tue, 20 Jun 2017 11:51:46 +0300	[thread overview]
Message-ID: <20170620085146.8558-1-dmitrii@synopsys.com> (raw)
In-Reply-To: <20170619213140.731daabb@windsurf.home>

Add patch to fix following error:
| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
|   if (len < (uintptr_t)xdrs->x_base) {
|              ^~~~~~~~~

This error occurs with the latest glibc master version, but doesn't occur with
version 2.25.

Patch includes stdint.h to provide uintptr_t.

It has been submitted upstream:
https://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/

Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>
---
 ...ild-error-due-to-missing-stdint.h-include.patch | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch

diff --git a/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch b/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch
new file mode 100644
index 0000000..ccb0dff
--- /dev/null
+++ b/package/libtirpc/0008-Fix-build-error-due-to-missing-stdint.h-include.patch
@@ -0,0 +1,27 @@
+Fixes
+| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
+|   if (len < (uintptr_t)xdrs->x_base) {
+|              ^~~~~~~~~
+
+Signed-off-by: Khem Raj <raj.khem@...>
+Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>
+---
+Upstream-Status: Pending
+
+ src/xdr_sizeof.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
+index d23fbd1..79d6707 100644
+--- a/src/xdr_sizeof.c
++++ b/src/xdr_sizeof.c
+@@ -39,6 +39,7 @@
+ #include <rpc/xdr.h>
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include "un-namespace.h"
+ 
+ /* ARGSUSED */
+-- 
+2.13.0
-- 
1.8.3.1

  reply	other threads:[~2017-06-20  8:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 18:05 [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion Dmitrii Kolesnichenko
2017-06-15 21:19 ` Thomas Petazzoni
2017-06-16 11:51   ` Dmitrii Kolesnichenko
2017-06-16 12:25     ` Thomas Petazzoni
2017-06-16 15:40       ` Dmitrii Kolesnichenko
2017-06-19 15:06       ` Dmitrii Kolesnichenko
2017-06-19 19:31         ` Thomas Petazzoni
2017-06-20  8:51           ` Dmitrii Kolesnichenko [this message]
2017-06-20 10:47             ` [Buildroot] [PATCH v3] " Alexey Brodkin
2017-06-20 16:55               ` [Buildroot] [PATCH v4] " Dmitrii Kolesnichenko
2017-06-20 20:10                 ` Thomas Petazzoni

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=20170620085146.8558-1-dmitrii@synopsys.com \
    --to=dmitrii.kolesnichenko@synopsys.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.