Same happens on arch. At some point of time, openssl dropped the
definitions of some structures which vpp uses directly and made them
opaque to user, so instead of embedding them, application has to
hold pointers and use the suplied XXX_Init-like functions...

Regards,
Klement

Quoting Thomas F Herbert (2017-08-13 23:45:05)
>    I am getting a compile error when building on Fedora 26.
> 
>    I am building master commit 3f6ff19a30e9fbe5befb4cc3521d1812e5612197
> 
>    With openssl-devel-1.1.0f-7.fc26.x86_64 installed.
> 
>      CC       vnet/ipsec/ipsec.lo
>    In file included from
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/ipsec.c:25:0:
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:63:18:
>    error: field ‘encrypt_ctx’ has incomplete type
>       EVP_CIPHER_CTX encrypt_ctx;
>                      ^~~~~~~~~~~
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:65:18:
>    error: field ‘decrypt_ctx’ has incomplete type
>       EVP_CIPHER_CTX decrypt_ctx;
>                      ^~~~~~~~~~~
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:67:12:
>    error: field ‘hmac_ctx’ has incomplete type
>       HMAC_CTX hmac_ctx;
>                ^~~~~~~~
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:
>    In function ‘esp_init’:
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:274:7:
>    error: implicit declaration of function ‘HMAC_CTX_init’; did you mean
>    ‘HMAC_CTX_new’? [-Werror=implicit-function-declaration]
>           HMAC_CTX_init (&(em->per_thread_data[thread_id].hmac_ctx));
>           ^~~~~~~~~~~~~
>           HMAC_CTX_new
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:
>    In function ‘hmac_calc’:
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:301:3:
>    error: ‘HMAC_Init’ is deprecated [-Werror=deprecated-declarations]
>       HMAC_Init (ctx, key, key_len, md);
>       ^~~~~~~~~
>    In file included from /usr/include/openssl/opensslconf.h:42:0,
>                     from /usr/include/openssl/bn.h:31,
>                     from /usr/include/openssl/asn1.h:24,
>                     from /usr/include/openssl/objects.h:916,
>                     from /usr/include/openssl/evp.h:27,
>                     from /usr/include/openssl/hmac.h:15,
>                     from
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/esp.h:18,
>                     from
>    
> /home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-data/../src/vnet/ipsec/ipsec.c:25:
>    /usr/include/openssl/hmac.h:28:1: note: declared here
>     DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key,
>    int len,
>     ^
>    cc1: all warnings being treated as errors
>    make[6]: *** [Makefile:6098: vnet/ipsec/ipsec.lo] Error 1
>    make[6]: *** Waiting for unfinished jobs....
>    make[6]: Leaving directory
>    
> '/home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-root/build-vpp-native/vpp'
>    make[5]: *** [Makefile:6979: all-recursive] Error 1
>    make[5]: Leaving directory
>    
> '/home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-root/build-vpp-native/vpp'
>    make[4]: *** [Makefile:3562: all] Error 2
>    make[4]: Leaving directory
>    
> '/home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-root/build-vpp-native/vpp'
>    make[3]: *** [Makefile:697: vpp-build] Error 2
>    make[3]: Leaving directory
>    '/home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-root'
>    make[2]: *** [Makefile:933: install-packages] Error 1
>    make[2]: Leaving directory
>    '/home/therbert/fd.io/vpp/extras/rpm/vpp-17.10/build-root'
>    error: Bad exit status from /var/tmp/rpm-tmp.kz3qOs (%build)
> 
>    ...
> 
>    --
>    Thomas F Herbert
>    NFV and Fast Data Planes
>    Office of Technology
>    Red Hat
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to