Bug 88214 - [patch] tar-1.15.1 test suite fails to compile with gcc 4.0
Bug#: 88214 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: toolchain@gentoo.org Reported By: dirtyepic@gentoo.org
Component: Core system
URL: 
Summary: [patch] tar-1.15.1 test suite fails to compile with gcc 4.0
Keywords:  
Status Whiteboard: 
Opened: 2005-04-06 15:22 0000
Description:   Opened: 2005-04-06 15:22 0000
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib
-I../src    -O2 -march=pentium3 -fomit-frame-pointer -pipe -fno-ident
-floop-optimize2 -ftree-vectorize -ftree-vectorizer-verbose=1 -MT genfile.o -MD
-MP -MF ".deps/genfile.Tpo" -c -o genfile.o genfile.c; \
then mv -f ".deps/genfile.Tpo" ".deps/genfile.Po"; else rm -f
".deps/genfile.Tpo"; exit 1; fi
genfile.c:63: error: static declaration of 'argp_program_version' follows
non-static declaration
../lib/argp.h:428: error: previous declaration of 'argp_program_version' was
here
genfile.c:64: error: static declaration of 'argp_program_bug_address' follows
non-static declaration
../lib/argp.h:444: error: previous declaration of 'argp_program_bug_address'
was here
make[2]: *** [genfile.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/tar-1.15.1/work/tar-1.15.1/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/tar-1.15.1/work/tar-1.15.1/tests'
make: *** [check-recursive] Error 1

!!! ERROR: app-arch/tar-1.15.1 failed.


the attached patch, yoinked from fedora cvs, allows the tar testsuite to be
built with gcc 4.0 by declaring argp_program_version and
argp_program_bug_address as non-static in /tests/genfile.c

------- Comment #1 From Ryan Hill 2005-04-06 15:23:24 0000 -------
Created an attachment (id=55522) [details]
.

------- Comment #2 From SpanKY 2005-04-06 18:48:33 0000 -------
now in portage, thanks