DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] problem with rte_hash
@ 2013-06-09 14:52 Gal Sagie
  2013-06-09 17:16 ` Wiles, Roger Keith
  0 siblings, 1 reply; 3+ messages in thread
From: Gal Sagie @ 2013-06-09 14:52 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

Hello all,

I am trying to do an example of using rte_hash, i am getting the following
linker problem:

/main.o   -lrte_eal -lpthread -lethdev -lrte_malloc -lrte_mbuf
-lrte_mempool -lrte_pmd_igb -lrte_pmd_ixgbe -lrte_ring -lrte_timer
-lrte_hash
/home/gal/dpdk/x86_64-default-linuxapp-gcc/lib/librte_hash.a(rte_hash.o):
In function `rte_hash_create':
rte_hash.c:(.text+0x6f8): undefined reference to `rte_cpu_get_flag_enabled'
collect2: ld returned 1 exit status

anyone familiar with that?

Thanks in advance!

[-- Attachment #2: Type: text/html, Size: 581 bytes --]

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

* Re: [dpdk-dev] problem with rte_hash
  2013-06-09 14:52 [dpdk-dev] problem with rte_hash Gal Sagie
@ 2013-06-09 17:16 ` Wiles, Roger Keith
  2013-06-10  4:14   ` Gal Sagie
  0 siblings, 1 reply; 3+ messages in thread
From: Wiles, Roger Keith @ 2013-06-09 17:16 UTC (permalink / raw)
  To: Gal Sagie; +Cc: <dev@dpdk.org>

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

Hi

Could this problem be a circular linker problem, try duplicating the libraries on the link line again and see if that fixes the problem. In GCC you also have the option --start-group and --end-group to force the linker to resolve  relink these libs until all of the dependences have been resolved.

In the mk/rte.app.mk makefile fragment is an example of these options.

I hope this helps.

Thank you, ++Keith
-------------------------------
Keith Wiles
Principal Technologist for Networking
cell 972-213-5533
Wind River Systems


On Jun 9, 2013, at 9:52 AM, Gal Sagie <gal.sagie@gmail.com<mailto:gal.sagie@gmail.com>> wrote:

rte_cpu_get_flag_enabled


[-- Attachment #2: Type: text/html, Size: 2110 bytes --]

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

* Re: [dpdk-dev] problem with rte_hash
  2013-06-09 17:16 ` Wiles, Roger Keith
@ 2013-06-10  4:14   ` Gal Sagie
  0 siblings, 0 replies; 3+ messages in thread
From: Gal Sagie @ 2013-06-10  4:14 UTC (permalink / raw)
  To: Wiles, Roger Keith; +Cc: <dev@dpdk.org>

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

Hi,

Thanks for the help, i got it fixed (just moved the rte_hash library before
the rte_eal and it solved it)

On Sun, Jun 9, 2013 at 8:16 PM, Wiles, Roger Keith <
keith.wiles@windriver.com> wrote:

>  Hi
>
>  Could this problem be a circular linker problem, try duplicating the
> libraries on the link line again and see if that fixes the problem. In GCC
> you also have the option --start-group and --end-group to force the linker
> to resolve  relink these libs until all of the dependences have been
> resolved.
>
>  In the mk/rte.app.mk makefile fragment is an example of these options.
>
>  I hope this helps.
>
> Thank you, ++Keith
> -------------------------------
> Keith Wiles
> Principal Technologist for Networking
> cell 972-213-5533
> Wind River Systems
>
>
>  On Jun 9, 2013, at 9:52 AM, Gal Sagie <gal.sagie@gmail.com> wrote:
>
> rte_cpu_get_flag_enabled
>
>
>


-- 
Best Regards ,

The G.

[-- Attachment #2: Type: text/html, Size: 2235 bytes --]

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

end of thread, other threads:[~2013-06-10  4:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09 14:52 [dpdk-dev] problem with rte_hash Gal Sagie
2013-06-09 17:16 ` Wiles, Roger Keith
2013-06-10  4:14   ` Gal Sagie

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