mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
9e706ee573
waf somehow screws the dependencies and the module ends up with a bunch of missing RPC related symbols once an RPC service has special dependencies like the mdssvc RPC service. $ bin/test_lib_util_modules test: test_samba_module_probe success: test_samba_module_probe test: test_samba_module_probe_dummy Error loading module '/home/samba/src/bin/modules/rpc/test_dummy_module.so': /home/samba/src/bin/modules/rpc/test_dummy_module.so: undefined symbol: rpc_service_mode failure: test_samba_module_probe_dummy [ NT_STATUS_IS_OK(status) ../../testsuite/unittests/test_lib_util_modules.c:39: error: Failure! ] test: test_samba_module_probe_slash success: test_samba_module_probe_slash This is currently not noticed as mdssvc is not enabled in selftest, but that is going to change with a subsequent commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
def configure(conf):
|
|
return
|
|
|
|
def build(bld):
|
|
bld.SAMBA_BINARY('test_krb5samba',
|
|
source='test_krb5_samba.c',
|
|
deps='krb5samba cmocka',
|
|
install=False)
|
|
|
|
bld.SAMBA_BINARY('test_sambafs_srv_pipe',
|
|
source='test_sambafs_srv_pipe.c',
|
|
deps='''
|
|
RPC_SERVER
|
|
RPC_SAMR
|
|
cmocka
|
|
''',
|
|
install=False)
|
|
|
|
bld.SAMBA_BINARY('test_lib_util_modules',
|
|
source='test_lib_util_modules.c',
|
|
deps='''
|
|
samba-modules
|
|
cmocka
|
|
''',
|
|
install=False)
|
|
|
|
bld.SAMBA_MODULE('rpc_test_dummy_module',
|
|
source='rpc_test_dummy_module.c',
|
|
deps='ndr smbd_base',
|
|
subsystem='rpc',
|
|
allow_undefined_symbols=True,
|
|
init_function='',
|
|
internal_module=False,
|
|
install=False)
|