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

Bug#433572: marked as done (asm/byteorder.h broken for gcc -ansi)



Your message dated Thu, 2 Aug 2007 16:46:11 +0200
with message-id <20070802144611.GD9582@stro.at>
and subject line asm/byteorder.h broken for gcc -ansi
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-libc-dev
Version: 2.6.21-6
Severity: normal

I have some software that compiles with the -ansi flag and includes
<asm/byteorder.h>.  This was fine under 2.6.18, but now...

~$ echo >test.c "#include <asm/byteorder.h>"
~$ gcc -c -Wall -ansi test.c 
In file included from /usr/include/asm/byteorder.h:7,
                 from test.c:1:
/usr/include/asm-i386/byteorder.h:24: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '___arch__swab64'
In file included from /usr/include/linux/byteorder/little_endian.h:12,
                 from /usr/include/asm-i386/byteorder.h:53,
                 from /usr/include/asm/byteorder.h:7,
                 from test.c:1:
/usr/include/linux/byteorder/swab.h:159: error: expected '=', ',', ';',
/'asm' or '__attribute__' before '__fswab64'
/usr/include/linux/byteorder/swab.h:169: error: expected '=', ',', ';',
/'asm' or '__attribute__' before '__swab64p'
/usr/include/linux/byteorder/swab.h:173: error: expected ')' before '*'
/token
In file included from /usr/include/asm-i386/byteorder.h:53,
                 from /usr/include/asm/byteorder.h:7,
                 from test.c:1:
/usr/include/linux/byteorder/little_endian.h:43: error: expected '=', ',',
/';', 'asm' or '__attribute__' before '__cpu_to_le64p'
/usr/include/linux/byteorder/little_endian.h:47: error: expected '=', ',',
/';', 'asm' or '__attribute__' before '__le64_to_cpup'
/usr/include/linux/byteorder/little_endian.h:67: error: expected '=', ',',
/';', 'asm' or '__attribute__' before '__cpu_to_be64p'
/usr/include/linux/byteorder/little_endian.h:71: error: expected '=', ',',
/';', 'asm' or '__attribute__' before '__be64_to_cpup'


(Without -ansi, we get the expected result.)
~$ gcc -c -Wall test.c 
~$


--- End Message ---
--- Begin Message ---
> That moves this bug report down to "informational" in my mind.  (Headers
> under asm likely don't need -ansi compatibility.)

indeed somehow expected, thus closing.

regards

-- 
maks

--- End Message ---

Reply to: