Yes, you need intel ipsecmb library version 1.0.

We should better deal with this kind of situations, display warning and turn 
off feature instead of compile failures.


do “make install-ext-dep”….

— 
Damjan


> On 20.05.2021., at 11:46, liuyacan <[email protected]> wrote:
> 
> Hi, All
> 
>        I checked out the latest code and try to build, but encountered the 
> following error.  Do I need to install/update any package ?
> I'm sure it was ok before.
>
> VPP version         : 21.06-rc0~755-g785458895
> VPP library version : 21.06
> GIT toplevel dir    : /home/liuyacan/vpp_gerrit/vpp
> Build type          : debug
> C flags             :
> Linker flags (apps) :
> Linker flags (libs) :
> Host processor      : x86_64
> Target processor    : x86_64
> Prefix path         : 
> /opt/vpp/external/x86_64;/home/liuyacan/vpp_gerrit/vpp/build-root/install-vpp_debug-native/external
> Install prefix      : 
> /home/liuyacan/vpp_gerrit/vpp/build-root/install-vpp_debug-native/vpp
> -- Configuring done
> -- Generating done
> -- Build files have been written to: 
> /home/liuyacan/vpp_gerrit/vpp/build-root/build-vpp_debug-native/vpp
> @@@@ Building vpp in 
> /home/liuyacan/vpp_gerrit/vpp/build-root/build-vpp_debug-native/vpp @@@@
> [1620/2492] Building C object 
> CMakeFiles/plugins/crypto_ipsecmb/CMakeFiles/crypto_ipsecmb_plugin.dir/ipsecmb.c.o
> FAILED: 
> CMakeFiles/plugins/crypto_ipsecmb/CMakeFiles/crypto_ipsecmb_plugin.dir/ipsecmb.c.o
> ccache /usr/bin/clang-9 --target=x86_64-linux-gnu 
> -Dcrypto_ipsecmb_plugin_EXPORTS -I/home/liuyacan/vpp_gerrit/vpp/src 
> -ICMakeFiles -I/home/liuyacan/vpp_gerrit/vpp/src/plugins -ICMakeFiles/plugins 
> -I/opt/vpp/external/x86_64/include -fPIC   -g -fPIC -Werror -Wall 
> -Wno-address-of-packed-member -O0 -fstack-protector -fno-common -DCLIB_DEBUG 
> -march=corei7 -mtune=corei7-avx -fvisibility=hidden -ffunction-sections 
> -fdata-sections -march=silvermont -maes -MD -MT 
> CMakeFiles/plugins/crypto_ipsecmb/CMakeFiles/crypto_ipsecmb_plugin.dir/ipsecmb.c.o
>  -MF 
> CMakeFiles/plugins/crypto_ipsecmb/CMakeFiles/crypto_ipsecmb_plugin.dir/ipsecmb.c.o.d
>  -o 
> CMakeFiles/plugins/crypto_ipsecmb/CMakeFiles/crypto_ipsecmb_plugin.dir/ipsecmb.c.o
>    -c /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:459:5: 
> error: unknown type name 'IMB_CIPHER_DIRECTION'; did you mean 
> 'JOB_CIPHER_DIRECTION'?
>                          IMB_CIPHER_DIRECTION dir)
>                          ^~~~~~~~~~~~~~~~~~~~
>                          JOB_CIPHER_DIRECTION
> /opt/vpp/external/x86_64/include/intel-ipsec-mb.h:280:3: note: 
> 'JOB_CIPHER_DIRECTION' declared here
> } JOB_CIPHER_DIRECTION;
>   ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:548:6: 
> error: unknown type name 'IMB_CIPHER_DIRECTION'; did you mean 
> 'JOB_CIPHER_DIRECTION'?
>                                  IMB_CIPHER_DIRECTION dir)
>                                  ^~~~~~~~~~~~~~~~~~~~
>                                  JOB_CIPHER_DIRECTION
> /opt/vpp/external/x86_64/include/intel-ipsec-mb.h:280:3: note: 
> 'JOB_CIPHER_DIRECTION' declared here
> } JOB_CIPHER_DIRECTION;
>   ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:563:42: 
> error: variable has incomplete type 'struct chacha20_poly1305_context_data'
>           struct chacha20_poly1305_context_data ctx;
>                                                 ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:563:11: 
> note: forward declaration of 'struct chacha20_poly1305_context_data'
>           struct chacha20_poly1305_context_data ctx;
>                  ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:586:4: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_INIT' is 
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:592:8: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_ENC_UPDATE' is 
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>               IMB_CHACHA20_POLY1305_ENC_UPDATE (m, key, &ctx, chp->dst,
>               ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:592:8: 
> note: did you mean 'IMB_CHACHA20_POLY1305_INIT'?
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:586:4: 
> note: 'IMB_CHACHA20_POLY1305_INIT' declared here
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:597:4: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_ENC_FINALIZE' 
> is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>           IMB_CHACHA20_POLY1305_ENC_FINALIZE (m, &ctx, op->tag, op->tag_len);
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:597:4: 
> note: did you mean 'IMB_CHACHA20_POLY1305_INIT'?
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:586:4: 
> note: 'IMB_CHACHA20_POLY1305_INIT' declared here
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:607:42: 
> error: variable has incomplete type 'struct chacha20_poly1305_context_data'
>           struct chacha20_poly1305_context_data ctx;
>                                                 ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:607:11: 
> note: forward declaration of 'struct chacha20_poly1305_context_data'
>           struct chacha20_poly1305_context_data ctx;
>                  ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:622:4: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_INIT' is 
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:628:8: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_DEC_UPDATE' is 
> invalid in C99 [-Werror,-Wimplicit-function-declaration]
>               IMB_CHACHA20_POLY1305_DEC_UPDATE (m, key, &ctx, chp->dst,
>               ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:628:8: 
> note: did you mean 'IMB_CHACHA20_POLY1305_INIT'?
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:586:4: 
> note: 'IMB_CHACHA20_POLY1305_INIT' declared here
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:633:4: 
> error: implicit declaration of function 'IMB_CHACHA20_POLY1305_DEC_FINALIZE' 
> is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>           IMB_CHACHA20_POLY1305_DEC_FINALIZE (m, &ctx, scratch, op->tag_len);
>           ^
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:633:4: 
> note: did you mean 'IMB_CHACHA20_POLY1305_INIT'?
> /home/liuyacan/vpp_gerrit/vpp/src/plugins/crypto_ipsecmb/ipsecmb.c:586:4: 
> note: 'IMB_CHACHA20_POLY1305_INIT' declared here
>           IMB_CHACHA20_POLY1305_INIT (m, key, &ctx, op->iv, op->aad,
>           ^
> 10 errors generated.
> [1667/2492] Building C object 
> CMakeFiles/plugins/dns/CMakeFiles/dns_plugin.dir/dns.c.o
> ninja: build stopped: subcommand failed.
> Makefile:693: recipe for target 'vpp-build' failed
> make[1]: *** [vpp-build] Error 1
> make[1]: Leaving directory '/home/liuyacan/vpp_gerrit/vpp/build-root'
> Makefile:356: recipe for target 'build' failed
> make: *** [build] Error 2
> 
> 
> Regards,
> Yacan
> 
> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19415): https://lists.fd.io/g/vpp-dev/message/19415
Mute This Topic: https://lists.fd.io/mt/82957919/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to