Skip to contentSkip to conversation

Fixed cross-compilation of nfs-utils tools.

PATCH In review Ihar Hrachyshka 2 participants 3 messages Mar 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed cross-compilation of nfs-utils tools.

Build nfs-utils tools with compiler defined by ./configure script.

---
 tools/locktest/Makefile.am |    4 ----
 tools/rpcdebug/Makefile.am |    4 ----
 tools/rpcgen/Makefile.am   |    5 -----
 3 files changed, 0 insertions(+), 13 deletions(-)
tools/locktest/Makefile.am +0 -4
index 3156815..e89fbad 100644
@@ -1,12 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)
 LIBTOOL = @LIBTOOL@ --tag=CC
 
 noinst_PROGRAMS = testlk
 testlk_SOURCES = testlk.c
-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
 
 MAINTAINERCLEANFILES = Makefile.in
tools/rpcdebug/Makefile.am +0 -4
index 39b70c9..c627b01 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)
 LIBTOOL = @LIBTOOL@ --tag=CC
 
 man8_MANS = rpcdebug.man
@@ -8,8 +7,5 @@ EXTRA_DIST = $(man8_MANS)
 
 sbin_PROGRAMS = rpcdebug
 rpcdebug_SOURCES = rpcdebug.c
-rpcdebug_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcdebug_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/include
-rpcdebug_LDFLAGS=$(LDFLAGS_FOR_BUILD)
 
 MAINTAINERCLEANFILES = Makefile.in
tools/rpcgen/Makefile.am +0 -5
index 51a2bfa..fc75108 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)
 LIBTOOL = @LIBTOOL@ --tag=CC
 
 noinst_PROGRAMS = rpcgen
@@ -9,10 +8,6 @@ rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
 		 rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
 		 rpc_scan.h rpc_util.h
 
-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-
 MAINTAINERCLEANFILES = Makefile.in
 
 EXTRA_DIST = rpcgen.new.1
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 1 line · Ihar Hrachyshka

Build nfs-utils tools with compiler defined by ./configure script.

In the patch description, can you provide some information about the problem you encountered?

Quoted 56 lines

---

tools/locktest/Makefile.am |    4 ----
tools/rpcdebug/Makefile.am |    4 ----
tools/rpcgen/Makefile.am   |    5 -----
3 files changed, 0 insertions(+), 13 deletions(-)
tools/locktest/Makefile.am +0 -1
index 3156815..e89fbad 100644
@@ -1,12 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)

LIBTOOL = @LIBTOOL@ --tag=CC

noinst_PROGRAMS = testlk
testlk_SOURCES = testlk.c

tools/locktest/Makefile.am +0 -3
-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)

MAINTAINERCLEANFILES = Makefile.in

tools/rpcdebug/Makefile.am +0 -1
index 39b70c9..c627b01 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)

LIBTOOL = @LIBTOOL@ --tag=CC

man8_MANS = rpcdebug.man

tools/rpcdebug/Makefile.am +0 -0
@@ -8,8 +7,5 @@ EXTRA_DIST = $(man8_MANS)
 

sbin_PROGRAMS = rpcdebug
rpcdebug_SOURCES = rpcdebug.c

tools/rpcdebug/Makefile.am +0 -2
-rpcdebug_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcdebug_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/ 

include
-rpcdebug_LDFLAGS=$(LDFLAGS_FOR_BUILD)

MAINTAINERCLEANFILES = Makefile.in

tools/rpcgen/Makefile.am +0 -1
index 51a2bfa..fc75108 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=$(CC_FOR_BUILD)

LIBTOOL = @LIBTOOL@ --tag=CC

noinst_PROGRAMS = rpcgen

tools/rpcgen/Makefile.am rpcgen_SOURCES = rpc_clntout.c rpc_cout.c · line 16

Quoted 8 lines
tools/rpcgen/Makefile.am +0 -4
@@ -9,10 +8,6 @@ rpcgen_SOURCES = rpc_clntout.c rpc_cout.c  
 rpc_hout.c rpc_main.c \
 		 rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
 		 rpc_scan.h rpc_util.h
 
-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-

Are you sure rpcgen should be built for the target system? rpcgen only needs to run on the build system; it's not installed on the target, as far as I know. The rpcgen on my systems are from glibc-common.

Quoted 4 lines

MAINTAINERCLEANFILES = Makefile.in

EXTRA_DIST = rpcgen.new.1

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

#2 lore raw

Hm, it seems that the problem is not in nfs-utils though in my cross build system - OpenEmbedded. Sorry for noise.

On Tue, Mar 3, 2009 at 8:03 PM, Chuck Lever <[email protected]> wr= ote:

Quoted 5 lines · Ihar Hrachyshka
Quoted 2 lines

Build nfs-utils tools with compiler defined by ./configure script.

In the patch description, can you provide some information about the =

problem

Quoted 35 lines

you encountered?

Quoted 33 lines

---
tools/locktest/Makefile.am | =C2=A0 =C2=A04 ---- tools/rpcdebug/Makefile.am | =C2=A0 =C2=A04 ---- tools/rpcgen/Makefile.am =C2=A0 | =C2=A0 =C2=A05 -----

3 files changed, 0 insertions(+), 13 deletions(-)
tools/locktest/Makefile.am +0 -1
index 3156815..e89fbad 100644
@@ -1,12 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=3D$(CC_FOR_BUILD)

LIBTOOL =3D @LIBTOOL@ --tag=3DCC

noinst_PROGRAMS =3D testlk
testlk_SOURCES =3D testlk.c

tools/locktest/Makefile.am +0 -3
-testlk_CFLAGS=3D$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=3D$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=3D$(LDFLAGS_FOR_BUILD)

MAINTAINERCLEANFILES =3D Makefile.in

tools/rpcdebug/Makefile.am +0 -1
index 39b70c9..c627b01 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-CC=3D$(CC_FOR_BUILD)

LIBTOOL =3D @LIBTOOL@ --tag=3DCC

Quoted 7 lines

tools/rpcdebug/Makefile.am

Quoted 7 lines

man8_MANS =3D rpcdebug.man

tools/rpcdebug/Makefile.am +0 -0
@@ -8,8 +7,5 @@ EXTRA_DIST =3D $(man8_MANS)
 

sbin_PROGRAMS =3D rpcdebug
rpcdebug_SOURCES =3D rpcdebug.c

tools/rpcdebug/Makefile.am +0 -2
-rpcdebug_CFLAGS=3D$(CFLAGS_FOR_BUILD)
-rpcdebug_CPPFLAGS=3D$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/i=

nclude

Quoted 10 lines
Quoted 10 lines

-rpcdebug_LDFLAGS=3D$(LDFLAGS_FOR_BUILD)

MAINTAINERCLEANFILES =3D Makefile.in

tools/rpcgen/Makefile.am +0 -0
index 51a2bfa..fc75108 100644
@@ -1,6 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
Quoted 5 lines

tools/rpcgen/Makefile.am rpcgen_SOURCES =3D rpc_clntout.c rpc_cout.c rpc_hou=

Quoted 5 lines
tools/rpcgen/Makefile.am +0 -1
-CC=3D$(CC_FOR_BUILD)

LIBTOOL =3D @LIBTOOL@ --tag=3DCC

noinst_PROGRAMS =3D rpcgen

tools/rpcgen/Makefile.am +0 -0
@@ -9,10 +8,6 @@ rpcgen_SOURCES =3D rpc_clntout.c rpc_cout.c rpc_hou=

t.c

Quoted 2 lines
Quoted 2 lines
tools/rpcgen/Makefile.am +0 -0
 rpc_main.c \

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rpc_util.c r=

pc_sample.c rpc_output.h rpc_parse.h \

Quoted 1 line
Quoted 1 line

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 rpc_scan.h r=

pc_util.h

Quoted 7 lines

tools/rpcgen/Makefile.am

Quoted 5 lines
tools/rpcgen/Makefile.am +0 -4
-rpcgen_CFLAGS=3D$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=3D$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=3D$(LDFLAGS_FOR_BUILD)
-

Are you sure rpcgen should be built for the target system? =C2=A0rpcg=

en only

Quoted 1 line

needs to run on the build system; it's not installed on the target, a=

s far

Quoted 11 lines

as I know. =C2=A0The rpcgen on my systems are from glibc-common.

Quoted 4 lines

MAINTAINERCLEANFILES =3D Makefile.in

EXTRA_DIST =3D rpcgen.new.1

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com