FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
514 stars 1.6k forks source link

I tried to build, and I got error: ntlm_compute.c:649:18: error: storage size of ‘hmac_ctx’ isn’t known #197

Closed hamedsbt closed 2 years ago

hamedsbt commented 2 years ago

Hi, I tried to build, and I got error:

[ 35%] Building C object winpr/libwinpr/sspi/CMakeFiles/winpr-sspi.dir/NTLM/ntlm_compute.c.o
/home/user/prereqs/FreeRDP/winpr/libwinpr/sspi/NTLM/ntlm_compute.c: In function ‘ntlm_compute_message_integrity_check’:
/home/user/prereqs/FreeRDP/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:649:18: error: storage size of ‘hmac_ctx’ isn’t known
  649 |         HMAC_CTX hmac_ctx;
      |                  ^~~~~~~~
/home/user/prereqs/FreeRDP/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:656:9: warning: implicit declaration of function ‘HMAC_CTX_init’; did you mean ‘HMAC_CTX_new’? [-Wimplicit-function-declaration]
  656 |         HMAC_CTX_init(&hmac_ctx);
      |         ^~~~~~~~~~~~~
      |         HMAC_CTX_new
/home/user/prereqs/FreeRDP/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:662:9: warning: implicit declaration of function ‘HMAC_CTX_cleanup’ [-Wimplicit-function-declaration]
  662 |         HMAC_CTX_cleanup(&hmac_ctx);
      |         ^~~~~~~~~~~~~~~~
/home/user/prereqs/FreeRDP/winpr/libwinpr/sspi/NTLM/ntlm_compute.c:649:18: warning: unused variable ‘hmac_ctx’ [-Wunused-variable]
  649 |         HMAC_CTX hmac_ctx;
      |                  ^~~~~~~~
make[2]: *** [winpr/libwinpr/sspi/CMakeFiles/winpr-sspi.dir/build.make:90: winpr/libwinpr/sspi/CMakeFiles/winpr-sspi.dir/NTLM/ntlm_compute.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1989: winpr/libwinpr/sspi/CMakeFiles/winpr-sspi.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Unable to build FreeRDP package. Exiting...

OS: Ubuntu 22.04

Any help is appreciated!

c64cosmin commented 2 years ago

You might be missing some pre-requisites, did you run the other .sh script?