Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure.ac: use AC_USE_SYSTEM_EXTENSIONS #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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]>
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