Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#3106 - Linux kernel headers has incorrect handling of 64 bit types
Attached to Project:
Arch Linux
Opened by Trent Lloyd (lathiat) - Tuesday, 23 August 2005, 07:25 GMT
Last edited by Judd Vinet (judd) - Wednesday, 24 August 2005, 23:03 GMT
Opened by Trent Lloyd (lathiat) - Tuesday, 23 August 2005, 07:25 GMT
Last edited by Judd Vinet (judd) - Wednesday, 24 August 2005, 23:03 GMT
|
DetailsHi There,
There is a problem in your kernel headers such that /usr/include/linux/rtnetlink.h cannot be used with ANSI C because __u64 is not defined. ANSI C indeed defines a 64 bit type, on Ubuntu they solved this problem with the following #if (defined(__GNUC__) && !defined(__STRICT_ANSI__)) || (__STDC_VERSION__ >= 199901L) typedef __signed__ long long __s64; typedef unsigned long long __u64; #endif Where as you guys only have #if defined(__GNUC__) && !defined(__STRICT_ANSI__) typedef __signed__ long long __s64; typedef unsigned long long __u64; #endif I'm not 100% positive this is the right solution for you guys, but rtnetlink.h definately should be usable with ANSI, and this stops the Avahi (http://www.freedesktop.org/Software/Avahi/) project from building. Cheers |
This task depends upon
Closed by Jan de Groot (JGC)
Thursday, 21 September 2006, 09:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with kernel-headers-2.6.18-2
Thursday, 21 September 2006, 09:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with kernel-headers-2.6.18-2
If you are interested you can check out
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
Hmmm, I have that exact block (the Ubuntu version) in my /usr/include/asm/types.h. Is that the file you were referring to? Perhaps it was fixed upstream.
#include <rtnetlink.h>
int main(){}
in a c file and compile with gcc -std=c99 -ansi -Wall