alexcrichton / openssl-src-rs

Source code and logic to build OpenSSL from source
Apache License 2.0
68 stars 113 forks source link

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

Open WaterKnight1998 opened 1 year ago

WaterKnight1998 commented 1 year ago

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 '