[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#395288: marked as done (upgrade of linux-kernel-headers broke #include <asm/system.h> from user-space)



Your message dated Mon, 10 Sep 2007 17:34:18 +0200
with message-id <20070910153418.GE14533@wavehammer.waldi.eu.org>
and subject line asm/system.h not exported
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)

--- Begin Message ---
Package: linux-kernel-headers
Version: 2.6.18-3
Severity: normal

/usr/include/asm/system.h file used to provide access to useful
low-level x86 facilities, such as cmpxchg CPU instruction.

Only add #include <asm/system.h> to program and then use it.

However, this stopped working after recent upgrade of
linux-kernel-headers package:

nikita@blacky:/tmp> cat t.c
#include <asm/system.h>

nikita@blacky:/tmp> gcc -c t.c
In file included from /usr/include/asm/bitops.h:8,
                 from /usr/include/linux/bitops.h:9,
                 from /usr/include/asm-i486/cpufeature.h:10,
                 from /usr/include/asm/cpufeature.h:8,
                 from /usr/include/asm-i486/system.h:6,
                 from /usr/include/asm/system.h:8,
                 from t.c:1:
/usr/include/asm-i486/bitops.h:244: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'int'
In file included from /usr/include/asm/system.h:8,
                 from t.c:1:
/usr/include/asm-i486/system.h:306: error: expected declaration
specifiers or '...' before 'u8'
/usr/include/asm-i486/system.h:306: error: expected declaration
specifiers or '...' before 'u8'
/usr/include/asm-i486/system.h:307: error: expected declaration
specifiers or '...' before 'u16'
/usr/include/asm-i486/system.h:307: error: expected declaration
specifiers or '...' before 'u16'
/usr/include/asm-i486/system.h:308: error: expected declaration
specifiers or '...' before 'u32'
/usr/include/asm-i486/system.h:308: error: expected declaration
specifiers or '...' before 'u32'
/usr/include/asm-i486/system.h: In function 'cmpxchg_386':
/usr/include/asm-i486/system.h:315: error: too many arguments to
function 'cmpxchg_386_u8'
/usr/include/asm-i486/system.h:317: error: too many arguments to
function 'cmpxchg_386_u16'
/usr/include/asm-i486/system.h:319: error: too many arguments to
function 'cmpxchg_386_u32'


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (620, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-1-k7
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

-- no debconf information


--- End Message ---
--- Begin Message ---
asm/system.h is not on the exported headers list. This means that it is
usually not save to use it from userspace. A quick check looks like this
is the case. Don't even think about using it.

Bastian

-- 
Virtue is a relative term.
		-- Spock, "Friday's Child", stardate 3499.1


--- End Message ---

Reply to: