[PATCH] Fix tsocket on solaris

Bernd Markgraf bernd.markgraf at med.ovgu.de
Wed Apr 7 16:04:40 MDT 2010


On Thu, 2010-04-08 at 07:56 +1000, Andrew Bartlett wrote:
> On Wed, 2010-04-07 at 15:35 +0200, Bernd Markgraf wrote:
> > On Wed, 2010-04-07 at 22:14 +1000, Andrew Bartlett wrote:
> > > Solaris seems to error out (EINVAL) if sendto has a socklen parameter
> > > that isn't the same as the sizeof() for the relevant socket type.
> > > 
> > > That is, we can't use sizeof(struct sockaddr_storage).
> > > 
> > > This does not show up on the build farm, as we use socket_wrapper, which
> > > plays other games.
> > does configure.developer use the socket_wrapper as well? If so I would
> > try that as well. 
> > Using this patch I now even don't see the cldap netlogon request reach
> > the S4 server. Attaching a debugger and setting a breakpoint to
> > cldapd_netlogon_request doesn't break so it seems I don't run to that
> > point when I try to join the S4 domain. I do see the request being sent
> > in the network trace though. Instead I now see a "Node status reply
> > being sent to xxx.xxx.xxx.xxx" but that packet doesn't seem to hit the
> > wire...
> 
> Can you try again with metze's most recent patch?
I already did :-)

> Also, so we can reproduce, what is the exact version of Solaris that
> causes the problem?
The S4 DC is running on
 uname -a
SunOS kauai 5.10 Generic_142901-07 i86pc i386 i86pc Solaris

cat /etc/release 
                       Solaris 10 10/09 s10x_u8wos_08a X86
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009

The clients that failed run the same OS, but i tried both the
SUN-supplied Samba 3.0.37 and 3.4.3 (built by myself)

 Bernd



More information about the samba-technical mailing list