Linux headers issue

Issues related to software problems.
Post Reply
Posts: 23
Joined: 2014/07/31 20:00:37

Linux headers issue

Post by simon@bp » 2015/02/10 23:22:39

I am trying to build Qt5 on CentOS5. There are no pre-built packages that can be used.

I have install the devtoolset-2 in order to use gcc 4.8.2. Missing dependencies (not available in the CentOS or EPEL repos) have been installed from the ATrpms repository.

Qt5 fails to build, and I have reported this on the Qt5 "Interest" mailing list: ... 15306.html
The response is that the kernel headers are bad: ... 15308.html
> > In file included from /usr/include/asm-x86_64/byteorder.h:30:0,
> >
> > from /usr/include/asm/byteorder.h:5,
> > from 3rdparty/linux_perf_event_p.h:19,
> >
> > from qbenchmarkperfevents.cpp:53:
> > /usr/include/linux/byteorder/little_endian.h:43:19: error: ‘__le64’ does
> This is not a Qt error. Your kernel headers are bad and you should fix them.

CentOS 5 has kernel 2.6.18. According to the kernel sources for that tag,
__le64 is defined as a typedef in linux/types.h, which is #included by

So I don't think this is a kernel issue either. CentOS may have screwed up the
kernel headers. Please report to them.
I would appreciate any advice on this.

Posts: 715
Joined: 2013/12/08 19:44:49

Re: Linux headers issue

Post by chemal » 2015/02/11 18:12:19

Including kernel headers in a userspace library _is_ almost always a bug. Those who think "but I have to!" adapt their code to a couple of current kernels and then tell everyone with a different kernel that their headers are broken. I guess you have to fix this yourself. Hint: 2.6.18 doesn't even have linux perf events.

User avatar
Forum Moderator
Posts: 30166
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Linux headers issue

Post by TrevorH » 2015/02/11 18:28:48

Also, I checked the file on both CentOS 5 and 6 and both have identical definitions.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 5 - Software Support”