kover FTBFS due to error in linux/byteorder/little_endian.h

Bug #53708 reported by Steve Kowalik
4
Affects Status Importance Assigned to Milestone
kover (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

While trying to build kover 1:2.9.6-3ubuntu1, this error is encountered:

/usr/include/linux/byteorder/little_endian.h:43: error: '__le64' does not name a type
/usr/include/linux/byteorder/little_endian.h:47: error: expected ',' or '...' before '*' token
/usr/include/linux/byteorder/little_endian.h: In function '__u64 __le64_to_cpup(int)':
/usr/include/linux/byteorder/little_endian.h:49: error: 'p' was not declared in this scope
/usr/include/linux/byteorder/little_endian.h: At global scope:
/usr/include/linux/byteorder/little_endian.h:67: error: '__be64' does not name a type
/usr/include/linux/byteorder/little_endian.h:71: error: expected ',' or '...' before '*' token
/usr/include/linux/byteorder/little_endian.h: In function '__u64 __be64_to_cpup(int)':
/usr/include/linux/byteorder/little_endian.h:73: error: 'p' was not declared in this scope

Only one file in the kover source references anything under linux/, which is cdrom.cc, and it includes <linux/cdrom.h>, which I suspect is fair enough so that it can use the cdrom ioctls.

Revision history for this message
Ben Collins (ben-collins) wrote :

The problem is in kover. It is using headers that are exporting 64-bit types, but also compiling using -ansi, which forces things to assume no 64-bit types.

KDE also had this problem. Kover needs to not compile with -ansi. That is a bug, because at the same time it is using 64-bit types which is not ansi compliant.

Revision history for this message
Steve Kowalik (stevenk) wrote :

I have added a patch that hacks configure (icky) to not call gcc with -ansi in 1:2.9-6-3ubuntu2.

Changed in kover:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.