bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] lib/gettext.h: fix warning if gettext is already present


From: Bruno Haible
Subject: Re: [PATCH] lib/gettext.h: fix warning if gettext is already present
Date: Mon, 27 Jan 2020 18:38:29 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-171-generic; KDE/5.18.0; x86_64; ; )

Giulio Benetti wrote:
> > Since you reported a redefinition warning regarding 'gettext_noop',
> > gettext_noop must have been defined as a macro already elsewhere. Where?
> 
> gettext_noop() is defined in environment gettext.h

What do you mean by "environment gettext.h"??

The documentation [1] says
  "Do not install the gettext.h file in public locations. Every package
   that needs it should contain a copy of it on its own."

There should not be a <gettext.h> in public include file directories!

> and in 
> libbytesize/configure.ac they define:
> CFLAGS="${CFLAGS} -DENABLE_NLS"
> ...
> libbytesize should define ENABLE_NLS according to host gettext presence 

This is perfectly OK. It implies that their package won't compile if
gettext() is not contained in libc or GNU gettext was not installed.
But it is NOT the cause of the warning that you are seeing.

> the problem to be fixed is in libbytesize and 
> it's not fixed by the PR I've already open, I need to modify 
> configure.ac to emit ENABLE_NLS according to host gettext presence.

No, libbytesize is OK.

> only once, it's enough to see gettext_noop() redefined, since it's 
> defined in host.

The "host" that you are alluding to is the problem.

Bruno

[1] 
https://www.gnu.org/software/gettext/manual/html_node/lib_002fgettext_002eh.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]