M
M
Maxim2017-06-19 15:07:46
linux
Maxim, 2017-06-19 15:07:46

How to get rid of the OpenSll error?

I build Openwrt from the latest sources from github and get this error during the build process

log
[ 48%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/polarssl.c.o
[ 48%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/polarssl_threadlock.c.o
/home/maxim/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c: In function 'get_cert_chain':
/home/maxim/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2482:13: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'
     cinf = x->cert_info;
             ^~
/home/maxim/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2484:30: error: dereferencing pointer to incomplete type 'X509_CINF {aka struct x509_cinf_st}'
     j = asn1_object_dump(cinf->signature->algorithm, bufp, CERTBUFFERSIZE);
                              ^~
/home/maxim/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2510:20: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
       switch(pubkey->type) {
                    ^~
[ 48%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/axtls.c.o
[ 48%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/cyassl.c.o
Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/build.make:2558: recipe for target 'Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/openssl.c.o' failed
make[6]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/openssl.c.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory '/home/maxim/openwrt/build_dir/host/cmake-3.6.1'
CMakeFiles/Makefile2:1488: recipe for target 'Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all' failed
make[5]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
make[5]: Leaving directory '/home/maxim/openwrt/build_dir/host/cmake-3.6.1'
Makefile:160: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/maxim/openwrt/build_dir/host/cmake-3.6.1'
Makefile:29: recipe for target '/home/maxim/openwrt/build_dir/host/cmake-3.6.1/.built' failed
make[3]: *** [/home/maxim/openwrt/build_dir/host/cmake-3.6.1/.built] Error 2
make[3]: Leaving directory '/home/maxim/openwrt/tools/cmake'
tools/Makefile:134: recipe for target 'tools/cmake/compile' failed
make[2]: *** [tools/cmake/compile] Error 2
make[2]: Leaving directory '/home/maxim/openwrt'
tools/Makefile:133: recipe for target '/home/maxim/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy' failed
make[1]: *** [/home/maxim/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/maxim/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/maxim/openwrt/include/toplevel.mk:192: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 1

Please help me get rid of the error, I really need to collect this image

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ololo pishpish, 2017-06-19
@MiF36rus

https://github.com/openwrt/openwrt/issues/372
Here they write that you should install an older version of openSSL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question