From: Andrew Tridgell Date: Wed, 23 Feb 2011 06:05:47 +0000 (+1100) Subject: build: don't display expected duplicate symbols X-Git-Tag: tevent-0.9.11~339 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a6e0edc047e6ec4b4fe9483f9961fff6b7061f9;p=thirdparty%2Fsamba.git build: don't display expected duplicate symbols --- diff --git a/buildtools/wafsamba/symbols.py b/buildtools/wafsamba/symbols.py index 0408d61b297..0d0af79d066 100644 --- a/buildtools/wafsamba/symbols.py +++ b/buildtools/wafsamba/symbols.py @@ -453,9 +453,14 @@ def symbols_dupcheck(task): Logs.info("Checking for duplicate symbols") for sym in bld.env.symbol_map: - subsystems = bld.env.symbol_map[sym] + subsystems = set(bld.env.symbol_map[sym]) if len(subsystems) == 1: continue + + if sym in ['main', '_init', '_fini', 'init_samba_module', 'samba_init_module', 'ldb_init_module' ]: + # these are expected to be in many subsystems + continue + # if all of them are in system libraries, we can ignore them. This copes # with the duplication between libc, libpthread and libattr all_syslib = True