DPDK usage discussions
 help / color / 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, back to index

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

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox