Skip to contentSkip to conversation

package/libtirpc: fix compilation error

Buildroot Dagg Stompler 2 participants 3 messages Nov 25, 2017

lore
Share & tools
lore
#0 lore raw

fix rpc_parse.c's compilation failure

---
 package/libtirpc/0003-Add-rpcgen-program-from-nfs-utils-sources.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/libtirpc/0003-Add-rpcgen-program-from-nfs-utils-sources.patch +2 -2
index 1cf861417c..fee91d4adc 100644
@@ -83,8 +83,8 @@ index 0000000..2277b6f
 --- /dev/null
 +++ b/rpcgen/Makefile.am
 @@ -0,0 +1,22 @@
-+COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-+	$(CPPFLAGS_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
++COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) -I$(top_builddir)/tirpc \
++	$(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
 +LINK = $(CC_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
 +
 +noinst_PROGRAMS = rpcgen
Signature · 1 line
2.15.0
#1 lore raw
Quoted 1 line · Dagg Stompler

fix rpc_parse.c's compilation failure

When sending a fix like this which is not visible in the autobuilders, make
sure to also send a defconfig that reproduces it, as well as the build error itself.

I took a look and I think this is about rpc_parse.c which include rpc/types.h.
I believe the tirpc code is correct however. rpcgen is a host tool, so it makes sense to me that it uses the host's headers, not its own headers.

rpc/types.h should be part of your system's libc, so how do you get a
compilation failure?

Regards,
Arnout

Quoted 22 lines
---
 package/libtirpc/0003-Add-rpcgen-program-from-nfs-utils-sources.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/libtirpc/0003-Add-rpcgen-program-from-nfs-utils-sources.patch +2 -2
index 1cf861417c..fee91d4adc 100644
@@ -83,8 +83,8 @@ index 0000000..2277b6f
 --- /dev/null
 +++ b/rpcgen/Makefile.am
 @@ -0,0 +1,22 @@
-+COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-+	$(CPPFLAGS_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
++COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) -I$(top_builddir)/tirpc \
++	$(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
 +LINK = $(CC_FOR_BUILD) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
 +
 +noinst_PROGRAMS = rpcgen
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
author
#2 lore raw

Greetings Arnout,

Quoted 13 lines

Sent: Saturday, November 25, 2017 at 7:00 PM
From: "Arnout Vandecappelle" <[email protected]>
To: "Dagg Stompler" <[email protected]>, buildroot at buildroot.org
Subject: Re: [Buildroot] [RPC] package/libtirpc: fix compilation error

Quoted 1 line · Dagg Stompler

fix rpc_parse.c's compilation failure

When sending a fix like this which is not visible in the autobuilders, make
sure to also send a defconfig that reproduces it, as well as the build error itself.

Quoted 7 lines

I took a look and I think this is about rpc_parse.c which include rpc/types.h.
I believe the tirpc code is correct however. rpcgen is a host tool, so it makes sense to me that it uses the host's headers, not its own headers.

rpc/types.h should be part of your system's libc, so how do you get a
compilation failure?

the issue is with libtirpc which isn't an host program, is it a lib used for rpc. the patch in question is a patch added by Thomas and Yann.

to reproduce it, run make raspberrypi2_defconfig on latest git, run menuconfig and select libtirpc.

Dagg.