Skip to content

Conversation

@dankamongmen
Copy link

functions like splice(2) and sched_setaffinity(2), used in netperf, require _GNU_SOURCE to be declared. without it, we see warnings about missing definitions. once upon a time, AC_GNU_SOURCE would have pulled this in where appropriate, but that's just an alias these days for AC_USE_SYSTEM_EXTENSIONS. with this added, we no longer see the warnings on linux.

functions like splice(2) and sched_setaffinity(2), used
in netperf, require _GNU_SOURCE to be declared. without
it, we see warnings about missing definitions. once
upon a time, AC_GNU_SOURCE would have pulled this in
where appropriate, but that's just an alias these days
for AC_USE_SYSTEM_EXTENSIONS. with this added, we no
longer see the warnings on linux.
luckyh added a commit to luckyh/avocado-vt that referenced this pull request Jun 17, 2024
Starting from gcc 14.0, implicit function declarations are treated
as errors by default [1], which caused the following failure been
observed during the compilation.

> netlib.c:2343:9: error: implicit declaration of function ...
> ...
> make[3]: *** [Makefile:454: netlib.o] Error 1

One contributor has already sent a PR [2] to fix the issue to the
netperf upstream, however, it has not been merged yet since a year
ago. At the moment, let's just bypass this issue, while waiting
for a regular fix to be done.

References:
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
[2] HewlettPackard/netperf#74

Signed-off-by: Xu Han <[email protected]>
AirFortressIlikara pushed a commit to AOSC-Tracking/netperf that referenced this pull request Aug 5, 2025
functions like splice(2) and sched_setaffinity(2), used
in netperf, require _GNU_SOURCE to be declared. without
it, we see warnings about missing definitions. once
upon a time, AC_GNU_SOURCE would have pulled this in
where appropriate, but that's just an alias these days
for AC_USE_SYSTEM_EXTENSIONS. with this added, we no
longer see the warnings on linux.

Signed-off-by: dankamongmen <[email protected]>
Link: HewlettPackard#74
Signed-off-by: ilikara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant