Hi Paul,

 

Can you provide more context for the linker failure including complete logs?  Also, prepending with “Q=” will give the full linker line.

 

Thanks,

 

-Jim

 

 

From: SPDK <spdk-bounces@lists.01.org> on behalf of Paul E Luse <paul.e.luse@intel.com>
Reply-To: Storage Performance Development Kit <spdk@lists.01.org>
Date: Monday, July 30, 2018 at 12:37 PM
To: Storage Performance Development Kit <spdk@lists.01.org>
Subject: [SPDK] DPDK linking, include question

 

 

Wrt the crypto module https://review.gerrithub.io/c/spdk/spdk/+/403107 I have the need to make a function call to a function that is declared/defined in rte_cryotp.h- a function called rte_crypto_op_free() (see https://doc.dpdk.org/guides/prog_guide/cryptodev_lib.html section 14.4.4) as I believe I’ve been freeing crypto operation incorrectly and this is potentially the root cause for a data miscompare I get w/65K & >32 qd loads with bdevper and –verify option.

 

Anyway, I get a linker error (below) even though I have rte_crypto.h included and rte_cryptodev library is properly linked.

 

/home/peluse/spdk/lib/bdev/crypto/vbdev_crypto.c:420: undefined reference to `rte_crypto_op_free'

collect2: error: ld returned 1 exit status

 

Also note that I make other calls like rte_crypto_op_pool_create() that is defined in the same file but I have no problems ther.

 

Am I missing something really, really obvious here?