DPDK usage discussions
 help / color / mirror / Atom feed
From: David Aldrich <david.aldrich.ntml@gmail.com>
To: users <users@dpdk.org>
Subject: Re: [dpdk-users] Missing symbol 'rte_cpu_get_flag_enabled@@DPDK_2.0'
Date: Tue, 14 Jul 2020 17:11:09 +0100
Message-ID: <CAJK_ieh6iLU2-MUr9gm4jVeVsYYfnMjexPeknjDePoyPauRZAA@mail.gmail.com> (raw)
In-Reply-To: <CAJK_iejAcCyu3FonCtGeTDqW=1g9q7vc62d3viSWYXTugkThmA@mail.gmail.com>

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
>

      reply	other threads:[~2020-07-14 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14 11:25 David Aldrich
2020-07-14 16:11 ` David Aldrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJK_ieh6iLU2-MUr9gm4jVeVsYYfnMjexPeknjDePoyPauRZAA@mail.gmail.com \
    --to=david.aldrich.ntml@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://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/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


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