DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0'
@ 2020-07-14 11:25 David Aldrich
  2020-07-14 16:11 ` David Aldrich
  0 siblings, 1 reply; 2+ messages in thread
From: David Aldrich @ 2020-07-14 11:25 UTC (permalink / raw)
  To: users

Hi
I have built a single shared library consisting of my code and multiple
dpdk libraries, using  dpdk-stable-18.11.8 on Centos 7 with the gcc
compiler.

When I link the library to my main.cpp I get linker error:

undefined reference to symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0'

Now, I see:

$ nm librte_eal.so | grep cpu_get_flag_enabled
000000000002ec70 T rte_cpu_get_flag_enabled

so 'rte_cpu_get_flag_enabled' is present but
symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' is not present
in librte_eal.so.  So that explains the linker error.

What does the suffix '@@DPDK_2.0' indicate?

How would I build a dpdk library with such symbols?

Do I need librte_eal2.so?

Best regards
David

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0'
  2020-07-14 11:25 [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' David Aldrich
@ 2020-07-14 16:11 ` David Aldrich
  0 siblings, 0 replies; 2+ messages in thread
From: David Aldrich @ 2020-07-14 16:11 UTC (permalink / raw)
  To: users

I think this is fixed now. I am building with CMake and needed to declare
the target libraries as PUBLIC not PRIVATE.

On Tue, Jul 14, 2020 at 12:25 PM David Aldrich <david.aldrich.ntml@gmail.com>
wrote:

> Hi
> I have built a single shared library consisting of my code and multiple
> dpdk libraries, using  dpdk-stable-18.11.8 on Centos 7 with the gcc
> compiler.
>
> When I link the library to my main.cpp I get linker error:
>
> undefined reference to symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0'
>
> Now, I see:
>
> $ nm librte_eal.so | grep cpu_get_flag_enabled
> 000000000002ec70 T rte_cpu_get_flag_enabled
>
> so 'rte_cpu_get_flag_enabled' is present but
> symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' is not present
> in librte_eal.so.  So that explains the linker error.
>
> What does the suffix '@@DPDK_2.0' indicate?
>
> How would I build a dpdk library with such symbols?
>
> Do I need librte_eal2.so?
>
> Best regards
> David
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-14 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 11:25 [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0' David Aldrich
2020-07-14 16:11 ` David Aldrich

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).