summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2020-10-20 17:27:14 +1100
committerAndreas Schneider <asn@cryptomilk.org>2020-10-22 16:05:30 +0000
commit4cd195aafefb02b6921ea8439dd3897f8c74b012 (patch)
tree4ecb505c71cfb281b97b874e3bb869e8fb03e163 /librpc
parent1262b13f4db9502c36579b7dd740d8002e0baac9 (diff)
downloadsamba-4cd195aafefb02b6921ea8439dd3897f8c74b012.tar.gz
libndr: Avoid assigning duplicate versions to symbols
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14541 Symbols _ndr_push_error and _ndr_pull_error keep getting redefined as they are included without wildcard in abi_match. Apparently on linux ld does not complain about duplicate symbols, but on freebsd ld fails to link with following error: [ 918/3912] Linking bin/default/librpc/libndr.so ld: error: duplicate symbol '_ndr_pull_error' in version script ld: error: duplicate symbol '_ndr_push_error' in version script clang: error: linker command failed with exit code 1 (use -v to see invocation) Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/wscript_build2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/wscript_build b/librpc/wscript_build
index 9da1a3c8192..398fff7167e 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -645,7 +645,7 @@ bld.SAMBA_LIBRARY('ndr',
header_path= [('*gen_ndr*', 'gen_ndr')],
vnum='1.0.1',
abi_directory='ABI',
- abi_match='!ndr_table_* ndr_* GUID_* _ndr_pull_error _ndr_push_error',
+ abi_match='!ndr_table_* ndr_* GUID_* _ndr_pull_error* _ndr_push_error*',
)
bld.SAMBA_LIBRARY('dcerpc-binding',