Linux headers issue

Issues related to software problems.
Post Reply
simon@bp
Posts: 20
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:
http://lists.qt-project.org/pipermail/i ... 15306.html
The response is that the kernel headers are bad:
http://lists.qt-project.org/pipermail/i ... 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
linux_perf_event_p.h.

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.

chemal
Posts: 604
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
TrevorH
Forum Moderator
Posts: 26915
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 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 5 - Software Support”