UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor korbi
Visitor
3,350 Views
Registered: ‎09-18-2017

U-Boot compile error (dereferencing pointer)

Jump to solution

Hi,

 

I tried to compile u-boot-xilinx for a zybo board.

While running the makefile an error occures:

 

In file included from tools/lib/rsa/rsa-sign.c:1:0:
./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_remove’:
./tools/../lib/rsa/rsa-sign.c:156:2: warning: ‘ERR_remove_thread_state’ is deprecated [-Wdeprecated-declarations]
  ERR_remove_thread_state(NULL);
  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
                 from /usr/include/openssl/x509.h:309,
                 from /usr/include/openssl/pem.h:17,
                 from ./tools/../lib/rsa/rsa-sign.c:13,
                 from tools/lib/rsa/rsa-sign.c:1:
/usr/include/openssl/err.h:247:1: note: declared here
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
 ^
In file included from tools/lib/rsa/rsa-sign.c:1:0:
./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_sign_with_key’:
./tools/../lib/rsa/rsa-sign.c:213:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’ [-Wimplicit-function-declaration]
  EVP_MD_CTX_cleanup(context);
  ^~~~~~~~~~~~~~~~~~
./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_get_exponent’:
./tools/../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:116: die Regel für Ziel „tools/lib/rsa/rsa-sign.o“ scheiterte
make[1]: *** [tools/lib/rsa/rsa-sign.o] Fehler 1
Makefile:1217: die Regel für Ziel „tools“ scheiterte
make: *** [tools] Fehler 2

The error is "dereferencing pointer to incomplete type. Named file: ./lib/rsa/rsa-sign.c

 

 

Can you help me to compile u-boot?!

 

Thanks in advance,

Korbi

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor korbi
Visitor
4,311 Views
Registered: ‎09-18-2017

Re: U-Boot compile error (dereferencing pointer)

Jump to solution
I figured out the problem compiling u-boot:
On Linux Debian this issue occures 'cause of an updated libssl.

To solve this problem you have to downgrad your libssl
libssl1.0-dev (available in apt-repository) did it for me


Best regards,
Korbi

View solution in original post

3 Replies
Highlighted
Visitor korbi
Visitor
4,312 Views
Registered: ‎09-18-2017

Re: U-Boot compile error (dereferencing pointer)

Jump to solution
I figured out the problem compiling u-boot:
On Linux Debian this issue occures 'cause of an updated libssl.

To solve this problem you have to downgrad your libssl
libssl1.0-dev (available in apt-repository) did it for me


Best regards,
Korbi

View solution in original post

Visitor korbi
Visitor
3,311 Views
Registered: ‎09-18-2017

Re: U-Boot compile error (dereferencing pointer)

Jump to solution
0 Kudos
Newbie artursarlo
Newbie
403 Views
Registered: ‎10-04-2019

Re: U-Boot compile error (dereferencing pointer)

Jump to solution
Thank you very much. Had the same problem. Your workaround was very simple and effective!
0 Kudos