Thanks Jim, “Make Q=” pointed out my mistake pretty quickly… the issue was in my unit
test code, the reference to the source below is, of course, because it was included by the
UT c file. Just needed a mock.
From: SPDK [mailto:email@example.com] On Behalf Of Harris, James R
Sent: Monday, July 30, 2018 1:05 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] DPDK linking, include question
Can you provide more context for the linker failure including complete logs? Also,
prepending with “Q=” will give the full linker line.
From: SPDK <firstname.lastname@example.org<mailto:email@example.com>> on
behalf of Paul E Luse <firstname.lastname@example.org<mailto:email@example.com>>
Reply-To: Storage Performance Development Kit
Date: Monday, July 30, 2018 at 12:37 PM
To: Storage Performance Development Kit
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
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
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
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?