DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] ring: build on Windows
@ 2020-05-20  9:34 Fady Bader
  2020-05-20 10:08 ` Dmitry Kozlyuk
  0 siblings, 1 reply; 2+ messages in thread
From: Fady Bader @ 2020-05-20  9:34 UTC (permalink / raw)
  To: dev
  Cc: thomas, talshn, yohadt, olivier.matz, harini.ramakrishnan,
	ocardona, anand.rawat, ranjit.menon

Exported per_lcore__rte_errno function to compile ring for windows.

compilation error logs:
librte_ring_rte_ring.c.obj : error LNK2019: unresolved
external symbol per_lcore__rte_errno referenced in
function rte_ring_lookup

The cause was that per_lcore__rte_errno function wasn't included
in the export list.
To solve this per_lcore__rte_errno was added to the Windows export
list.

Signed-off-by: Fady Bader <fady@mellanox.com>
Depends-on: series-9374 ("Windows basic memory management")
---
 lib/librte_eal/rte_eal_exports.def | 1 +
 lib/librte_eal/rte_eal_version.map | 5 ++++-
 lib/meson.build                    | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/librte_eal/rte_eal_exports.def b/lib/librte_eal/rte_eal_exports.def
index 854b83bcd..cbb6b8cfe 100644
--- a/lib/librte_eal/rte_eal_exports.def
+++ b/lib/librte_eal/rte_eal_exports.def
@@ -1,5 +1,6 @@
 EXPORTS
 	__rte_panic
+	per_lcore__rte_errno
 	rte_calloc
 	rte_calloc_socket
 	rte_eal_get_configuration
diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map
index bdd014638..1a1dedcd9 100644
--- a/lib/librte_eal/rte_eal_version.map
+++ b/lib/librte_eal/rte_eal_version.map
@@ -390,4 +390,7 @@ EXPERIMENTAL {
 	rte_trace_point_lookup;
 	rte_trace_regexp;
 	rte_trace_save;
-};
+
+	# added in 20.08
+	__emutls_v.per_lcore__rte_errno;
+};
\ No newline at end of file
diff --git a/lib/meson.build b/lib/meson.build
index d190d84ef..5b644f5cd 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -36,7 +36,7 @@ libraries = [
 	'flow_classify', 'bpf', 'graph', 'node']
 
 if is_windows
-	libraries = ['kvargs','eal'] # only supported libraries for windows
+	libraries = ['kvargs','eal','ring'] # only supported libraries for windows
 endif
 
 default_cflags = machine_args
-- 
2.16.1.windows.4


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

* Re: [dpdk-dev] [PATCH] ring: build on Windows
  2020-05-20  9:34 [dpdk-dev] [PATCH] ring: build on Windows Fady Bader
@ 2020-05-20 10:08 ` Dmitry Kozlyuk
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Kozlyuk @ 2020-05-20 10:08 UTC (permalink / raw)
  To: Fady Bader
  Cc: dev, thomas, talshn, yohadt, olivier.matz, harini.ramakrishnan,
	ocardona, anand.rawat, ranjit.menon

On Wed, 20 May 2020 12:34:44 +0300
Fady Bader <fady@mellanox.com> wrote:

> Exported per_lcore__rte_errno function to compile ring for windows.
> 
> compilation error logs:
> librte_ring_rte_ring.c.obj : error LNK2019: unresolved
> external symbol per_lcore__rte_errno referenced in
> function rte_ring_lookup
> 
> The cause was that per_lcore__rte_errno function wasn't included
> in the export list.
> To solve this per_lcore__rte_errno was added to the Windows export
> list.
> 
> Signed-off-by: Fady Bader <fady@mellanox.com>
> Depends-on: series-9374 ("Windows basic memory management")
> ---
>  lib/librte_eal/rte_eal_exports.def | 1 +
>  lib/librte_eal/rte_eal_version.map | 5 ++++-
>  lib/meson.build                    | 2 +-
>  3 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/librte_eal/rte_eal_exports.def
> b/lib/librte_eal/rte_eal_exports.def index 854b83bcd..cbb6b8cfe 100644
> --- a/lib/librte_eal/rte_eal_exports.def
> +++ b/lib/librte_eal/rte_eal_exports.def
> @@ -1,5 +1,6 @@
>  EXPORTS
>  	__rte_panic
> +	per_lcore__rte_errno
>  	rte_calloc
>  	rte_calloc_socket
>  	rte_eal_get_configuration
> diff --git a/lib/librte_eal/rte_eal_version.map
> b/lib/librte_eal/rte_eal_version.map index bdd014638..1a1dedcd9 100644
> --- a/lib/librte_eal/rte_eal_version.map
> +++ b/lib/librte_eal/rte_eal_version.map
> @@ -390,4 +390,7 @@ EXPERIMENTAL {
>  	rte_trace_point_lookup;
>  	rte_trace_regexp;
>  	rte_trace_save;
> -};
> +
> +	# added in 20.08
> +	__emutls_v.per_lcore__rte_errno;
> +};
> \ No newline at end of file

No newline at end of file.

> diff --git a/lib/meson.build b/lib/meson.build
> index d190d84ef..5b644f5cd 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -36,7 +36,7 @@ libraries = [
>  	'flow_classify', 'bpf', 'graph', 'node']
>  
>  if is_windows
> -	libraries = ['kvargs','eal'] # only supported libraries for
> windows
> +	libraries = ['kvargs','eal','ring'] # only supported

Please always place spaces after commas. And IMO, it's time to start
breaking this list into lines as the common list above it does.

> libraries for windows endif
>  
>  default_cflags = machine_args

--
Dmitry Kozlyuk

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

end of thread, other threads:[~2020-05-20 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20  9:34 [dpdk-dev] [PATCH] ring: build on Windows Fady Bader
2020-05-20 10:08 ` Dmitry Kozlyuk

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