Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27329 - coreutils-5.0-r2 compilation with gcc-2.95
Summary: coreutils-5.0-r2 compilation with gcc-2.95
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 18:57 UTC by TGL
Modified: 2003-08-26 03:40 UTC (History)
0 users

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


Attachments
progress-bar-patch.patch (progress-bar-patch.patch,1.31 KB, patch)
2003-08-25 18:58 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2003-08-25 18:57:56 UTC
A gcc-2.95 incompatibility has been introduced in sys-apps/coreutils-5.0-r2 
by the new "progress bar" patch:

[...]
gcc -DLOCALEDIR=\"/usr/share/locale\" -DSHAREDIR=\"/usr/share\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I. -I../lib -I../lib    -march=i686 -O2 -pipe -c `test -f
'copy.c' || echo './'`copy.c
copy.c: In function `copy_reg':
copy.c:493: parse error before `struct'
copy.c:495: `ws' undeclared (first use in this function)
copy.c:495: (Each undeclared identifier is reported only once
copy.c:495: for each function it appears in.)
make[3]: *** [copy.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/coreutils-5.0-r2/work/coreutils-5.0/src'
[...] 

This is because of a struct declaration inside a function. I will submit in 
attachment a "patch against the patch" that fix this issue.


Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2003-08-25 18:58:55 UTC
Created attachment 16617 [details, diff]
progress-bar-patch.patch

patch is against coreutils-progress-bar.patch from coreutils-gentoo-1.3.tar.bz2
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-26 03:40:28 UTC
Should be fixed in -r3, thanks.