eal: fix symbol missing in version map
cover eal: fix symbol missing in version map
These two patches are the fixing for the compling error when CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)
Signature · 1 line
1.8.1.4
PATCH 1/2 eal/linux: fix symbol missing in version map
In reply to a message not in the archiveAs per_lcore__socket_id and rte_sys_gettid are missing in version map, it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.
--- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 1 file changed, 2 insertions(+)
lib/librte_eal/linuxapp/eal/rte_eal_version.map +2 -0
@@ -10,6 +10,7 @@ DPDK_2.0 { pci_driver_list; per_lcore__lcore_id; per_lcore__rte_errno; + per_lcore__socket_id; rte_cpu_check_supported; rte_cpu_get_flag_enabled; rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 { rte_snprintf; rte_strerror; rte_strsplit; + rte_sys_gettid; rte_thread_get_affinity; rte_thread_set_affinity; rte_vlog;
Signature · 1 line
1.8.1.4
PATCH 2/2 eal/bsd: fix symbol missing in version map
In reply to a message not in the archiveAs per_lcore__socket_id and rte_sys_gettid are missing in version map, it causes compiling error when CONFIG_RTE_BUILD_SHARED_LIB is enabled.
--- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ 1 file changed, 2 insertions(+)
lib/librte_eal/bsdapp/eal/rte_eal_version.map +2 -0
@@ -10,6 +10,7 @@ DPDK_2.0 { pci_driver_list; per_lcore__lcore_id; per_lcore__rte_errno; + per_lcore__socket_id; rte_cpu_check_supported; rte_cpu_get_flag_enabled; rte_cycles_vmware_tsc_map;
@@ -83,6 +84,7 @@ DPDK_2.0 { rte_snprintf; rte_strerror; rte_strsplit; + rte_sys_gettid; rte_thread_get_affinity; rte_thread_set_affinity; rte_vlog;
Signature · 1 line
1.8.1.4
Quoted 4 lines · Cunming Liang
These two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.
Quoted 8 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version maplib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)
Hi Liang,
I've confirmed it works on my Linux environment.
Thanks,
Tetsuya
Quoted 12 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Cunming Liang
Sent: Wednesday, February 25, 2015 3:40 AM
To: [email protected]
Subject: [dpdk-dev] [PATCH v1 0/2] eal: fix symbol missing in version mapThese two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y.
The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
in the version map.
Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.
Quoted 8 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version maplib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)
Series Acked-by: John McNamara <[email protected]>
Thomas Monjalon
AppliedQuoted 5 lines
Quoted 5 lines
These two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y.
The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing
in the version map.
Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.
Please use Reported-by: in such case.
Quoted 3 lines
Quoted 3 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version map
Merged together
Quoted 1 line
Series Acked-by: John McNamara <[email protected]>
Applied, thanks
Neil Horman
NAKQuoted 4 lines · Cunming Liang
These two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.
Quoted 12 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version maplib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)Signature · 1 line
1.8.1.4
NAK
This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead, rte_socket id should be made a non inline function and exported. Then the definition of per_lcore_socket_id can be made private, protecting it from type changes.
Neil
2015-02-25 07:30, Neil Horman:
Quoted 14 lines · Cunming Liang
Quoted 4 lines
These two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.Quoted 8 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version maplib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)
Quoted 6 lines
NAK
This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead,
rte_socketid should be made a non inline function and exported. Then the definition ofper_lcore_socket_idcan be made private, protecting it from type changes.
Neil, I applied the patches to fix compilation on HEAD. In case your comment makes sense, a cleanup would be appreciated.
Thanks
Quoted 22 lines · Thomas Monjalon
2015-02-25 07:30, Neil Horman:
Quoted 14 lines · Cunming Liang
Quoted 4 lines
These two patches are the fixing for the compling error when
CONFIG_RTE_BUILD_SHARED_LIB=y. The root cause is *per_lcore__socket_id* and *rte_sys_gettid* are missing in the version map. Thanks for the notification from Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/[email protected]>.Quoted 8 lines
Cunming Liang (2):
eal/linux: fix symbol missing in version map
eal/bsd: fix symbol missing in version maplib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 ++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 ++ 2 files changed, 4 insertions(+)Quoted 6 lines
NAK
This is the wrong way to fix this problem. Exporting global variables is never a good solution when it can be helped. Instead,
rte_socketid should be made a non inline function and exported. Then the definition ofper_lcore_socket_idcan be made private, protecting it from type changes.
Quoted 5 lines
Neil, I applied the patches to fix compilation on HEAD. In case your comment makes sense, a cleanup would be appreciated.
Thanks
Sent. You and Cunming are CC-ed
Thanks
Neil