DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/thunderx: add missing external library dependency
@ 2016-06-29 18:34 Ferruh Yigit
  2016-06-30  3:32 ` Jerin Jacob
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2016-06-29 18:34 UTC (permalink / raw)
  To: dev; +Cc: Jerin Jacob, Maciej Czekaj

To prevent compile error when compiling for shared library:
nicvf_hw.o: In function `nicvf_qsize_regbit':
nicvf_hw.c:(.text+0xe64): undefined reference to `log2'
nicvf_hw.o: In function `nicvf_rss_reta_update':
nicvf_hw.c:(.text+0x19dd): undefined reference to `log2'
nicvf_hw.o: In function `nicvf_rss_reta_query':
nicvf_hw.c:(.text+0x1acb): undefined reference to `log2'

Fixes: e438796617dc ("net/thunderx: add PMD skeleton")
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 drivers/net/thunderx/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/thunderx/Makefile b/drivers/net/thunderx/Makefile
index 078237e..8ea6b45 100644
--- a/drivers/net/thunderx/Makefile
+++ b/drivers/net/thunderx/Makefile
@@ -39,6 +39,8 @@ LIB = librte_pmd_thunderx_nicvf.a
 
 CFLAGS += $(WERROR_FLAGS)
 
+LDLIBS += -lm
+
 EXPORT_MAP := rte_pmd_thunderx_nicvf_version.map
 
 LIBABIVER := 1
-- 
2.7.4

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

* Re: [dpdk-dev] [PATCH] net/thunderx: add missing external library dependency
  2016-06-29 18:34 [dpdk-dev] [PATCH] net/thunderx: add missing external library dependency Ferruh Yigit
@ 2016-06-30  3:32 ` Jerin Jacob
  2016-06-30  9:20   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Jerin Jacob @ 2016-06-30  3:32 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: dev, Maciej Czekaj

On Wed, Jun 29, 2016 at 07:34:49PM +0100, Ferruh Yigit wrote:
> To prevent compile error when compiling for shared library:
> nicvf_hw.o: In function `nicvf_qsize_regbit':
> nicvf_hw.c:(.text+0xe64): undefined reference to `log2'
> nicvf_hw.o: In function `nicvf_rss_reta_update':
> nicvf_hw.c:(.text+0x19dd): undefined reference to `log2'
> nicvf_hw.o: In function `nicvf_rss_reta_query':
> nicvf_hw.c:(.text+0x1acb): undefined reference to `log2'
> 
> Fixes: e438796617dc ("net/thunderx: add PMD skeleton")
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

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

* Re: [dpdk-dev] [PATCH] net/thunderx: add missing external library dependency
  2016-06-30  3:32 ` Jerin Jacob
@ 2016-06-30  9:20   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2016-06-30  9:20 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: dev, Jerin Jacob, Maciej Czekaj

2016-06-30 09:02, Jerin Jacob:
> On Wed, Jun 29, 2016 at 07:34:49PM +0100, Ferruh Yigit wrote:
> > To prevent compile error when compiling for shared library:
> > nicvf_hw.o: In function `nicvf_qsize_regbit':
> > nicvf_hw.c:(.text+0xe64): undefined reference to `log2'
> > nicvf_hw.o: In function `nicvf_rss_reta_update':
> > nicvf_hw.c:(.text+0x19dd): undefined reference to `log2'
> > nicvf_hw.o: In function `nicvf_rss_reta_query':
> > nicvf_hw.c:(.text+0x1acb): undefined reference to `log2'
> > 
> > Fixes: e438796617dc ("net/thunderx: add PMD skeleton")
> > Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

Applied, thanks

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

end of thread, other threads:[~2016-06-30  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29 18:34 [dpdk-dev] [PATCH] net/thunderx: add missing external library dependency Ferruh Yigit
2016-06-30  3:32 ` Jerin Jacob
2016-06-30  9:20   ` Thomas Monjalon

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