Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 4 Jun 2011 14:23:52 +0300
From: Georgi Geshev <>
Subject: Re: gcc update


Here's an issue that I would like to discuss with you -

There are several GCC -Wunused-* flags combined with -Werror that cause
various packages not to build properly. For example, here's an excerpt from
the elfutils-libelf build log -

gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I.. -I. -I../lib -I..    -Wall
-Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99  -pipe -march=i686
-O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -MT elf_fill.o -MD -MP
-MF .deps/elf_fill.Tpo -c -o elf_fill.o elf_fill.c
mv -f .deps/elf_fill.Tpo .deps/elf_fill.Po
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I.. -I. -I../lib -I..    -Wall
-Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99  -pipe -march=i686
-O2 -fomit-frame-pointer -mpreferred-stack-boundary=2 -MT elf_begin.o -MD
-MP -MF .deps/elf_begin.Tpo -c -o elf_begin.o elf_begin.c
common.h:115:1: error: 'libelf_acquire_all' defined but not used
common.h:134:1: error: 'libelf_release_all' defined but not used
cc1: all warnings being treated as errors

make[1]: *** [elf_begin.o] Error 1
make[1]: Leaving directory
error: Bad exit status from /usr/src/world/tmp-work/rpm-tmp.47087 (%build)

How should I proceed? Should I prepare and apply an appropriate patch or
maybe remove / replace the offensive flags.


Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.