Arch Linux

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!
Tasklist

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
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi 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
Comment by Trent Lloyd (lathiat) - Thursday, 25 August 2005, 20:37 GMT
I was talking with one of the Ubuntu kernel guys who mentioned a collaborative linux-libc-headers effort that a few distros are involved with, and that perhaps you should see if you want to join in on it.

If you are interested you can check out
http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
Comment by Judd Vinet (judd) - Thursday, 10 November 2005, 23:42 GMT
Hi Trent,

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.
Comment by Trent Lloyd (lathiat) - Friday, 11 November 2005, 00:45 GMT
Which block? there are two blocks here, one from ubuntu, one from arch.
Comment by Judd Vinet (judd) - Friday, 11 November 2005, 02:35 GMT
the Ubuntu version
Comment by Jan de Groot (JGC) - Monday, 10 April 2006, 22:42 GMT
avahi builds fine nowadays, we even have it in extra. Is this bug still actual?
Comment by Trent Lloyd (lathiat) - Monday, 10 April 2006, 23:03 GMT
I beleive we are workign aroudn this problem, easy way tot est is to put

#include <rtnetlink.h>
int main(){}

in a c file and compile with gcc -std=c99 -ansi -Wall

Loading...