Re: tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-23 Thread Dirk Gouders
Hi Borislav, Borislav Petkov writes: > Hi, > > On Wed, May 22, 2013 at 12:00:21PM +0200, Dirk Gouders wrote: >> CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -U_FORTIFY_SOURCE >> -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS) -fPIC > > it seems someone else hit this already and fi

Re: tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-22 Thread Borislav Petkov
On Wed, May 22, 2013 at 01:27:29PM +0200, Dirk Gouders wrote: > Yes, I should have checked the whole log and not just for one file. > And please ignore my other mail which I sent just when yours arrived > ;-) No problem at all - I didn't see the fix either until I started looking at the Makefile s

Re: tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-22 Thread Dirk Gouders
Borislav Petkov writes: > Hi, > > On Wed, May 22, 2013 at 12:00:21PM +0200, Dirk Gouders wrote: >> CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 >> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) >> $(EXTRA_CFLAGS) -fPIC > > it seems someone else hit this already and fixed it too:

Re: tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-22 Thread Dirk Gouders
Dirk Gouders writes: > What probably might help in any case is undefining _FORTIFY_SOURCE before > defining it, because as far as I know, there is no problem with > undefining something that is not yet defined, but I could imagine, > others might have more elegant suggestions: > > CFLAGS = -ggdb3

Re: tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-22 Thread Borislav Petkov
Hi, On Wed, May 22, 2013 at 12:00:21PM +0200, Dirk Gouders wrote: > CFLAGS = -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -U_FORTIFY_SOURCE > -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) $(EXTRA_CFLAGS) -fPIC it seems someone else hit this already and fixed it too: commit d2f32479e5526a1ab3b4e43910fcb2

tools/lib/lk: redefinition of _FORTIFY_SOURCE (gcc-4.7.2)

2013-05-22 Thread Dirk Gouders
Hello Borislav, I am having problems with building liblk, but opposed to the recent problem that Jiri noticed (commit b28b130719af6 Fix _FORTIFY_SOURCE builds) I am getting errors because _FORTIFY_SOURCE is redefined: :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] debugfs.c:1:0: note: this is