Hello, I am new to VPP and trying to integrate VPP with SPDK. I see old VPP version generates .a files as well along with .so files which were useful to SPDK with. But latest version, it generates only .so files, I tried to change /src/cmake/library.cmake to build static library as well but build fails:
: && ccache /opt/rh/devtoolset-7/root/bin/cc -march=corei7 -mtune=corei7-avx -g -O0 -DCLIB_DEBUG -DFORTIFY_SOURCE=2 -fstack-protector-all -fPIC -Werror -Wl,--export-dynamic -rdynamic vat/CMakeFiles/vpp_api_test.dir/api_format.c.o vat/CMakeFiles/vpp_api_test.dir/main.c.o vat/CMakeFiles/vpp_api_test.dir/plugin.c.o vat/CMakeFiles/vpp_api_test.dir/json_format.c.o vat/CMakeFiles/vpp_api_test.dir/types.c.o -o bin/vpp_api_test -Wl,-rpath,:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: vlibmemory/libvlibmemoryclient.a svm/libsvm.a vat/libvatplugin.a vppinfra/libvppinfra.a -lrt -lm -ldl -lcrypto -lpthread -pthread && : vat/libvatplugin.a(plugin_api.c.o): In function `unformat_ip4_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:39: multiple definition of `unformat_ip4_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:197: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `unformat_ethernet_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:59: multiple definition of `unformat_ethernet_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:217: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `unformat_ethernet_type_host_byte_order': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:82: multiple definition of `unformat_ethernet_type_host_byte_order' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:240: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `unformat_ip6_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:100: multiple definition of `unformat_ip6_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:258: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `format_ip4_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:191: multiple definition of `format_ip4_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:640: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `format_ip6_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:198: multiple definition of `format_ip6_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:647: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `format_ip46_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:249: multiple definition of `format_ip46_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:698: first defined here vat/libvatplugin.a(plugin_api.c.o): In function `format_ethernet_address': /home/nr.pandian/projects/vpp-main-19.01/src/vat/plugin_api.c:274: multiple definition of `format_ethernet_address' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:723: first defined here vppinfra/libvppinfra.a(std-formats.c.o): In function `format_hex_bytes': /home/nr.pandian/projects/vpp-main-19.01/src/vppinfra/std-formats.c:85: multiple definition of `format_hex_bytes' vat/CMakeFiles/vpp_api_test.dir/api_format.c.o:/home/nr.pandian/projects/vpp-main-19.01/src/vat/api_format.c:4920: first defined here collect2: error: ld returned 1 exit status [548/558] Building C object vcl/CMakeFiles/vppcom.dir/vcl_bapi.c.o ninja: build stopped: subcommand failed. make[1]: *** [vpp-build] Error 1 make[1]: Leaving directory `/home/nr.pandian/projects/vpp-main-19.01/build-root' make: *** [build] Error 2 Can someone shed light on this? Thanks Ram
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11818): https://lists.fd.io/g/vpp-dev/message/11818 Mute This Topic: https://lists.fd.io/mt/28918688/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-