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

linux/version.h: No such file or directory #193

Open
WaterKnight1998 opened this issue May 3, 2023 · 0 comments
Open

linux/version.h: No such file or directory #193

WaterKnight1998 opened this issue May 3, 2023 · 0 comments

Comments

@WaterKnight1998
Copy link

Hi,

I am trying to build my package for musl.

I have configured the following dependencies:

rdkafka = { version = "0.29.0", features = [ "cmake-build", "ssl-vendored" ], default-features = false }

[build-dependencies]
openssl-src = { version = "111.25.3+1.1.1t", features = [ "force-engine" ] }

In Arch linux I got the compilation working by installing: kernel-headers-musl. However, in ubuntu I can't fix the compilation by installing: linux-headers-generic.

I get the following error:

  --- stderr
  engines/e_afalg.c:24:10: fatal error: linux/version.h: No such file or directory
     24 | #include <linux/version.h>
        |          ^~~~~~~~~~~~~~~~~
  compilation terminated.
  make[1]: *** [Makefile:5752: engines/e_afalg.o] Error 1
  make[1]: *** Waiting for unfinished jobs....
  make: *** [Makefile:177: build_libs] Error 2
  thread 'main' panicked at '

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