svn commit: samba r25423 - in branches/SAMBA_3_2_0/source/libads: .

2007-09-29 Thread obnox
Author: obnox
Date: 2007-09-29 07:13:48 + (Sat, 29 Sep 2007)
New Revision: 25423

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25423

Log:
Get rid of some cast warnings.

Michael


Modified:
   branches/SAMBA_3_2_0/source/libads/sasl.c


Changeset:
Modified: branches/SAMBA_3_2_0/source/libads/sasl.c
===
--- branches/SAMBA_3_2_0/source/libads/sasl.c   2007-09-29 06:44:39 UTC (rev 
25422)
+++ branches/SAMBA_3_2_0/source/libads/sasl.c   2007-09-29 07:13:48 UTC (rev 
25423)
@@ -268,7 +268,7 @@
 #ifdef HAVE_GSSAPI
 static ADS_STATUS ads_sasl_gssapi_wrap(ADS_STRUCT *ads, uint8 *buf, uint32 len)
 {
-   gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+   gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
ADS_STATUS status;
int gss_rc;
uint32 minor_status;
@@ -309,7 +309,7 @@
 
 static ADS_STATUS ads_sasl_gssapi_unwrap(ADS_STRUCT *ads)
 {
-   gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+   gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
ADS_STATUS status;
int gss_rc;
uint32 minor_status;
@@ -347,7 +347,7 @@
 
 static void ads_sasl_gssapi_disconnect(ADS_STRUCT *ads)
 {
-   gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+   gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
uint32 minor_status;
 
gss_delete_sec_context(&minor_status, &context_handle, GSS_C_NO_BUFFER);



svn commit: samba r25424 - in branches: SAMBA_3_2/source/lib SAMBA_3_2_0/source/lib

2007-09-29 Thread obnox
Author: obnox
Date: 2007-09-29 07:18:23 + (Sat, 29 Sep 2007)
New Revision: 25424

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25424

Log:
Align log level (by two) in debugging output.

Michael


Modified:
   branches/SAMBA_3_2/source/lib/debug.c
   branches/SAMBA_3_2_0/source/lib/debug.c


Changeset:
Modified: branches/SAMBA_3_2/source/lib/debug.c
===
--- branches/SAMBA_3_2/source/lib/debug.c   2007-09-29 07:13:48 UTC (rev 
25423)
+++ branches/SAMBA_3_2/source/lib/debug.c   2007-09-29 07:18:23 UTC (rev 
25424)
@@ -983,7 +983,7 @@
current_timestring(lp_debug_hires_timestamp()), level,
header_str);
} else {
-   (void)Debug1( "[%s, %d%s] %s:%s(%d)\n",
+   (void)Debug1( "[%s, %2d%s] %s:%s(%d)\n",
current_timestring(lp_debug_hires_timestamp()), level,
header_str, file, func, line );
}

Modified: branches/SAMBA_3_2_0/source/lib/debug.c
===
--- branches/SAMBA_3_2_0/source/lib/debug.c 2007-09-29 07:13:48 UTC (rev 
25423)
+++ branches/SAMBA_3_2_0/source/lib/debug.c 2007-09-29 07:18:23 UTC (rev 
25424)
@@ -983,7 +983,7 @@
current_timestring(lp_debug_hires_timestamp()), level,
header_str);
} else {
-   (void)Debug1( "[%s, %d%s] %s:%s(%d)\n",
+   (void)Debug1( "[%s, %2d%s] %s:%s(%d)\n",
current_timestring(lp_debug_hires_timestamp()), level,
header_str, file, func, line );
}



svn commit: samba r25425 - in branches/SAMBA_4_0/source: . lib/ldb

2007-09-29 Thread metze
Author: metze
Date: 2007-09-29 07:57:13 + (Sat, 29 Sep 2007)
New Revision: 25425

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25425

Log:
move LDB_MODULESDIR define into config.h
this hopefully fixes the build on some hosts

metze
Modified:
   branches/SAMBA_4_0/source/configure.ac
   branches/SAMBA_4_0/source/lib/ldb/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/configure.ac
===
--- branches/SAMBA_4_0/source/configure.ac  2007-09-29 07:18:23 UTC (rev 
25424)
+++ branches/SAMBA_4_0/source/configure.ac  2007-09-29 07:57:13 UTC (rev 
25425)
@@ -48,8 +48,26 @@
SMB_INCLUDE_MK(lib/ldb/ldb_ildap/config.mk)
SMB_INCLUDE_MK(lib/ldb/tools/config.mk)
SMB_SUBSYSTEM(ldb_map, [], [LIBLDB])
+   define_ldb_modulesdir=no
],
[
+   # Here we need to do some tricks
+   # with AC_CONFIG_COMMANDS_PRE
+   # as that's the deferrs the commands
+   # to location after $prefix and $exec_prefix
+   # have usefull values and directly before
+   # creating config.status.
+   #
+   # The 'eval eval echo' trick is used to
+   # actually get the raw absolute directory
+   # path as this is needed in config.h
+   define_ldb_modulesdir=yes
+   AC_CONFIG_COMMANDS_PRE([
+   if test x"$define_ldb_modulesdir" = x"yes";then
+   LDB_MODULESDIR=`eval eval echo ${modulesdir}/ldb`
+   AC_DEFINE_UNQUOTED(LDB_MODULESDIR, "${LDB_MODULESDIR}" 
, [ldb Modules directory])
+   fi
+   ])
m4_include(lib/ldb/sqlite3.m4)
m4_include(lib/ldb/libldb.m4)
SMB_INCLUDE_MK(lib/ldb/config.mk)

Modified: branches/SAMBA_4_0/source/lib/ldb/config.mk
===
--- branches/SAMBA_4_0/source/lib/ldb/config.mk 2007-09-29 07:18:23 UTC (rev 
25424)
+++ branches/SAMBA_4_0/source/lib/ldb/config.mk 2007-09-29 07:57:13 UTC (rev 
25425)
@@ -123,13 +123,6 @@
 # End MODULE ldb_tdb
 
 
-./lib/ldb/common/ldb.o: lib/ldb/common/ldb.c Makefile
-   @echo Compiling $<
-   @$(CC) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) 
$(PICFLAG) \
-   -DLDB_MODULESDIR=\"$(MODULESDIR)/ldb\" \
-   -c $(FIRST_PREREQ) -o $@
-
-
 
 # Start SUBSYSTEM ldb
 [LIBRARY::LIBLDB]



