1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r15370: Fix more dependencies for shared libs

This commit is contained in:
Jelmer Vernooij 2006-05-01 01:34:04 +00:00 committed by Gerald (Jerry) Carter
parent 946a80298a
commit 9a518661fb
16 changed files with 21 additions and 18 deletions

View File

@ -71,6 +71,7 @@ sub check_module($$$)
if ($mod->{OUTPUT_TYPE} eq "SHARED_LIBRARY") { if ($mod->{OUTPUT_TYPE} eq "SHARED_LIBRARY") {
$mod->{INSTALLDIR} = "MODULESDIR/$mod->{SUBSYSTEM}"; $mod->{INSTALLDIR} = "MODULESDIR/$mod->{SUBSYSTEM}";
push (@{$mod->{PRIVATE_DEPENDENCIES}}, $mod->{SUBSYSTEM});
} else { } else {
push (@{$INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTIONS}}, $mod->{INIT_FUNCTION}) if defined($mod->{INIT_FUNCTION}); push (@{$INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTIONS}}, $mod->{INIT_FUNCTION}) if defined($mod->{INIT_FUNCTION});
} }

View File

@ -44,7 +44,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const
#ifdef _SAMBA_BUILD_ #ifdef _SAMBA_BUILD_
int r; int r;
#endif #endif
int num_options = 0; int num_options = 0;
int opt; int opt;
struct poptOption popt_options[] = { struct poptOption popt_options[] = {
POPT_AUTOHELP POPT_AUTOHELP

View File

@ -73,7 +73,7 @@ static void usage(void)
exit(1); exit(1);
} }
int main(int argc, const char **argv) int main(int argc, const char **argv)
{ {
struct ldb_context *ldb; struct ldb_context *ldb;
int ret, i; int ret, i;

View File

@ -272,7 +272,7 @@ static void usage(void)
exit(1); exit(1);
} }
int main(int argc, const char **argv) int main(int argc, const char **argv)
{ {
struct ldb_context *ldb; struct ldb_context *ldb;
struct ldb_result *result = NULL; struct ldb_result *result = NULL;

View File

@ -84,7 +84,7 @@ static int process_file(struct ldb_context *ldb, FILE *f)
return count; return count;
} }
int main(int argc, const char **argv) int main(int argc, const char **argv)
{ {
struct ldb_context *ldb; struct ldb_context *ldb;
int count=0; int count=0;

View File

@ -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; struct ldb_context *ldb;
int ret; int ret;

View File

@ -371,7 +371,7 @@ static void usage(void)
exit(1); exit(1);
} }
int main(int argc, const char **argv) int main(int argc, const char **argv)
{ {
TALLOC_CTX *mem_ctx = talloc_new(NULL); TALLOC_CTX *mem_ctx = talloc_new(NULL);
struct ldb_context *ldb; struct ldb_context *ldb;

View File

@ -42,13 +42,13 @@ int main(int argc, char **argv)
POPT_TABLEEND POPT_TABLEEND
}; };
registry_init();
pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0); pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0);
while((opt = poptGetNextOpt(pc)) != -1) { while((opt = poptGetNextOpt(pc)) != -1) {
} }
registry_init();
if (remote) { if (remote) {
error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL); error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL);
} else { } else {

View File

@ -418,13 +418,13 @@ static char **reg_completion(const char *text, int start, int end)
POPT_TABLEEND POPT_TABLEEND
}; };
registry_init();
pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0); pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0);
while((opt = poptGetNextOpt(pc)) != -1) { while((opt = poptGetNextOpt(pc)) != -1) {
} }
registry_init();
if (remote) { if (remote) {
error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL); error = reg_open_remote (&h, NULL, cmdline_credentials, remote, NULL);
} else if (backend) { } else if (backend) {

View File

@ -68,6 +68,6 @@ OBJ_FILES = \
irpc.o irpc.o
PRIVATE_PROTO_HEADER = nbt_server_proto.h PRIVATE_PROTO_HEADER = nbt_server_proto.h
PUBLIC_DEPENDENCIES = \ PUBLIC_DEPENDENCIES = \
LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model service
# End SUBSYSTEM NBTD # End SUBSYSTEM NBTD
####################### #######################

View File

@ -8,7 +8,7 @@ SUBSYSTEM = ntptr
OBJ_FILES = \ OBJ_FILES = \
simple_ldb/ntptr_simple_ldb.o simple_ldb/ntptr_simple_ldb.o
PUBLIC_DEPENDENCIES = \ PUBLIC_DEPENDENCIES = \
ldb ldb NDR_SPOOLSS
# End MODULE ntptr_simple_ldb # End MODULE ntptr_simple_ldb
################################################ ################################################

View File

@ -37,7 +37,7 @@ INIT_FUNCTION = dcerpc_server_rpcecho_init
SUBSYSTEM = dcerpc_server SUBSYSTEM = dcerpc_server
OBJ_FILES = \ OBJ_FILES = \
echo/rpc_echo.o echo/rpc_echo.o
PUBLIC_DEPENDENCIES = NDR_ECHO PUBLIC_DEPENDENCIES = NDR_ECHO
# End MODULE dcerpc_rpcecho # End MODULE dcerpc_rpcecho
################################################ ################################################
@ -218,7 +218,8 @@ OBJ_FILES = \
PUBLIC_DEPENDENCIES = \ PUBLIC_DEPENDENCIES = \
LIBCLI_AUTH \ LIBCLI_AUTH \
LIBNDR \ LIBNDR \
dcerpc dcerpc \
service
# #
# End SUBSYSTEM DCERPC # End SUBSYSTEM DCERPC
################################################ ################################################

View File

@ -18,7 +18,8 @@ PRIVATE_PROTO_HEADER = smb_server_proto.h
PUBLIC_DEPENDENCIES = \ PUBLIC_DEPENDENCIES = \
LIBPACKET \ LIBPACKET \
SMB_PROTOCOL \ SMB_PROTOCOL \
SMB2_PROTOCOL SMB2_PROTOCOL \
service
# End SUBSYSTEM SMB # End SUBSYSTEM SMB
####################### #######################

View File

@ -9,6 +9,6 @@ PRIVATE_PROTO_HEADER = proto.h
OBJ_FILES = \ OBJ_FILES = \
web_server.o \ web_server.o \
http.o http.o
PUBLIC_DEPENDENCIES = ESP LIBTLS smbcalls process_model PUBLIC_DEPENDENCIES = ESP LIBTLS smbcalls process_model service
# End SUBSYSTEM WEB # End SUBSYSTEM WEB
####################### #######################

View File

@ -24,7 +24,7 @@ OBJ_FILES = \
wb_cmd_list_trustdom.o \ wb_cmd_list_trustdom.o \
wb_pam_auth.o wb_pam_auth.o
PUBLIC_DEPENDENCIES = WB_HELPER RPC_NDR_LSA RPC_NDR_SAMR process_model \ PUBLIC_DEPENDENCIES = WB_HELPER RPC_NDR_LSA RPC_NDR_SAMR process_model \
PAM_ERRORS PAM_ERRORS service
# End SUBSYSTEM WINBIND # End SUBSYSTEM WINBIND
####################### #######################

View File

@ -17,6 +17,6 @@ OBJ_FILES = \
wrepl_out_helpers.o wrepl_out_helpers.o
PRIVATE_PROTO_HEADER = wrepl_server_proto.h PRIVATE_PROTO_HEADER = wrepl_server_proto.h
PUBLIC_DEPENDENCIES = \ PUBLIC_DEPENDENCIES = \
LIBCLI_WREPL WINSDB process_model LIBCLI_WREPL WINSDB process_model service
# End SUBSYSTEM WREPL_SRV # End SUBSYSTEM WREPL_SRV
####################### #######################