[36086] in Kerberos

home help back first fref pref prev next nref lref last post

Re: TCP support for MIT Kerberos in HP-UX IA64

daemon@ATHENA.MIT.EDU (Vipul Mehta)
Mon Apr 28 13:52:17 2014

MIME-Version: 1.0
In-Reply-To: <1398651298.10424.16.camel@willson.li.ssimo.org>
Date: Mon, 28 Apr 2014 16:46:20 +0530
Message-ID: <CAMeQEL-r07Tn+rxxkJ5NPBtAxfU2Rrp3M1Q-siMOj-Uia=pEKQ@mail.gmail.com>
From: Vipul Mehta <vipulmehta.1989@gmail.com>
To: Simo Sorce <simo@redhat.com>
Cc: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

Yes, it does logs a warning on using socklen_t :
"argument of type "socklen_t *" is incompatible with parameter of type "int
*".




On Mon, Apr 28, 2014 at 7:44 AM, Simo Sorce <simo@redhat.com> wrote:

> On Sun, 2014-04-27 at 11:47 -0400, Greg Hudson wrote:
> > On 04/26/2014 02:59 PM, Vipul Mehta wrote:
> > > As everything is working fine with the change, can someone please
> commit this change to the repository for get_so_error() in sendto_kdc.c
> > >
> > > #if defined(__hpux)
> > >  int sockerrlen;
> > > #else
> > >  socklen_t sockerrlen;
> > > #endof
> >
> > I don't think we'd want to make that change exactly.  For one thing, it
> > seems likely that there are HPUX compilation environments for which
> > using socklen_t would work and using int would break.
> >
> > Ideally, we want an autoconf test which determines whether the final
> > argument of getsockopt should be int * or socklen_t * under the compiler
> > and CFLAGS specified by the user.  From that test we would define a type
> > in include/port-sockets.h, and use that type when calling getsockopt.
> >
> > I'm not immediately sure how to write the autoconf test, though.  My
> > hope is that passing socklen_t * as the final getsockopt argument
> > generates a warning on HPUX (perhaps you can verify this), and we can
> > use that to distinguish.  But AC_COMPILE_IFELSE doesn't appear to fail
> > on warnings, so I'm not sure what the best autoconf idiom is to look for
> > warnings.
>
> Maybe add -Werror so warnings are fatal ?
>
> > I did find
> > http://lists.gnu.org/archive/html/autoconf/2007-05/msg00079.html
> > which works by triyng to to redefine prototypes for accept and connect
> > to determine whether a system is using socklen_t.  But it's pretty
> > complicated and the author wasn't completely confident in its
> > correctness at the time.
> > ________________________________________________
> > Kerberos mailing list           Kerberos@mit.edu
> > https://mailman.mit.edu/mailman/listinfo/kerberos
>
>
> --
> Simo Sorce * Red Hat, Inc * New York
>
>


-- 
Regards,
Vipul
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post