Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73658 - amd64 __cmpxchg broken in c++
Summary: amd64 __cmpxchg broken in c++
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 06:17 UTC by Shevek
Modified: 2005-01-07 10:24 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 Shevek 2004-12-07 06:17:53 UTC
Extract from asm/system.h:

    244 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
    245                       unsigned long new, int size)
    246 {

I seem to remember that "new" is a keyword in c++ so using it as a variable name in a system header file is a silly idea. This prevents cdrdao (and presumably others) from compiling. Have replaced with _new in several places.

Please post upstream.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2004-12-07 07:49:10 UTC
Please send it upstream yourself. Although the answer will probably be no, since the kernel headers are not designed to be system software headers.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-12-07 08:21:32 UTC
What header version?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-01-07 10:24:45 UTC
Please reopen with requested info if problem still exists. At least on my system, that parameter is named _new