Skip to content

fix:update missing headers for Centos 10 compilation #10479

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

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

Conversation

RomanPryamonosov
Copy link

Added missing headers for compilation on Centos 10.
Reports with errors on the undefined htons function in two files

[2025-06-12T16:28:19.598Z] /tmp/fluent-bit/lib/nghttp2-1.65.0/lib/nghttp2_helper.c:33:16: error: implicit declaration of function ‘htons’ [-Wimplicit-function-declaration]
[2025-06-12T16:28:19.598Z]    33 |   uint16_t x = htons(n);

[N/A]

Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • [NA] Example configuration file for the change
  • [NA] Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@patrick-stephens
Copy link
Contributor

I think this is a change to the vendored dependency so needs to be submitted there first then we take the update once released.

Also, I don't think we have a Centos 10 target yet so we should add that too otherwise we can't prove it builds.

@cosmo0920
Copy link
Contributor

I think this is a change to the vendored dependency so needs to be submitted there first then we take the update once released.

Also, I don't think we have a Centos 10 target yet so we should add that too otherwise we can't prove it builds.

Yes, this will also be impacted for archlinux which is one of the cutting-adge distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants