Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-569

Build inconsistent with OpenSSL 1.1.0: DEPRECATED IN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Open
    • Icon: High High
    • None
    • None
    • None

      Ubuntu 16.10 4.8
      vpp commit 17.04-rc0
      Build script called with branch=master & tag=v17.04-rc0

              echo --------
              echo Cleaning
              echo --------
              cd git-vpp
              sudo -u actionmystique -H git-reset-clean-pull-checkout.sh $branch $tag
      
              echo -----------
              echo Configuring
              echo -----------
              cd build-root
              sudo -u actionmystique -H ./bootstrap.sh
      
              echo ---------
              echo Compiling
              echo ---------
              sudo -u actionmystique -H make V=0 PLATFORM=vpp TAG=vpp install-deb
      

      leads to:

        CC       vnet/ipsec/ipsec_if_in.lo
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec.c:30:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:63:18: error: field 'encrypt_ctx' has incomplete type
         EVP_CIPHER_CTX encrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:65:18: error: field 'decrypt_ctx' has incomplete type
         EVP_CIPHER_CTX decrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:67:12: error: field 'hmac_ctx' has incomplete type
         HMAC_CTX hmac_ctx;
                  ^~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec.c:30:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'esp_init':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:274:7: error: implicit declaration of function 'HMAC_CTX_init' [-Werror=implicit-function-declaration]
             HMAC_CTX_init (&(em->per_thread_data[thread_id].hmac_ctx));
             ^~~~~~~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec.c:30:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'hmac_calc':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/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 /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:18:0,
                       from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec.c:30:
      /usr/include/openssl/hmac.h:28:5: 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
      Makefile:2827: recipe for target 'vnet/ipsec/ipsec.lo' failed
      make[3]: *** [vnet/ipsec/ipsec.lo] Error 1
      make[3]: *** Waiting for unfinished jobs....
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_input.c:24:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:63:18: error: field 'encrypt_ctx' has incomplete type
         EVP_CIPHER_CTX encrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:65:18: error: field 'decrypt_ctx' has incomplete type
         EVP_CIPHER_CTX decrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:67:12: error: field 'hmac_ctx' has incomplete type
         HMAC_CTX hmac_ctx;
                  ^~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_input.c:24:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'esp_init':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:274:7: error: implicit declaration of function 'HMAC_CTX_init' [-Werror=implicit-function-declaration]
             HMAC_CTX_init (&(em->per_thread_data[thread_id].hmac_ctx));
             ^~~~~~~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_input.c:24:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'hmac_calc':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/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 /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:18:0,
                       from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_input.c:24:
      /usr/include/openssl/hmac.h:28:5: 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
      Makefile:2827: recipe for target 'vnet/ipsec/ipsec_input.lo' failed
      make[3]: *** [vnet/ipsec/ipsec_input.lo] Error 1
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if.c:26:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:63:18: error: field 'encrypt_ctx' has incomplete type
         EVP_CIPHER_CTX encrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:65:18: error: field 'decrypt_ctx' has incomplete type
         EVP_CIPHER_CTX decrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:67:12: error: field 'hmac_ctx' has incomplete type
         HMAC_CTX hmac_ctx;
                  ^~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if.c:26:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'esp_init':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:274:7: error: implicit declaration of function 'HMAC_CTX_init' [-Werror=implicit-function-declaration]
             HMAC_CTX_init (&(em->per_thread_data[thread_id].hmac_ctx));
             ^~~~~~~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if.c:26:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'hmac_calc':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/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 /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:18:0,
                       from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if.c:26:
      /usr/include/openssl/hmac.h:28:5: 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
      Makefile:2827: recipe for target 'vnet/ipsec/ipsec_if.lo' failed
      make[3]: *** [vnet/ipsec/ipsec_if.lo] Error 1
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if_in.c:23:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:63:18: error: field 'encrypt_ctx' has incomplete type
         EVP_CIPHER_CTX encrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:65:18: error: field 'decrypt_ctx' has incomplete type
         EVP_CIPHER_CTX decrypt_ctx;
                        ^~~~~~~~~~~
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:67:12: error: field 'hmac_ctx' has incomplete type
         HMAC_CTX hmac_ctx;
                  ^~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if_in.c:23:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'esp_init':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:274:7: error: implicit declaration of function 'HMAC_CTX_init' [-Werror=implicit-function-declaration]
             HMAC_CTX_init (&(em->per_thread_data[thread_id].hmac_ctx));
             ^~~~~~~~~~~~~
      In file included from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if_in.c:23:0:
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h: In function 'hmac_calc':
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/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 /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/esp.h:18:0,
                       from /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/../vnet/vnet/ipsec/ipsec_if_in.c:23:
      /usr/include/openssl/hmac.h:28:5: 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
      Makefile:2827: recipe for target 'vnet/ipsec/ipsec_if_in.lo' failed
      make[3]: *** [vnet/ipsec/ipsec_if_in.lo] Error 1
      make[3]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-root/build-vpp-native/vnet'
      Makefile:1452: recipe for target 'all' failed
      make[2]: *** [all] Error 2
      make[2]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-root/build-vpp-native/vnet'
      Makefile:699: recipe for target 'vnet-build' failed
      make[1]: *** [vnet-build] Error 2
      make[1]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-root'
      /home/actionmystique/Program-Files/Ubuntu/VPP/git-vpp/build-data/platforms.mk:20: recipe for target 'install-deb' failed
      make: *** [install-deb] Error 1
      

      Full build log has been attached.

        1. vpp-openssl-issue.txt
          122 kB
          jean-christophe manciot

            Unassigned Unassigned
            jc-manciot jean-christophe manciot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: