Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
@ 2017-06-15 18:05 Dmitrii Kolesnichenko
  2017-06-15 21:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-15 18:05 UTC (permalink / raw)
  To: buildroot

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) {
|              ^~~~~~~~~

It includes stdint.h to provide uintptr_t.

This patch 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,26 @@
+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@...>
+---
+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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  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
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2017-06-15 21:19 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 15 Jun 2017 21:05:17 +0300, Dmitrii Kolesnichenko wrote:
> 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) {
> |              ^~~~~~~~~
> 
> It includes stdint.h to provide uintptr_t.
> 
> This patch has been submitted upstream:
> https://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/
> 
> Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>

Thanks for the contribution. However, could you be more specific about
which Buildroot configuration triggers this build failure?

I don't see build failures on libtirpc in our autobuilders
(http://autobuild.buildroot.net/).

> 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,26 @@
> +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@...>

Please add your Signed-off-by here as well. Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-15 21:19 ` Thomas Petazzoni
@ 2017-06-16 11:51   ` Dmitrii Kolesnichenko
  2017-06-16 12:25     ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-16 11:51 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

> Thanks for the contribution. However, could you be more specific about which Buildroot configuration triggers this build failure?

It occurs when I build rootfs for ARC glibc toolchain. When I build uClibc toolchain this failure doesn't occur.

Thanks,

Dmitrii Kolesnichenko

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  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
  0 siblings, 2 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2017-06-16 12:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 16 Jun 2017 11:51:49 +0000, Dmitrii Kolesnichenko wrote:

> > Thanks for the contribution. However, could you be more specific
> > about which Buildroot configuration triggers this build failure?  
> 
> It occurs when I build rootfs for ARC glibc toolchain. When I build
> uClibc toolchain this failure doesn't occur.

That is weird. Why we aren't seeing this with our other glibc
toolchains? Is it because you're testing with the latest glibc master,
which exhibits this issue?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-16 12:25     ` Thomas Petazzoni
@ 2017-06-16 15:40       ` Dmitrii Kolesnichenko
  2017-06-19 15:06       ` Dmitrii Kolesnichenko
  1 sibling, 0 replies; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-16 15:40 UTC (permalink / raw)
  To: buildroot


> > > Thanks for the contribution. However, could you be more specific 
> > > about which Buildroot configuration triggers this build failure?
> > 
> > It occurs when I build rootfs for ARC glibc toolchain. When I build 
> > uClibc toolchain this failure doesn't occur.
> 
> That is weird. Why we aren't seeing this with our other glibc toolchains? Is it because you're testing with the latest glibc master, which exhibits this issue?

Yes, you're right. It happens because I'm testing with the latest glibc master. I tried to build rootfs for i386 with the latest glibc master and received the same error.

Thanks,

Dmitrii Kolesnichenko

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  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
  1 sibling, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-19 15:06 UTC (permalink / raw)
  To: buildroot

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) {
|              ^~~~~~~~~

It includes stdint.h to provide uintptr_t.

This patch 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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-19 15:06       ` Dmitrii Kolesnichenko
@ 2017-06-19 19:31         ` Thomas Petazzoni
  2017-06-20  8:51           ` [Buildroot] [PATCH v3] " Dmitrii Kolesnichenko
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2017-06-19 19:31 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 19 Jun 2017 18:06:26 +0300, Dmitrii Kolesnichenko wrote:
> 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) {
> |              ^~~~~~~~~
> 
> It includes stdint.h to provide uintptr_t.
> 
> This patch has been submitted upstream:
> https://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/
> 
> Signed-off-by: Dmitrii Kolesnichenko <dmitrii@synopsys.com>

Thanks, but this commit log and patch description still don't explain
with which version of glibc you're seeing the problem. Indeed, this
error has not been caught by our autobuilders, so one may wonder why
this additional patch is needed.

Can you add such an explanation in the commit description?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v3] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-19 19:31         ` Thomas Petazzoni
@ 2017-06-20  8:51           ` Dmitrii Kolesnichenko
  2017-06-20 10:47             ` Alexey Brodkin
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-20  8:51 UTC (permalink / raw)
  To: buildroot

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v3] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-20  8:51           ` [Buildroot] [PATCH v3] " Dmitrii Kolesnichenko
@ 2017-06-20 10:47             ` Alexey Brodkin
  2017-06-20 16:55               ` [Buildroot] [PATCH v4] " Dmitrii Kolesnichenko
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey Brodkin @ 2017-06-20 10:47 UTC (permalink / raw)
  To: buildroot

Hi Dmitrii,

On Tue, 2017-06-20 at 11:51 +0300, Dmitrii Kolesnichenko wrote:
> 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.

If we're talking about development branch but not a tag it makes
sense to mention commit you're using (in upstream glibc but not any
arc-specific). That way people may understand better where were you
while seeing that problem.

> 
> Patch includes stdint.h to provide uintptr_t.
> 
> It has been submitted upstream:
> https://sourceforge.net/p/libtirpc/mailman/libtirpc-devel/

It worth pointing to a particular message or even better to a commit if it exists.
In your case the patch is here?https://sourceforge.net/p/libtirpc/mailman/message/35850276/
And interesting enough there were no replies since the patch was posted a month ago,
so I would propose to ping libtirpc maintainer to make sure the patch gets accepted sometime soon.

-Alexey

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v4] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-20 10:47             ` Alexey Brodkin
@ 2017-06-20 16:55               ` Dmitrii Kolesnichenko
  2017-06-20 20:10                 ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitrii Kolesnichenko @ 2017-06-20 16:55 UTC (permalink / raw)
  To: buildroot

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 (during the testing I had
glibc commit 92bd70fb85bce57ac47ba5d8af008736832c955a), 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/message/35850276/

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

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH v4] libtirpc: Fix build error due to missing stdint.h inclusion
  2017-06-20 16:55               ` [Buildroot] [PATCH v4] " Dmitrii Kolesnichenko
@ 2017-06-20 20:10                 ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2017-06-20 20:10 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 20 Jun 2017 19:55:31 +0300, Dmitrii Kolesnichenko wrote:
> 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 (during the testing I had
> glibc commit 92bd70fb85bce57ac47ba5d8af008736832c955a), 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/message/35850276/
> 
> 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

Applied to master, thanks. However, I reformatted the patch using Git,
because upstream libtirpc uses git. It would be nice to do so for your
next patches to Buildroot packages. Thanks a lot for this contribution!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-20 20:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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           ` [Buildroot] [PATCH v3] " Dmitrii Kolesnichenko
2017-06-20 10:47             ` Alexey Brodkin
2017-06-20 16:55               ` [Buildroot] [PATCH v4] " Dmitrii Kolesnichenko
2017-06-20 20:10                 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox