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

FS#182 - host/u-boot-2014.10 compilation error with OpenSSL 1.1+ #5352

Closed
openwrt-bot opened this issue Sep 17, 2016 · 0 comments
Closed

FS#182 - host/u-boot-2014.10 compilation error with OpenSSL 1.1+ #5352

openwrt-bot opened this issue Sep 17, 2016 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

Ansuel:

/home/Ansuel/lede/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent': /home/Ansuel/lede/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed

I compile with default .config (i had one with all my settings, i reset it to test if it was my problem..) the only thing that i changes are binutils 1.26 version and gcc 6.x

Any idea?

@openwrt-bot
Copy link
Author

jow-:

Buildbots seem to have no problem building uboot host utilities. I suppose something is wrong with the OpenSSL/LibreSSL headers on your host system.

@openwrt-bot
Copy link
Author

jmomo:

I just hit this on my Debian unstable desktop.

The new OpenSSL seems to have broken some things.

I think this is the same thing but didn't look too close:

https://www.mail-archive.com/u-boot@lists.denx.de/msg228491.html

@openwrt-bot
Copy link
Author

OlofSivertsson:

Your compilation error is probably caused by this OpenSSL 1.1 change:
//Made RSA and RSA_METHOD opaque. The structures for managing RSA objects have been moved out of the public header files. New functions for managing these have been added.//
(From https://www.openssl.org/news/cl110.txt)

A workaround on Debian unstable is apt install libssl1.0-dev to downgrade your OpenSSL headers.

@openwrt-bot
Copy link
Author

hngsvtdu:

I made the downgrade from openssl/libssl 1.1.0c to 1.0.2j. Seems to be working fine. Its compiling now for long time where before the error appear after just few seconds.

I think this bug should still have high priority. Many OS would be updated next days to 1.1.0 . For example on arch linux recent 1.0.2j Version is been tagged as outdated in their packages and would probably be updated quickly.

Openssl 1.1.0 is already a stable release.

https://www.openssl.org/source/

@openwrt-bot
Copy link
Author

hngsvtdu:

The more recent and still open LEDE-bugreport about the same error:

https://bugs.lede-project.org/index.php?do=details&task_id=297

@openwrt-bot
Copy link
Author

jmomo:

Seems to be an openssl 1.1 issue.

@openwrt-bot
Copy link
Author

hngsvtdu:

No, its not a openssl issue. Just read the changelog and the notes about the security related changes from openssl 1.0 to 1.1.

@openwrt-bot
Copy link
Author

jow-:

Fixed with http://git.lede-project.org/70b104f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant