From d81610d459295574f679cd5355f04988a4eb3d80 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 1 May 2006 01:34:04 +0000 Subject: r15370: Fix more dependencies for shared libs --- source/build/smb_build/input.pm | 1 + source/lib/ldb/tools/cmdline.c | 2 +- source/lib/ldb/tools/ldbdel.c | 2 +- source/lib/ldb/tools/ldbedit.c | 2 +- source/lib/ldb/tools/ldbmodify.c | 2 +- source/lib/ldb/tools/ldbrename.c | 2 +- source/lib/ldb/tools/ldbtest.c | 2 +- source/lib/registry/tools/regpatch.c | 4 ++-- source/lib/registry/tools/regshell.c | 4 ++-- source/nbt_server/config.mk | 2 +- source/ntptr/config.mk | 2 +- source/rpc_server/config.mk | 5 +++-- source/smb_server/config.mk | 3 ++- source/web_server/config.mk | 2 +- source/winbind/config.mk | 2 +- source/wrepl_server/config.mk | 2 +- 16 files changed, 21 insertions(+), 18 deletions(-) (limited to 'source') diff --git a/source/build/smb_build/input.pm b/source/build/smb_build/input.pm index 0bef89bb5ef..16306955a9d 100644 --- a/source/build/smb_build/input.pm +++ b/source/build/smb_build/input.pm @@ -71,6 +71,7 @@ sub check_module($$$) if ($mod->{OUTPUT_TYPE} eq "SHARED_LIBRARY") { $mod->{INSTALLDIR} = "MODULESDIR/$mod->{SUBSYSTEM}"; + push (@{$mod->{PRIVATE_DEPENDENCIES}}, $mod->{SUBSYSTEM}); } else { push (@{$INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTIONS}}, $mod->{INIT_FUNCTION}) if defined($mod->{INIT_FUNCTION}); } diff --git a/source/lib/ldb/tools/cmdline.c b/source/lib/ldb/tools/cmdline.c index fa01f5c3fb0..453fc146632 100644 --- a/source/lib/ldb/tools/cmdline.c +++ b/source/lib/ldb/tools/cmdline.c @@ -44,7 +44,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const #ifdef _SAMBA_BUILD_ int r; #endif - int num_options = 0; + int num_options = 0; int opt; struct poptOption popt_options[] = { POPT_AUTOHELP diff --git a/source/lib/ldb/tools/ldbdel.c b/source/lib/ldb/tools/ldbdel.c index 749ce3f91c2..aee911efaf7 100644 --- a/source/lib/ldb/tools/ldbdel.c +++ b/source/lib/ldb/tools/ldbdel.c @@ -73,7 +73,7 @@ static void usage(void) exit(1); } - int main(int argc, const char **argv) +int main(int argc, const char **argv) { struct ldb_context *ldb; int ret, i; diff --git a/source/lib/ldb/tools/ldbedit.c b/source/lib/ldb/tools/ldbedit.c index b4e2b0a8480..f2cbeedb649 100644 --- a/source/lib/ldb/tools/ldbedit.c +++ b/source/lib/ldb/tools/ldbedit.c @@ -272,7 +272,7 @@ static void usage(void) exit(1); } - int main(int argc, const char **argv) +int main(int argc, const char **argv) { struct ldb_context *ldb; struct ldb_result *result = NULL; diff --git a/source/lib/ldb/tools/ldbmodify.c b/source/lib/ldb/tools/ldbmodify.c index 4ce49c2ce81..24f93862663 100644 --- a/source/lib/ldb/tools/ldbmodify.c +++ b/source/lib/ldb/tools/ldbmodify.c @@ -84,7 +84,7 @@ static int process_file(struct ldb_context *ldb, FILE *f) return count; } - int main(int argc, const char **argv) +int main(int argc, const char **argv) { struct ldb_context *ldb; int count=0; diff --git a/source/lib/ldb/tools/ldbrename.c b/source/lib/ldb/tools/ldbrename.c index 32294268757..9c0870721d4 100644 --- a/source/lib/ldb/tools/ldbrename.c +++ b/source/lib/ldb/tools/ldbrename.c @@ -51,7 +51,7 @@ static void usage(void) } - int main(int argc, const char **argv) +int main(int argc, const char **argv) { struct ldb_context *ldb; int ret; diff --git a/source/lib/ldb/tools/ldbtest.c b/source/lib/ldb/tools/ldbtest.c index 5fd75a0cab4..c912245682f 100644 --- a/source/lib/ldb/tools/ldbtest.c +++ b/source/lib/ldb/tools/ldbtest.c @@ -371,7 +371,7 @@ static void usage(void) exit(1); } - int main(int argc, const char **argv) +int main(int argc, const char **argv) { TALLOC_CTX *mem_ctx = talloc_new(NULL); struct ldb_context *ldb; diff --git a/source/lib/registry/tools/regpatch.c b/source/lib/registry/tools/regpatch.c index 74601d73f9a..6e584e90a81 100644 --- a/source/lib/registry/tools/regpatch.c +++ b/source/lib/registry/tools/regpatch.c @@ -42,13 +42,13 @@ int main(int argc, char **argv) POPT_TABLEEND }; - registry_init(); - pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0); while((opt = poptGetNextOpt(pc)) != -1) { } + registry_init(); + if (remote) { error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL); } else { diff --git a/source/lib/registry/tools/regshell.c b/source/lib/registry/tools/regshell.c index 6bcaf42b6cb..dc8ff7723fe 100644 --- a/source/lib/registry/tools/regshell.c +++ b/source/lib/registry/tools/regshell.c @@ -418,13 +418,13 @@ static char **reg_completion(const char *text, int start, int end) POPT_TABLEEND }; - registry_init(); - pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0); while((opt = poptGetNextOpt(pc)) != -1) { } + registry_init(); + if (remote) { error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL); } else if (backend) { diff --git a/source/nbt_server/config.mk b/source/nbt_server/config.mk index 701e1322516..94af9366cc1 100644 --- a/source/nbt_server/config.mk +++ b/source/nbt_server/config.mk @@ -68,6 +68,6 @@ OBJ_FILES = \ irpc.o PRIVATE_PROTO_HEADER = nbt_server_proto.h PUBLIC_DEPENDENCIES = \ - LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model + LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model service # End SUBSYSTEM NBTD ####################### diff --git a/source/ntptr/config.mk b/source/ntptr/config.mk index e6b84c51d0e..84e6aaffe25 100644 --- a/source/ntptr/config.mk +++ b/source/ntptr/config.mk @@ -8,7 +8,7 @@ SUBSYSTEM = ntptr OBJ_FILES = \ simple_ldb/ntptr_simple_ldb.o PUBLIC_DEPENDENCIES = \ - ldb + ldb NDR_SPOOLSS # End MODULE ntptr_simple_ldb ################################################ diff --git a/source/rpc_server/config.mk b/source/rpc_server/config.mk index fc96c4f73db..b01b4b0c57c 100644 --- a/source/rpc_server/config.mk +++ b/source/rpc_server/config.mk @@ -37,7 +37,7 @@ INIT_FUNCTION = dcerpc_server_rpcecho_init SUBSYSTEM = dcerpc_server OBJ_FILES = \ echo/rpc_echo.o -PUBLIC_DEPENDENCIES = NDR_ECHO +PUBLIC_DEPENDENCIES = NDR_ECHO # End MODULE dcerpc_rpcecho ################################################ @@ -218,7 +218,8 @@ OBJ_FILES = \ PUBLIC_DEPENDENCIES = \ LIBCLI_AUTH \ LIBNDR \ - dcerpc + dcerpc \ + service # # End SUBSYSTEM DCERPC ################################################ diff --git a/source/smb_server/config.mk b/source/smb_server/config.mk index 6130d7ce9f2..6546c544beb 100644 --- a/source/smb_server/config.mk +++ b/source/smb_server/config.mk @@ -18,7 +18,8 @@ PRIVATE_PROTO_HEADER = smb_server_proto.h PUBLIC_DEPENDENCIES = \ LIBPACKET \ SMB_PROTOCOL \ - SMB2_PROTOCOL + SMB2_PROTOCOL \ + service # End SUBSYSTEM SMB ####################### diff --git a/source/web_server/config.mk b/source/web_server/config.mk index f6f6113eda9..c21e67ed194 100644 --- a/source/web_server/config.mk +++ b/source/web_server/config.mk @@ -9,6 +9,6 @@ PRIVATE_PROTO_HEADER = proto.h OBJ_FILES = \ web_server.o \ http.o -PUBLIC_DEPENDENCIES = ESP LIBTLS smbcalls process_model +PUBLIC_DEPENDENCIES = ESP LIBTLS smbcalls process_model service # End SUBSYSTEM WEB ####################### diff --git a/source/winbind/config.mk b/source/winbind/config.mk index e8c5ea11ce6..d8dc03622e1 100644 --- a/source/winbind/config.mk +++ b/source/winbind/config.mk @@ -24,7 +24,7 @@ OBJ_FILES = \ wb_cmd_list_trustdom.o \ wb_pam_auth.o PUBLIC_DEPENDENCIES = WB_HELPER RPC_NDR_LSA RPC_NDR_SAMR process_model \ - PAM_ERRORS + PAM_ERRORS service # End SUBSYSTEM WINBIND ####################### diff --git a/source/wrepl_server/config.mk b/source/wrepl_server/config.mk index ee672730b7e..c8a8164e11b 100644 --- a/source/wrepl_server/config.mk +++ b/source/wrepl_server/config.mk @@ -17,6 +17,6 @@ OBJ_FILES = \ wrepl_out_helpers.o PRIVATE_PROTO_HEADER = wrepl_server_proto.h PUBLIC_DEPENDENCIES = \ - LIBCLI_WREPL WINSDB process_model + LIBCLI_WREPL WINSDB process_model service # End SUBSYSTEM WREPL_SRV ####################### -- cgit