[LTP] latest ltp not building on RHEL 9.6 ?

Li Wang liwang@redhat.com
Tue May 20 02:38:33 CEST 2025


On Tue, May 20, 2025 at 2:40 AM Chuck Lever via ltp <ltp@lists.linux.it> wrote:
>
> Hi -
>
> My daily CI builds ltp and runs it against my nfsd-testing branch.
> For the past week or so, the ltp build fails with:
>
> In file included from cve-2017-16939.c:28:
> ../../include/lapi/sched.h:18:8: error: redefinition of ‘struct sched_attr’
>    18 | struct sched_attr {
>       |        ^~~~~~~~~~
> In file included from /usr/include/bits/sched.h:60,
>                  from /usr/include/sched.h:43,
>                  from ../../include/lapi/sched.h:10,
>                  from cve-2017-16939.c:28:
> /usr/include/linux/sched/types.h:102:8: note: originally defined here
>   102 | struct sched_attr {
>       |        ^~~~~~~~~~
>
> The test runner is a RHEL 9.6 guest. I don't see any recent changes to
> ltp in this area, so perhaps 9.6 modified /usr/include/linux/sched.h ?

I saw that LTP has already handle that conflict in lapi header file, in commit
https://github.com/linux-test-project/ltp/commit/c48700d8cdbe6d0d78fda6e6cc658972464b5ccd

Can you provide the version of your kernel-header and glibc?

e.g.
$ rpm -qf /usr/include/linux/sched/types.h

$ rpm -qf /usr/include/bits/sched.h


-- 
Regards,
Li Wang



More information about the ltp mailing list