#53 memfd_test build failed in Rawhide with errors: implicit declaration of function
Opened 3 months ago by mattf. Modified 3 months ago

When I ran the default kernel tests on 6.10.0-0.rc5.20240628git5bbd9b249880.47.fc41.x86_64 and earlier in Rawhide/41 KDE live images, the memfd_test build failed with three errors: implicit declaration of function.

Starting test ./default/memfd
memfd_test.c: In function ‘mfd_assert_get_seals’:
memfd_test.c:67:13: error: implicit declaration of function ‘fcntl’ [-Wimplicit-function-declaration]
67 | r = fcntl(fd, F_GET_SEALS);
| ^
memfd_test.c: In function ‘mfd_assert_open’:
memfd_test.c:190:13: error: implicit declaration of function ‘open’; did you mean ‘popen’? [-Wimplicit-function-declaration]
190 | r = open(buf, flags, mode);
| ^~
| popen
memfd_test.c: In function ‘mfd_assert_write’:
memfd_test.c:315:13: error: implicit declaration of function ‘fallocate’; did you mean ‘alloca’? [-Wimplicit-function-declaration]
315 | r = fallocate(fd,
| ^
~~
| alloca
memfd_test build failed.

The memfd test still passed. The change https://fedoraproject.org/wiki/Changes/PortingToModernC removed implicit function declarations via -Werror=implicit-function-declaration


The memfd test actually seemed to be skipped when I ran the tests again. The last error I reported being crossed-out when shown on the pagure page was unintentional.

Log in to comment on this ticket.

Metadata