Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88214 - [patch] tar-1.15.1 test suite fails to compile with gcc 4.0
Summary: [patch] tar-1.15.1 test suite fails to compile with gcc 4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High trivial
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 15:22 UTC by Ryan Hill (RETIRED)
Modified: 2005-04-06 18:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
tar-1.15.1-gcc4test.patch (tar-tests-gcc4.0.patch,629 bytes, patch)
2005-04-06 15:23 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2005-04-06 15:22:19 UTC
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 Ryan Hill (RETIRED) gentoo-dev 2005-04-06 15:23:24 UTC
Created attachment 55522 [details, diff]
tar-1.15.1-gcc4test.patch
Comment 2 SpanKY gentoo-dev 2005-04-06 18:48:33 UTC
now in portage, thanks