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

error: 'HMAC_Init_ex' is deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 22.02
    • Build system
    • None
    • Ubuntu impish 21.10
      clang-13 1:13.0.0-2
      ccache 4.2.1-0ubuntu1
      openssl 3.0.1-0ubuntu1

      Building with:

      export MAKEOPTS="--jobs=4 --load-average=3"
      export EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=3"
      make -j 4 -l 3 V=0 PLATFORM=vpp TAG=vpp pkg-deb
      

      leads to:

      -- Configuration:
      VPP version         : 22.02-release
      VPP library version : 22.02
      GIT toplevel dir    : git-vpp
      Build type          : release
      C compiler          : /usr/lib/ccache/clang-13
      C flags             : 
      Linker flags (apps) : 
      Linker flags (libs) : 
      Host processor      : x86_64
      Target processor    : x86_64
      Prefix path         : /opt/vpp/external/x86_64 git-vpp/build-root/install-vpp-native/external
      Install prefix      : git-vpp/build-root/install-vpp-native/vpp
      Library dir         : lib/x86_64-linux-gnu
      -- Configuring done
      -- Generating done
      -- Build files have been written to: git-vpp/build-root/build-vpp-native/vpp
      @@@@ Building vpp in git-vpp/build-root/build-vpp-native/vpp @@@@
      [1667/2504] Building C object CMakeFiles/plugins/crypto_openssl/CMakeFiles/crypto_openssl_plugin.dir/main.c.o
      FAILED: CMakeFiles/plugins/crypto_openssl/CMakeFiles/crypto_openssl_plugin.dir/main.c.o 
      ccache /usr/lib/ccache/clang-13 --target=x86_64-linux-gnu -DHAVE_FCNTL64 -D_FORTIFY_SOURCE=2 -Dcrypto_openssl_plugin_EXPORTS -Igit-vpp/src -Igit-vpp/build-root/build-vpp-native/vpp/CMakeFiles -Igit-vpp/src/plugins -Igit-vpp/build-root/build-vpp-native/vpp/CMakeFiles/plugins -fPIC -g -Werror -Wall -Wno-address-of-packed-member -O3 -fstack-protector -fno-common -march=corei7 -mtune=corei7-avx -fvisibility=hidden -ffunction-sections -fdata-sections -MD -MT CMakeFiles/plugins/crypto_openssl/CMakeFiles/crypto_openssl_plugin.dir/main.c.o -MF CMakeFiles/plugins/crypto_openssl/CMakeFiles/crypto_openssl_plugin.dir/main.c.o.d -o CMakeFiles/plugins/crypto_openssl/CMakeFiles/crypto_openssl_plugin.dir/main.c.o -c git-vpp/src/plugins/crypto_openssl/main.c
      git-vpp/src/plugins/crypto_openssl/main.c:383:7: error: 'HMAC_Init_ex' is deprecated [-Werror,-Wdeprecated-declarations]
            HMAC_Init_ex (ctx, key->data, vec_len (key->data), md, NULL);
            ^
      /usr/include/openssl/hmac.h:43:1: note: 'HMAC_Init_ex' has been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
      ^
      /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      git-vpp/src/plugins/crypto_openssl/main.c:389:8: error: 'HMAC_Update' is deprecated [-Werror,-Wdeprecated-declarations]
                    HMAC_Update (ctx, chp->src, chp->len);
                    ^
      /usr/include/openssl/hmac.h:45:1: note: 'HMAC_Update' has been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
      ^
      /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      git-vpp/src/plugins/crypto_openssl/main.c:394:2: error: 'HMAC_Update' is deprecated [-Werror,-Wdeprecated-declarations]
              HMAC_Update (ctx, op->src, op->len);
              ^
      /usr/include/openssl/hmac.h:45:1: note: 'HMAC_Update' has been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
      ^
      /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      git-vpp/src/plugins/crypto_openssl/main.c:395:7: error: 'HMAC_Final' is deprecated [-Werror,-Wdeprecated-declarations]
            HMAC_Final (ctx, buffer, &out_len);
            ^
      /usr/include/openssl/hmac.h:47:1: note: 'HMAC_Final' has been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
      ^
      /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      git-vpp/src/plugins/crypto_openssl/main.c:517:21: error: 'HMAC_CTX_new' is deprecated [-Werror,-Wdeprecated-declarations]
          ptd->hmac_ctx = HMAC_CTX_new ();
                          ^
      /usr/include/openssl/hmac.h:33:1: note: 'HMAC_CTX_new' has been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void);
      ^
      /usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      5 errors generated.
      [1682/2504] Building C object CMakeFiles/plugins/avf/CMakeFiles/avf_plugin_hsw.dir/input.c.o
      ninja: build stopped: subcommand failed.
      

            dbarach Dave Barach
            jc-manciot jean-christophe manciot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: