Your message dated Thu, 13 Oct 2005 15:32:04 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Closing invalid lkh bug
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Oct 2005 07:08:43 +0000
>From [EMAIL PROTECTED] Wed Oct 12 00:08:42 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp018.mail.yahoo.com [216.136.174.115]
by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
id 1EPajC-00007p-00; Wed, 12 Oct 2005 00:08:42 -0700
Received: (qmail 33882 invoked from network); 12 Oct 2005 07:03:55 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=s1024; d=yahoo.fr;
h=Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id;
b=KFLVvDzwUi4lPK1PAoE0t5wLux5Mnab/j8FHUOTCCQw3BWeoO2itm2eUTP6sc047N3IPS/KaXRXd2Ns1ftpkPuqXj8TYb0XFzSWo+WT/KRE+dvyNWmeZNiZcLQw9o3z/gkVCMALejj0bLckDBFarBqrFMjiXanuXyDe8ZTL3854=
;
Received: from unknown (HELO grom.homelinux.org) ([EMAIL PROTECTED] with plain)
by smtp018.mail.yahoo.com with SMTP; 12 Oct 2005 07:03:54 -0000
From: Jerome Vizcaino <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: linux-kernel-headers: Include of asm/atomic.h is broken when compiling
with g++
Date: Wed, 12 Oct 2005 09:04:55 +0200
User-Agent: KMail/1.8.2
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.1 required=4.0 tests=BAYES_00,HAS_PACKAGE,
MIME_QP_DEFICIENT autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: linux-kernel-headers
Version: 2.6.13+0rc3-1.1
Severity: important
Hi,
Including asm/atomic.h breaks compilation with g++.
The simple example below cannot be compiled using g++ 4, 3.4 or 3.3 and
the error is always the same.
=2D- CODE START --
#include <asm/atomic.h>
int main()
{
return 0;
}
=2D- CODE END --
Trying to compile I get the following errors:
/usr/include/asm/system.h:247: error: expected =E2=80=98,=E2=80=99 or =E2=
=80=98...=E2=80=99 before =E2=80=98new=E2=80=99
/usr/include/asm/system.h: In function =E2=80=98long unsigned int
__cmpxchg(volatile void*, long unsigned int, long unsigned int)=E2=80=99:
/usr/include/asm/system.h:250: error: =E2=80=98size=E2=80=99 was not declar=
ed in this
scope
/usr/include/asm/system.h:254: error: expected type-specifier before =E2=80=
=98)=E2=80=99
token
/usr/include/asm/system.h:260: error: expected type-specifier before =E2=80=
=98)=E2=80=99
token
/usr/include/asm/system.h:266: error: expected type-specifier before =E2=80=
=98)=E2=80=99
token
/usr/include/asm/processor.h: In function =E2=80=98void load_esp0(tss_struc=
t*,
thread_struct*)=E2=80=99:
/usr/include/asm/processor.h:486: error: =E2=80=98unlikely=E2=80=99 was not=
declared in
this scope
The real thing is that, I could get it compiled using earlier versions
of linux-kernel-headers.
The problem in system.h is quite easy to fix as g++ thinks the function
parameter new is recognized as a keyword. Changing it to new_ (and so on
in the function) solves the problem.
As for the definition of unlikely which is found somewhere in
linux/compiler.h but only if __KERNEL__ is defined. Defining this
manually for compilation creates more problems of redefinitions.
What can I do ?
Thanks
=2D- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=3Den_US.utf8, LC_CTYPE=3Den_US.utf8 (charmap=3DUTF-8) (ignored=
: LC_ALL=20
set to en_US.utf8)
=2D- no debconf information
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
---------------------------------------
Received: (at 333488-done) by bugs.debian.org; 13 Oct 2005 19:32:07 +0000
>From [EMAIL PROTECTED] Thu Oct 13 12:32:07 2005
Return-path: <[EMAIL PROTECTED]>
Received: from nevyn.them.org [66.93.172.17]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EQ8o9-00042g-00; Thu, 13 Oct 2005 12:32:05 -0700
Received: from drow by nevyn.them.org with local (Exim 4.54)
id 1EQ8o8-0005RL-49
for [EMAIL PROTECTED]; Thu, 13 Oct 2005 15:32:04 -0400
Date: Thu, 13 Oct 2005 15:32:04 -0400
From: Daniel Jacobowitz <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Closing invalid lkh bug
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.8i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
<asm/atomic.h> is not supported for userland use, so I'm closing this bug.
--
Daniel Jacobowitz
CodeSourcery, LLC
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]