[2.4.21] problems with __u64 and ansi mode

From: Andrey Ulanov (drey@rt.mipt.ru)
Date: Tue Jun 17 2003 - 12:22:15 EST


Try:

bash-2.05b$ cat t.c
#include <linux/cdrom.h>
bash-2.05b$ gcc -c t.c
bash-2.05b$ gcc -c -ansi t.c
In file included from /usr/include/linux/cdrom.h:14,
                 from t.c:1:
/usr/include/asm/byteorder.h:38: error: parse error before "__u64"
/usr/include/asm/byteorder.h:38: error: parse error before "val"
/usr/include/asm/byteorder.h: In function `___arch__swab64':
/usr/include/asm/byteorder.h:42: error: parse error before "__u64"
/usr/include/asm/byteorder.h: At top level:
/usr/include/asm/byteorder.h:44: error: parse error before '.' token
/usr/include/asm/byteorder.h:52: error: parse error before string constant
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:65,
                 from /usr/include/linux/cdrom.h:14,
                 from t.c:1:
/usr/include/linux/byteorder/swab.h:199: error: parse error before "__fswab64"
/usr/include/linux/byteorder/swab.h:199: error: parse error before "x"
/usr/include/linux/byteorder/swab.h: In function `__fswab64':
/usr/include/linux/byteorder/swab.h:206: error: `x' undeclared (first use in this function)
/usr/include/linux/byteorder/swab.h:206: error: (Each undeclared identifier is reported only once
/usr/include/linux/byteorder/swab.h:206: error: for each function it appears in.)
/usr/include/linux/byteorder/swab.h: At top level:
/usr/include/linux/byteorder/swab.h:209: error: parse error before "__swab64p"
/usr/include/linux/byteorder/swab.h:209: error: parse error before '*' token
/usr/include/linux/byteorder/swab.h: In function `__swab64p':
/usr/include/linux/byteorder/swab.h:211: error: `x' undeclared (first use in this function)
/usr/include/linux/byteorder/swab.h: At top level:
/usr/include/linux/byteorder/swab.h:213: error: parse error before '*' token
/usr/include/linux/byteorder/swab.h: In function `__swab64s':
/usr/include/linux/byteorder/swab.h:215: error: `addr' undeclared (first use in this function)
bash-2.05b$

ps. please, cc to me

-- 
with best regards, Andrey Ulanov.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:21 EST