All of lore.kernel.org
 help / color / mirror / Atom feed
* cifs-utils: make fails if keyutils isn't installed
@ 2012-01-09 16:00 Frédéric L. W. Meunier
       [not found] ` <20120109124038.581218c9@tlielax.poochiereds.net>
  0 siblings, 1 reply; 2+ messages in thread
From: Frédéric L. W. Meunier @ 2012-01-09 16:00 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

I moved from cifs-utils 5.0 to 5.2. I didn't have keyutils installed and 
the compilation failed because configure checks for its presence, but 
doesn't abort if it's missing, and make tries to link to it.

...
checking keyutils.h usability... no
checking keyutils.h presence... no
checking for keyutils.h... no
configure: WARNING: keyutils.h not found, consider installing 
keyutils-libs-devel. Disabling cifs.upcall.
configure: WARNING: keyutils.h not found, consider installing 
keyutils-libs-devel. Disabling cifs.idmap.
...

Makefile.in:

@CONFIG_CIFSACL_TRUE@getcifsacl_LDADD = -lkeyutils $(WINB_LDADD)                
@CONFIG_CIFSACL_TRUE@setcifsacl_LDADD = -lkeyutils $(WINB_LDADD)

Apparently, getcifsacl and setcifsacl don't use keyutils at all, but 
cifs-utils links to it ?

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

* Re: cifs-utils: make fails if keyutils isn't installed
       [not found]   ` <20120109124038.581218c9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
@ 2012-01-09 18:32     ` Shirish Pargaonkar
  0 siblings, 0 replies; 2+ messages in thread
From: Shirish Pargaonkar @ 2012-01-09 18:32 UTC (permalink / raw)
  To: Jeff Layton
  Cc: Frédéric L. W. Meunier,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA

2012/1/9 Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>:
> On Mon, 9 Jan 2012 14:00:15 -0200
> Frédéric L. W. Meunier  <fredlwm-fLz7/M+a0ZzR7s880joybQ@public.gmane.org> wrote:
>
>> I moved from cifs-utils 5.0 to 5.2. I didn't have keyutils installed and
>> the compilation failed because configure checks for its presence, but
>> doesn't abort if it's missing, and make tries to link to it.
>>
>> ...
>> checking keyutils.h usability... no
>> checking keyutils.h presence... no
>> checking for keyutils.h... no
>> configure: WARNING: keyutils.h not found, consider installing
>> keyutils-libs-devel. Disabling cifs.upcall.
>> configure: WARNING: keyutils.h not found, consider installing
>> keyutils-libs-devel. Disabling cifs.idmap.
>> ...
>>
>> Makefile.in:
>>
>> @CONFIG_CIFSACL_TRUE@getcifsacl_LDADD = -lkeyutils $(WINB_LDADD)
>> @CONFIG_CIFSACL_TRUE@setcifsacl_LDADD = -lkeyutils $(WINB_LDADD)
>>
>> Apparently, getcifsacl and setcifsacl don't use keyutils at all, but
>> cifs-utils links to it ?
>
> Good catch. Does this patch fix it?
>
> ----------------------[snip]--------------------
>
> [PATCH] get/setcifsacl: don't link in -lkeyutils
>
> These binaries don't use keys API at all. There's no need to link in
> the keys library.
>
> Reported-by: Frédéric L. W. Meunier  <fredlwm-fLz7/M+a0ZzR7s880joybQ@public.gmane.org>
> Signed-off-by: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
> ---
>  Makefile.am |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index cb20442..038cd0e 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -55,12 +55,12 @@ endif
>  if CONFIG_CIFSACL
>  bin_PROGRAMS += getcifsacl
>  getcifsacl_SOURCES = getcifsacl.c
> -getcifsacl_LDADD = -lkeyutils $(WINB_LDADD)
> +getcifsacl_LDADD = $(WINB_LDADD)
>  man_MANS += getcifsacl.1
>
>  bin_PROGRAMS += setcifsacl
>  setcifsacl_SOURCES = setcifsacl.c
> -setcifsacl_LDADD = -lkeyutils $(WINB_LDADD)
> +setcifsacl_LDADD = $(WINB_LDADD)
>  man_MANS += setcifsacl.1
>
>  endif
> --
> 1.7.7.4
>

Should have never listed keyutils library on the link line in
the first place.

Acked-by: Shirish Pargaonkar <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

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

end of thread, other threads:[~2012-01-09 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09 16:00 cifs-utils: make fails if keyutils isn't installed Frédéric L. W. Meunier
     [not found] ` <20120109124038.581218c9@tlielax.poochiereds.net>
     [not found]   ` <20120109124038.581218c9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-01-09 18:32     ` Shirish Pargaonkar

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.