You are not logged in.

#1 2023-03-22 19:55:14

inferno0230
Member
Registered: 2023-03-22
Posts: 1

openssl/bio.h not found even after install required packages

I am trying to compile android kernel but i was getting this error

/home/inferno0230/android/pep/kernel/oneplus/martini/scripts/extract-cert.c:21:1
0: fatal error: 'openssl/bio.h' file not found
#include <openssl/bio.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.host:107: scripts/extract-cert] Error 1

I tried changing <> to "" but still same error exists

/home/inferno0230/android/pep/kernel/oneplus/martini/scripts/extract-cert.c:21:1
0: fatal error: 'openssl/bio.h' file not found
#include "openssl/bio.h"
         ^~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.host:107: scripts/extract-cert] Error 1

After googling around for 3 hrs, I installed some packages (lib32-openssl, lib32-openssl-1.1 , openssl-1.1) but the error still exists.
i did found that peeps on debian have a package to fix this named libssl-dev but ig this should be already included in base

Packages i have installed :

$ yay -Qq | grep ssl
lib32-openssl
lib32-openssl-1.1
libressl
openssl
openssl-1.1
python-pyopenssl
wolfssl


Any help would be appreciated

Last edited by inferno0230 (2023-03-22 19:55:52)

Offline

#2 2023-03-22 21:39:20

teckk
Member
Registered: 2013-02-21
Posts: 585

Re: openssl/bio.h not found even after install required packages

locate bio.h
/usr/include/openssl/bio.h
/usr/include/openssl-1.0/openssl/bio.h
/usr/share/doc/openjpeg-2.5/html/structopj__bio.html

pacman -Si openssl
Repository      : core
Name            : openssl
Version         : 3.0.8-1
...

test.c

#include <openssl/bio.h>
#include <stdio.h>

int main()
{
    printf("Hello world\n");
    return 0;
}

//gcc test.c -o test
./test
Hello world

Offline

#3 2023-03-22 21:41:50

loqs
Member
Registered: 2014-03-06
Posts: 18,885

Re: openssl/bio.h not found even after install required packages

Please post at least the verbose output of make for the failing job so that it shows the compiler command that failed.

Offline

Board footer

Powered by FluxBB