Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532266

Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning

From Michal Marek <mmarek@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning
Date 2016-11-29 14:10 +0100
Message-ID <sIQky-rW-37@gated-at.bofh.it> (permalink)
References <sIaEG-6Hs-3@gated-at.bofh.it> <sIrFv-YK-3@gated-at.bofh.it> <sIza1-5Q3-21@gated-at.bofh.it> <sIAIO-6Si-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 28, 2016 at 09:29:21PM +0100, Paul Bolle wrote:
> [Dropped Yann.]
> 
> On Tue, 2016-11-29 at 02:46 +0800, Cheah Kok Cheong wrote:
> > On Mon, Nov 28, 2016 at 11:39:01AM +0100, Michal Marek wrote:
> > > The Makefile does not specify -D_GNU_SOURCE. Are you adding it manually?
> 
> On Fedora 24 I'm able to trigger this too:
>     $ [...]
>     make -f ./scripts/Makefile.build obj=scripts/kconfig nconfig
>       gcc -Wp,-MD,scripts/kconfig/.nconf.o.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89   -D_GNU_SOURCE -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE   -c -o scripts/kconfig/nconf.o scripts/kconfig/nconf.c
>     scripts/kconfig/nconf.c:8:0: warning: "_GNU_SOURCE" redefined
>      #define _GNU_SOURCE
>      
>     <command-line>:0:0: note: this is the location of the previous definition
> 
> It's probably added by pkg-config:
>     $ pkg-config --cflags ncursesw
>     -D_GNU_SOURCE

I see. That's not nice of the pkconfig file to set such macro, but oh
well. I applied the patch to kbuild.git#kconfig now, thanks Cheah.

Michal

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning Cheah Kok Cheong <thrust73@gmail.com> - 2016-11-27 17:40 +0100
  Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined  warning Michal Marek <mmarek@suse.cz> - 2016-11-28 11:50 +0100
    Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined  warning Cheah Kok Cheong <thrust73@gmail.com> - 2016-11-28 19:50 +0100
      Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined  warning Paul Bolle <pebolle@tiscali.nl> - 2016-11-28 21:30 +0100
        Re: [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined  warning Michal Marek <mmarek@suse.com> - 2016-11-29 14:10 +0100

csiph-web