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

[Bug]: openssl fatal error: openssl/opensslconf.h: No such file or directory #3388

Open
korDen opened this issue Dec 11, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@korDen
Copy link

korDen commented Dec 11, 2024

What happened?

Added openssl as the dependency, but including <openssl/bn.h> fails with

external/openssl+/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
14 | #include <openssl/opensslconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Version

Development (host) and target OS/architectures:

Output of bazel --version:
bazel 8.0.0

Version of relevant rules from the WORKSPACE or MODULE.bazel file:
bazel_dep(name = "openssl", version = "3.3.1.bcr.0")

Language(s) and/or frameworks involved:
c++

How to reproduce

MODULE.bazel

bazel_dep(name = "openssl", version = "3.3.1.bcr.0")

test.cpp

#include <openssl/bn.h>

run bazel build test

boringssl works:

cc_library(
	name = "test",
	srcs = ["test.cpp"],
	deps = ["@boringssl//:ssl"],
)

openssl doesn't:

cc_library(
	name = "test",
	srcs = ["test.cpp"],
	deps = ["@openssl//:ssl"],
)

external/openssl+/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
14 | #include <openssl/opensslconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Any other information?

No response

@korDen korDen added the bug Something isn't working label Dec 11, 2024
@korDen
Copy link
Author

korDen commented Dec 11, 2024

@illicitonion

@illicitonion
Copy link
Contributor

Thanks for flagging this - it was fixed in raccoons-build/bazel-openssl-cc@878a12f and released in #3400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants