Skip to content

[staging-next] ntp: fix build with gcc-14 - #366685

Merged
philiptaron merged 1 commit into
NixOS:staging-nextfrom
paparodeo:ntp-fixes
Dec 20, 2024
Merged

philiptaron merged 1 commit into
NixOS:staging-nextfrom
paparodeo:ntp-fixes

Conversation

@paparodeo

Copy link
Copy Markdown
Contributor

configure fails with:

conftest.c: In function 'main':
conftest.c:162:16: error: passing argument 1 of 'pthread_detach' makes integer from pointer without a cast [-Wint-conversion]

pthread_detach expects a pthread_t so provide it one with pthread_self()

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@philiptaron

configure fails with:
> conftest.c: In function 'main':
conftest.c:162:16: error: passing argument 1 of 'pthread_detach' makes integer from pointer without a cast [-Wint-conversion]

pthread_detach expects a pthread_t so provide it one with pthread_self()
@nix-owners
nix-owners Bot requested a review from thoughtpolice December 20, 2024 01:17
@paparodeo paparodeo changed the title ntp: fix build with gcc-14 [staging-next] ntp: fix build with gcc-14 Dec 20, 2024

@philiptaron philiptaron left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM and fixes the issue. Eval failure is unrelated.

@philiptaron
philiptaron merged commit 2bd9ba9 into NixOS:staging-next Dec 20, 2024
@paparodeo
paparodeo deleted the ntp-fixes branch December 20, 2024 02:27
@paparodeo

Copy link
Copy Markdown
Contributor Author

upstream bug https://bugs.ntp.org/show_bug.cgi?id=3926 but the fix doesn't appear in the repo yet. I think I should've used a --replace-warn rather than --replace-fail to not break the auto-update process.

@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 tasks
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.

2 participants