The global variable is not accessible from libdpdk.so I don't really see how the linker can find it in this case.
-----Original Message----- From: David Marchand <david.march...@redhat.com> Sent: 13 April 2022 10:11 To: Abdelfattah Chehab <abdelfattah.chehab-...@ekinops.com> Cc: dev@dpdk.org; sta...@dpdk.org Subject: Re: [PATCH] vmbus: get current rte_vmbus_bus struct On Wed, Apr 13, 2022 at 9:32 AM Abdelfattah Chehab <abdelfattah.chehab-...@ekinops.com> wrote: > > Hi All, > > FOREACH_DEVICE_ON_VMBUS needs rte_vmbus_bus to work on > > If static link to libdpdk.a : no issues > > If dynamic link to *.so: linker issue, global variable not found. Not sure I really get your usecase, but this probably is a linking issue on your side. -- David Marchand