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

Fails to build on Debian 12 coz of wrong include path #2333

Open
XANi opened this issue Nov 25, 2024 · 3 comments
Open

Fails to build on Debian 12 coz of wrong include path #2333

XANi opened this issue Nov 25, 2024 · 3 comments

Comments

@XANi
Copy link

XANi commented Nov 25, 2024

warning: [email protected]: In file included from /usr/include/openssl/opensslv.h:109,
warning: [email protected]:                  from build/expando.c:1:
warning: [email protected]: /usr/include/openssl/macros.h:14:10: fatal error: openssl/opensslconf.h: No such file or directory
warning: [email protected]:    14 | #include <openssl/opensslconf.h>
warning: [email protected]:       |          ^~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: compilation terminated.

required dependencies are installed:

apt-get install pkg-config libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pkg-config is already the newest version (1.8.1-1).
libssl-dev is already the newest version (3.0.15-1~deb12u1).
0 upgraded, 0 newly installed, 0 to remove and 81 not upgraded.

but openssl includes got moved to /usr/include/x86_64-linux-gnu/openssl (it worked on older Debian version)

I have tried setting OPENSSL_INCLUDE_DIR but it doesn't change anything

linking fixes it

ln -s /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/openssl/opensslconf.h
ln -s /usr/include/x86_64-linux-gnu/openssl/configuration.h /usr/include/openssl/configuration.h
@sfackler
Copy link
Owner

Why does /usr/include/openssl/opensslv.h exist?

@XANi
Copy link
Author

XANi commented Nov 25, 2024

I'm not a Debian package maintainer so I don't know...

just to be clear it's not some leftover, it's in package:

https://packages.debian.org/search?searchon=contents&keywords=%2Fopensslv.h&mode=path&suite=stable&arch=any

actually those are only 2 files in the /usr/include/x86_64-linux-gnu/openssl

@sfackler
Copy link
Owner

This crate just takes whatever configuration pkg-config feeds it and whatever search path the C compiler uses. I don't see what change would need to be made in this crate due to that setup.

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

2 participants