linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nfs-utils PATCH] idmapd: fix object order in idmapd_LDADD
@ 2017-08-07 19:09 Scott Mayhew
  2017-08-23 18:59 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Mayhew @ 2017-08-07 19:09 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs

nfs-utils and libnfsidmap have similar configuration parsing routines.
They were the same up until nfs-utils commit 7b33590f (config: Remove
the conf_path global), where conf_init() was changed to take a path as
an argument.  With the current idmap_LDADD ordering in Makefile.am, the
conf_init() from libnfsidmap is called, resulting in the following error
along with the failure to parse idmapd.conf:

rpc.idmapd[391]: rpc.idmapd: conf_reinit: open ("(null)", O_RDONLY) failed

Placing libnfs.a first in idmap_LDADD ensures that idmapd uses the config
parsing routines from nfs-utils instead of libnfsidmap.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
---
 utils/idmapd/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/idmapd/Makefile.am b/utils/idmapd/Makefile.am
index c2f8ba1..1e8e9e6 100644
--- a/utils/idmapd/Makefile.am
+++ b/utils/idmapd/Makefile.am
@@ -15,7 +15,7 @@ idmapd_SOURCES = \
 	nfs_idmap.h \
 	queue.h
 
-idmapd_LDADD = $(LIBEVENT) $(LIBNFSIDMAP) ../../support/nfs/libnfs.a
+idmapd_LDADD = ../../support/nfs/libnfs.a $(LIBEVENT) $(LIBNFSIDMAP)
 
 MAINTAINERCLEANFILES = Makefile.in
 
-- 
2.9.4


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

* Re: [nfs-utils PATCH] idmapd: fix object order in idmapd_LDADD
  2017-08-07 19:09 [nfs-utils PATCH] idmapd: fix object order in idmapd_LDADD Scott Mayhew
@ 2017-08-23 18:59 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2017-08-23 18:59 UTC (permalink / raw)
  To: Scott Mayhew; +Cc: linux-nfs



On 08/07/2017 03:09 PM, Scott Mayhew wrote:
> nfs-utils and libnfsidmap have similar configuration parsing routines.
> They were the same up until nfs-utils commit 7b33590f (config: Remove
> the conf_path global), where conf_init() was changed to take a path as
> an argument.  With the current idmap_LDADD ordering in Makefile.am, the
> conf_init() from libnfsidmap is called, resulting in the following error
> along with the failure to parse idmapd.conf:
> 
> rpc.idmapd[391]: rpc.idmapd: conf_reinit: open ("(null)", O_RDONLY) failed
> 
> Placing libnfs.a first in idmap_LDADD ensures that idmapd uses the config
> parsing routines from nfs-utils instead of libnfsidmap.
> 
> Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Committed.... 

steved.
> ---
>  utils/idmapd/Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/idmapd/Makefile.am b/utils/idmapd/Makefile.am
> index c2f8ba1..1e8e9e6 100644
> --- a/utils/idmapd/Makefile.am
> +++ b/utils/idmapd/Makefile.am
> @@ -15,7 +15,7 @@ idmapd_SOURCES = \
>  	nfs_idmap.h \
>  	queue.h
>  
> -idmapd_LDADD = $(LIBEVENT) $(LIBNFSIDMAP) ../../support/nfs/libnfs.a
> +idmapd_LDADD = ../../support/nfs/libnfs.a $(LIBEVENT) $(LIBNFSIDMAP)
>  
>  MAINTAINERCLEANFILES = Makefile.in
>  
> 

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

end of thread, other threads:[~2017-08-23 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 19:09 [nfs-utils PATCH] idmapd: fix object order in idmapd_LDADD Scott Mayhew
2017-08-23 18:59 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).