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

Undefined reference to flockfile/funlockfile #33

Open
KKhanhH opened this issue Mar 12, 2025 · 0 comments
Open

Undefined reference to flockfile/funlockfile #33

KKhanhH opened this issue Mar 12, 2025 · 0 comments

Comments

@KKhanhH
Copy link

KKhanhH commented Mar 12, 2025

Bug Report

It looks like flock and related functions are declared in stdio.h, but there is no definition of these functions in the standard library implementation, causing a linker error to occur.

What's the issue you encountered?

Attempting to compile the latest version of fmt (currently 11.1.4) with a fmt::print statement causes this issue. Related issue here: fmtlib/fmt#3829, fmt does check if these functions are declared and disables their calls using SFINAE, but since the declaration still exists this doesn't work properly.

How can the issue be reproduced?

Link to fmt library and call fmt::print, or attempt calling flock/flockfile/funlock file.

Environment?

Switch homebrew, devkita64 docker image.

Additional context?

N/A

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

No branches or pull requests

1 participant