svn commit: samba r25426 - in branches: SAMBA_3_2/source/nsswitch SAMBA_3_2_0/source/nsswitch

2007-09-29 Thread obnox
Author: obnox
Date: 2007-09-29 08:25:44 + (Sat, 29 Sep 2007)
New Revision: 25426

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25426

Log:
Fix another implicit cast warning.

Michael


Modified:
   branches/SAMBA_3_2/source/nsswitch/pam_winbind.c
   branches/SAMBA_3_2_0/source/nsswitch/pam_winbind.c


Changeset:
Modified: branches/SAMBA_3_2/source/nsswitch/pam_winbind.c
===
--- branches/SAMBA_3_2/source/nsswitch/pam_winbind.c2007-09-29 07:57:13 UTC 
(rev 25425)
+++ branches/SAMBA_3_2/source/nsswitch/pam_winbind.c2007-09-29 08:25:44 UTC 
(rev 25426)
@@ -70,7 +70,7 @@
 
_pam_get_item(pamh, PAM_SERVICE, &service);
 
-   format2 = malloc(strlen(MODULE_NAME)+strlen(format)+strlen(service)+5);
+   format2 = (char 
*)malloc(strlen(MODULE_NAME)+strlen(format)+strlen(service)+5);
if (format2 == NULL) {
/* what else todo ? */
vsyslog(err, format, args);

Modified: branches/SAMBA_3_2_0/source/nsswitch/pam_winbind.c
===
--- branches/SAMBA_3_2_0/source/nsswitch/pam_winbind.c  2007-09-29 07:57:13 UTC 
(rev 25425)
+++ branches/SAMBA_3_2_0/source/nsswitch/pam_winbind.c  2007-09-29 08:25:44 UTC 
(rev 25426)
@@ -70,7 +70,7 @@
 
_pam_get_item(pamh, PAM_SERVICE, &service);
 
-   format2 = malloc(strlen(MODULE_NAME)+strlen(format)+strlen(service)+5);
+   format2 = (char 
*)malloc(strlen(MODULE_NAME)+strlen(format)+strlen(service)+5);
if (format2 == NULL) {
/* what else todo ? */
vsyslog(err, format, args);



svn commit: samba r25427 - in branches/SAMBA_4_0/source/selftest/output: .

2007-09-29 Thread metze
Author: metze
Date: 2007-09-29 08:57:02 + (Sat, 29 Sep 2007)
New Revision: 25427

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25427

Log:
fix SELFTEST RUNTIME calculation for the build-farm

metze
Modified:
   branches/SAMBA_4_0/source/selftest/output/buildfarm.pm
   branches/SAMBA_4_0/source/selftest/output/plain.pm


Changeset:
Modified: branches/SAMBA_4_0/source/selftest/output/buildfarm.pm
===
--- branches/SAMBA_4_0/source/selftest/output/buildfarm.pm  2007-09-29 
08:25:44 UTC (rev 25426)
+++ branches/SAMBA_4_0/source/selftest/output/buildfarm.pm  2007-09-29 
08:57:02 UTC (rev 25427)
@@ -7,10 +7,10 @@
 
 use strict;
 
-sub new($$) {
-   my ($class) = @_;
+sub new() {
+   my ($class, $verbose, $immediate, $statistics) = @_;
my $self = { 
-   start => time(),
+   statistics => $statistics,
test_output => {}
};
bless($self, $class);
@@ -21,11 +21,12 @@
my ($self, $state) = @_;
my $out = "";
 
+   my $duration = $state->{START_TIME} - $self->{statistics}->{START_TIME};
$out .= "--==--==--==--==--==--==--==--==--==--==--\n";
$out .= "Running test $state->{NAME} (level 0 stdout)\n";
$out .= "--==--==--==--==--==--==--==--==--==--==--\n";
$out .= scalar(localtime())."\n";
-   $out .= "SELFTEST RUNTIME: " . ($state->{START_TIME} - 
$self->{START_TIME}) . "s\n";
+   $out .= "SELFTEST RUNTIME: " . $duration . "s\n";
$out .= "NAME: $state->{NAME}\n";
$out .= "CMD: $state->{CMD}\n";
 

Modified: branches/SAMBA_4_0/source/selftest/output/plain.pm
===
--- branches/SAMBA_4_0/source/selftest/output/plain.pm  2007-09-29 08:25:44 UTC 
(rev 25426)
+++ branches/SAMBA_4_0/source/selftest/output/plain.pm  2007-09-29 08:57:02 UTC 
(rev 25427)
@@ -13,8 +13,7 @@
immediate => $immediate, 
statistics => $statistics,
test_output => {},
-   suitesfailed => [],
-   start => time()
+   suitesfailed => []
};
bless($self, $class);
 }



svn commit: samba r25428 - in branches/SAMBA_4_0/source: auth/gensec ldap_server

2007-09-29 Thread metze
Author: metze
Date: 2007-09-29 15:16:38 + (Sat, 29 Sep 2007)
New Revision: 25428

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25428

Log:
forward declarations of enums are not portable,
so pass struct cli_credentials *cred instead of 
enum credentials_use_kerberos use_kerberos.

metze
Modified:
   branches/SAMBA_4_0/source/auth/gensec/gensec.c
   branches/SAMBA_4_0/source/auth/gensec/gensec.h
   branches/SAMBA_4_0/source/ldap_server/ldap_backend.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c  2007-09-29 08:57:02 UTC 
(rev 25427)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c  2007-09-29 15:16:38 UTC 
(rev 25428)
@@ -47,11 +47,16 @@
 
 struct gensec_security_ops **gensec_use_kerberos_mechs(TALLOC_CTX *mem_ctx, 
   struct 
gensec_security_ops **old_gensec_list, 
-  enum 
credentials_use_kerberos use_kerberos) 
+  struct cli_credentials 
*creds)
 {
struct gensec_security_ops **new_gensec_list;
int i, j, num_mechs_in;
+   enum credentials_use_kerberos use_kerberos = CRED_AUTO_USE_KERBEROS;
 
+   if (creds) {
+   use_kerberos = cli_credentials_get_kerberos_state(creds);
+   }
+
if (use_kerberos == CRED_AUTO_USE_KERBEROS) {
if (!talloc_reference(mem_ctx, old_gensec_list)) {
return NULL;
@@ -112,7 +117,6 @@
}
return backends;
} else {
-   enum credentials_use_kerberos use_kerberos;
struct cli_credentials *creds = 
gensec_get_credentials(gensec_security);
if (!creds) {
if (!talloc_reference(mem_ctx, backends)) {
@@ -120,8 +124,7 @@
}
return backends;
}
-   use_kerberos = cli_credentials_get_kerberos_state(creds);
-   return gensec_use_kerberos_mechs(mem_ctx, backends, 
use_kerberos);
+   return gensec_use_kerberos_mechs(mem_ctx, backends, creds);
}
 }
 

Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.h
===
--- branches/SAMBA_4_0/source/auth/gensec/gensec.h  2007-09-29 08:57:02 UTC 
(rev 25427)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.h  2007-09-29 15:16:38 UTC 
(rev 25428)
@@ -39,8 +39,6 @@
GENSEC_OTHER = 0
 };
 
-enum credentials_use_kerberos;
-
 struct gensec_security;
 struct gensec_target {
const char *principal;
@@ -63,6 +61,7 @@
 };
 
 struct auth_session_info;
+struct cli_credentials;
 
 struct gensec_update_request {
struct gensec_security *gensec_security;

Modified: branches/SAMBA_4_0/source/ldap_server/ldap_backend.c
===
--- branches/SAMBA_4_0/source/ldap_server/ldap_backend.c2007-09-29 
08:57:02 UTC (rev 25427)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_backend.c2007-09-29 
15:16:38 UTC (rev 25428)
@@ -64,10 +64,8 @@
if (conn->server_credentials) {
char **sasl_mechs = NULL;
struct gensec_security_ops **backends = gensec_security_all();
-   enum credentials_use_kerberos use_kerberos
-   = 
cli_credentials_get_kerberos_state(conn->server_credentials);
struct gensec_security_ops **ops
-   = gensec_use_kerberos_mechs(conn, backends, 
use_kerberos);
+   = gensec_use_kerberos_mechs(conn, backends, 
conn->server_credentials);
int i, j = 0;
for (i = 0; ops && ops[i]; i++) {
if (ops[i]->sasl_name && ops[i]->server_start) {



svn commit: samba r25429 - in branches/SAMBA_3_2/source: .

2007-09-29 Thread metze
Author: metze
Date: 2007-09-29 15:17:49 + (Sat, 29 Sep 2007)
New Revision: 25429

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25429

Log:
Samba 3 doesn't need to selftest Samba4 code...

metze
Modified:
   branches/SAMBA_3_2/source/samba3-skip


Changeset:
Modified: branches/SAMBA_3_2/source/samba3-skip
===
--- branches/SAMBA_3_2/source/samba3-skip   2007-09-29 15:16:38 UTC (rev 
25428)
+++ branches/SAMBA_3_2/source/samba3-skip   2007-09-29 15:17:49 UTC (rev 
25429)
@@ -2,6 +2,8 @@
 .*ncacn_ip_tcp.*   # transport not supported by samba 3
 .*LDAP.*   # Samba 3 doesn't have it's own LDAP 
server (yet)
 .*ldap.*   # Samba 3 doesn't have it's own LDAP 
server (yet)
+^base.js$  # Samba 3 doesn't need to selftest 
Samba4 code
+^ldb.js$   # Samba 3 doesn't need to selftest 
Samba4 code
 ^samr.js$  # Uses ncalrpc, which isn't available 
for Samba 3
 ^winreg$   # Uses ncalrpc, which isn't available 
for Samba 3
 ^echo.js$  # Uses ncalrpc, which isn't available 
for Samba 3



svn commit: samba r25430 - in branches/SAMBA_4_0: . source/auth source/auth/gensec source/auth/kerberos source/auth/ntlmssp source/cluster/ctdb source/dsdb/repl source/dsdb/samdb/ldb_modules source/kd

2007-09-29 Thread jelmer
Author: jelmer
Date: 2007-09-29 18:00:19 + (Sat, 29 Sep 2007)
New Revision: 25430

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25430

Log:
Add the loadparm context to all parametric options.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/auth/auth.c
   branches/SAMBA_4_0/source/auth/auth_util.c
   branches/SAMBA_4_0/source/auth/gensec/gensec.c
   branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c
   branches/SAMBA_4_0/source/auth/gensec/gensec_krb5.c
   branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_server.c
   branches/SAMBA_4_0/source/cluster/ctdb/ctdb_cluster.c
   branches/SAMBA_4_0/source/cluster/ctdb/opendb_ctdb.c
   branches/SAMBA_4_0/source/dsdb/repl/drepl_service.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c
   branches/SAMBA_4_0/source/kdc/hdb-ldb.c
   branches/SAMBA_4_0/source/lib/charset/iconv.c
   branches/SAMBA_4_0/source/lib/db_wrap.c
   branches/SAMBA_4_0/source/lib/dbwrap/dbwrap.c
   branches/SAMBA_4_0/source/lib/events/events.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ad2oLschema.c
   branches/SAMBA_4_0/source/lib/socket/socket.c
   branches/SAMBA_4_0/source/libcli/nbt/nbtsocket.c
   branches/SAMBA_4_0/source/libcli/resolve/nbtlist.c
   branches/SAMBA_4_0/source/libnet/libnet_become_dc.c
   branches/SAMBA_4_0/source/libnet/libnet_samdump.c
   branches/SAMBA_4_0/source/nbt_server/register.c
   branches/SAMBA_4_0/source/nbt_server/wins/wins_ldb.c
   branches/SAMBA_4_0/source/nbt_server/wins/winsclient.c
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
   branches/SAMBA_4_0/source/nbt_server/wins/winsserver.c
   branches/SAMBA_4_0/source/ntvfs/common/opendb.c
   branches/SAMBA_4_0/source/ntvfs/common/opendb_tdb.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_shortname.c
   branches/SAMBA_4_0/source/ntvfs/sysdep/inotify.c
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/param/share_classic.c
   branches/SAMBA_4_0/source/rpc_server/common/server_info.c
   branches/SAMBA_4_0/source/rpc_server/remote/dcesrv_remote.c
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_config.c
   branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c
   branches/SAMBA_4_0/source/torture/local/iconv.c
   branches/SAMBA_4_0/source/torture/locktest.c
   branches/SAMBA_4_0/source/torture/raw/composite.c
   branches/SAMBA_4_0/source/torture/raw/context.c
   branches/SAMBA_4_0/source/torture/raw/eas.c
   branches/SAMBA_4_0/source/torture/raw/lock.c
   branches/SAMBA_4_0/source/torture/raw/lockbench.c
   branches/SAMBA_4_0/source/torture/raw/mkdir.c
   branches/SAMBA_4_0/source/torture/raw/notify.c
   branches/SAMBA_4_0/source/torture/raw/open.c
   branches/SAMBA_4_0/source/torture/raw/pingpong.c
   branches/SAMBA_4_0/source/torture/raw/read.c
   branches/SAMBA_4_0/source/torture/raw/unlink.c
   branches/SAMBA_4_0/source/torture/rpc/bench.c
   branches/SAMBA_4_0/source/torture/rpc/countcalls.c
   branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
   branches/SAMBA_4_0/source/torture/rpc/drsuapi_cracknames.c
   branches/SAMBA_4_0/source/torture/rpc/dssync.c
   branches/SAMBA_4_0/source/torture/rpc/lsa.c
   branches/SAMBA_4_0/source/torture/rpc/samba3rpc.c
   branches/SAMBA_4_0/source/torture/rpc/samr.c
   branches/SAMBA_4_0/source/torture/rpc/schannel.c
   branches/SAMBA_4_0/source/torture/rpc/testjoin.c
   branches/SAMBA_4_0/source/torture/smb2/connect.c
   branches/SAMBA_4_0/source/torture/smb2/getinfo.c
   branches/SAMBA_4_0/source/torture/smb2/util.c
   branches/SAMBA_4_0/source/torture/smbtorture.c
   branches/SAMBA_4_0/source/torture/ui.c
   branches/SAMBA_4_0/source/torture/unix/whoami.c
   branches/SAMBA_4_0/source/torture/util_smb.c
   branches/SAMBA_4_0/source/web_server/http.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c


Changeset:
Sorry, the patch is too large (2030 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25430


svn commit: samba r25431 - in branches: SAMBA_3_2/source SAMBA_3_2_0/source

2007-09-29 Thread jra
Author: jra
Date: 2007-09-29 23:43:24 + (Sat, 29 Sep 2007)
New Revision: 25431

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25431

Log:
Add detection for IPv6 support.
Jeremy.

Modified:
   branches/SAMBA_3_2/source/configure.in
   branches/SAMBA_3_2_0/source/configure.in


Changeset:
Modified: branches/SAMBA_3_2/source/configure.in
===
--- branches/SAMBA_3_2/source/configure.in  2007-09-29 18:00:19 UTC (rev 
25430)
+++ branches/SAMBA_3_2/source/configure.in  2007-09-29 23:43:24 UTC (rev 
25431)
@@ -3085,6 +3085,26 @@
 fi
 fi
 
+dnl test for ipv6
+AC_CACHE_CHECK([for ipv6 support],samba_cv_HAVE_IPV6,[
+AC_TRY_COMPILE([
+#include 
+#include 
+#include ],
+[
+struct sockaddr_storage sa_store;
+struct addrinfo *ai = NULL;
+int s = socket(AF_INET6, SOCK_STREAM, 0)
+int ret = getaddrinfo(NULL, NULL, NULL &ai);
+if (ret != 0) {
+   const char *es = gai_strerror(ret);
+}
+freeaddrinfo(ai);
+],
+samba_cv_HAVE_IPV6=yes,samba_cv_HAVE_IPV6=no)])
+if test x"$samba_cv_HAVE_IPV6" = x"yes"; then
+AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
+fi
 
 
 # look for a method of setting the effective uid

Modified: branches/SAMBA_3_2_0/source/configure.in
===
--- branches/SAMBA_3_2_0/source/configure.in2007-09-29 18:00:19 UTC (rev 
25430)
+++ branches/SAMBA_3_2_0/source/configure.in2007-09-29 23:43:24 UTC (rev 
25431)
@@ -2956,6 +2956,26 @@
 fi
 fi
 
+dnl test for ipv6
+AC_CACHE_CHECK([for ipv6 support],samba_cv_HAVE_IPV6,[
+AC_TRY_COMPILE([
+#include 
+#include 
+#include ],
+[
+struct sockaddr_storage sa_store;
+struct addrinfo *ai = NULL;
+int s = socket(AF_INET6, SOCK_STREAM, 0)
+int ret = getaddrinfo(NULL, NULL, NULL &ai);
+if (ret != 0) {
+   const char *es = gai_strerror(ret);
+}
+freeaddrinfo(ai);
+],
+samba_cv_HAVE_IPV6=yes,samba_cv_HAVE_IPV6=no)])
+if test x"$samba_cv_HAVE_IPV6" = x"yes"; then
+AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
+fi
 
 
 # look for a method of setting the effective uid



svn commit: samba r25432 - in branches: SAMBA_3_2/source SAMBA_3_2/source/exports SAMBA_3_2/source/modules SAMBA_3_2_0/source SAMBA_3_2_0/source/exports

2007-09-29 Thread jpeach
Author: jpeach
Date: 2007-09-29 23:54:32 + (Sat, 29 Sep 2007)
New Revision: 25432

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25432

Log:
Merge module linking changes from SAMBA_3_2 to SAMBA_3_2_0 to reduce
spurious tree differences.

Added:
   branches/SAMBA_3_2/source/exports/modules-darwin.syms
   branches/SAMBA_3_2_0/source/exports/modules-darwin.syms
Removed:
   branches/SAMBA_3_2/source/modules/exports.darwin
Modified:
   branches/SAMBA_3_2/source/Makefile.in
   branches/SAMBA_3_2/source/configure.in
   branches/SAMBA_3_2_0/source/Makefile.in
   branches/SAMBA_3_2_0/source/configure.in


Changeset:
Sorry, the patch is too large (580 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25432


Build status as of Sun Sep 30 00:00:03 2007

2007-09-29 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2007-09-29 
00:01:19.0 +
+++ /home/build/master/cache/broken_results.txt 2007-09-30 00:01:09.0 
+
@@ -1,4 +1,4 @@
-Build status as of Sat Sep 29 00:00:02 2007
+Build status as of Sun Sep 30 00:00:03 2007
 
 Build counts:
 Tree Total  Broken Panic 
@@ -16,9 +16,9 @@
 rsync30 13 0 
 samba-docs   0  0  0 
 samba-gtk2  2  0 
-samba4   28 17 2 
-samba_3_230 17 0 
+samba4   28 19 5 
+samba_3_230 19 3 
 smb-build28 28 0 
-talloc   29 1  0 
+talloc   30 1  0 
 tdb  30 3  0