-
Notifications
You must be signed in to change notification settings - Fork 23
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
bindgen fails to generate binding to dirfd on macOS 14.5 #266
Comments
I could imagine that the issue is that See: I added the file in the println!("cargo:rerun-if-changed=src/c/socket_macros.c");
cc::Build::new()
.file("src/c/socket_macros.c")
.compile("libsocket_macros.a"); and called then the c function defined inside this file instead of the POSIX API. This could be a viable solution here as well, that we define an |
@elfenpiff I will try it out. Assign this one to me. |
@elfenpiff It worked. |
…-dirent-on-macos [#266] Configure bindgen to bind dirfd C macro on macOS
Required information
Operating system:
OS name, version
macOS 14.5 (Sonoma)
Additionally, on Linux, Mac Os, Unix, output of:
uname -a
Rust version:
Output of:
rustc --version
Cargo version:
Output of:
cargo --version
iceoryx2 version:
main
Observed result or behaviour:
Expected result or behaviour:
Minimal pub/sub example compiles and runs.
Conditions where it occurred / Performed steps:
See command(s) in observed result.
Investigation
SDK is located at
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/
:File containing
dirfd
is at/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/dirent.h
Expand
Modifying
iceoryx2-pal/posix/build.rs
forbindgen
to explicitly specify the include location has no effect:Expand
The text was updated successfully, but these errors were encountered: