DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [DPDK] broken compilation when RTE_LIBRTE_SECURITY is not enabled
@ 2019-10-14  8:14 Thierry Herbelot
  0 siblings, 0 replies; only message in thread
From: Thierry Herbelot @ 2019-10-14  8:14 UTC (permalink / raw)
  To: dev

Hello,

When disabling RTE_LIBRTE_SECURITY, DPDK compilation fails with the 
following error messages:

   CC test_cryptodev.o
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:76:40: error: field 
‘type’ has incomplete type
   enum rte_security_session_action_type type;
                                         ^~~~
/home/herbelot/work/dpdk/app/test/test_cryptodev.c: In function 
‘ut_teardown’:
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:576:25: error: 
‘RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL’ undeclared (first use in 
this function)
   if (ut_params->type == RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) {
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:576:25: note: each 
undeclared identifier is reported only once for each function it appears in
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:578:4: error: 
implicit declaration of function ‘rte_security_session_destroy’; did you 
mean ‘rte_cryptodev_pmd_destroy’? [-Werror=implicit-function-declaration]
     rte_security_session_destroy(rte_cryptodev_get_sec_ctx
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
     rte_cryptodev_pmd_destroy
/home/herbelot/work/dpdk/app/test/test_cryptodev.c:578:4: error: nested 
extern declaration of ‘rte_security_session_destroy’ 
[-Werror=nested-externs]


Indeed, in commit d883e6e7131b ('test/crypto: add PDCP C-Plane encap 
cases'), RTE_SECURITY features are used outside of an "ifdef".

	Thanks

	Thierry

-- 
Thierry Herbelot
6WIND
Senior Software Engineer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-14  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-14  8:14 [dpdk-dev] [DPDK] broken compilation when RTE_LIBRTE_SECURITY is not enabled Thierry Herbelot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).