Bug#319042: linux-kernel-headers: #include <asm/atomic.h> fails from C++ due to function parameter called "new"
reassign 319042 mysql-dfsg
thanks
At Tue, 19 Jul 2005 13:32:40 +0100,
Zak Kipling wrote:
> Attempting to include asm/atomic.h from C++ causes the following error:
>
> /usr/include/asm/system.h:247: error: expected ',' or '...' before 'new'
>
> (with gcc 3.4 or 4.0) or
>
> /usr/include/asm/system.h:247: error: syntax error before `new'
>
> (with gcc 3.3).
>
> This occurs when trying to build MySQL 4.0.24 or 4.0.25, either from
> stock source or with "apt-get -b source mysql-server", specifically when
> compiling mysys/my_new.cc
>
> I wasn't sure whether this bug should be filed against the kernel
> headers (which aren't C++-clean) or against MySQL (which is including a
> system header from C++).
MySQL includes asm/atomic.h - I don't know the exact reason, but it's
not exported to userland. I think MySQL should be fixed instead of
linux-kernel-headers. I reassigned this report to mysql-dfsg source
package. If you know the concrete reason to fix lkh, please reassign
back and explain to us.
Regards,
-- gotom
Reply to: