Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28110 - sys-apps/attr-2.2.0 will not compile
Summary: sys-apps/attr-2.2.0 will not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-07 04:43 UTC by the-me
Modified: 2003-09-24 18:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description the-me 2003-09-07 04:43:49 UTC
On my machine running gcc version 2.95.3 20010315 (release) I get the following
message when compiling attr: 

In file included from attr_copy_fd.c:37:
../include/error_context.h:23: badly punctuated parameter list in `#define'
make[1]: *** [attr_copy_fd.lo] Error 1
make: *** [default] Error 2

compiling manually works fine with just "configure && make", and the file
"error_context.h" is not created. 
I changed the error_context.h file in the portage temp directory in line 20 from 
    # define error(ctx, args ...) do { \
to 
    # define error(ctx, args...) do { \
and compiling worked again. (seen in the same file of attr-2.4.1)
The error_context.h file is created only when applying the attr_copy.diff patch
it seems.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-23 15:35:44 UTC
could you please check if attr-2.4.1.ebuild and attr-2.4.7-r1.ebuild compile under gcc 2.95.3 or exhibit the same error?

(2.4.7 has this in the ebuild '>=sys-devel/gcc-3*' so you may have to remove that to check it).

Comment 2 the-me 2003-09-24 11:50:37 UTC
whops, my fault :-)
no, attr-2.4.1 does not complain about the same error, and that's the version I finally installed on my system. 
to be able to do this I changed it from ~x86 to x86 in order to make it available unmasked and stable. all higher versions collided with gcc-3.x requirement, so I couldn't use ACCEPT_KEYWORDS ... 
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-24 18:07:05 UTC
ok, i've moved 2.4.1 and 2.4.7-r1 to stable on x86.

thanks.