<<< Date Index >>>     <<< Thread Index >>>

Re: Cannot compile on nonBSD (was: [2003-12-30] CVS repository changes)



On Mon, Jan 05, 2004 at 12:48:34AM +0100, Artur R. Czechowski wrote:
> Hello Thomas,
> 
> On Tue, Dec 30, 2003 at 04:00:08AM +0000, Thomas Roessler wrote:
> > 2003-12-29 11:37:41  Patrick Welche  <prlw1@xxxxxxxxxxxxxx>  (roessler)
> > 
> >     * m4/gssapi.m4, mutt_sasl.c: A while ago I posted a similar
> >     patch which is necessary as when mutt tries to connect to an
> >     imap server over ipv6 it stores the address in a sockaddr which
> >     may not be large enough to hold the ipv6 address.
> ./configure --with-sasl2 --enable-imap && make
> on vanilla mutt sources gives:
> mutt_sasl.c: In function `mutt_sasl_client_new':
> mutt_sasl.c:206: error: structure has no member named `ss_len'
> mutt_sasl.c:217: error: structure has no member named `ss_len'
> (and some warnings).
> 
> ss_len is not universal field, at least Linux has not it, the same on SunOs.
> 
> Attached patch backs to previous behavior where sizeof(variable) is used.

Actually the value is from getsockname() and getpeername().

Funny, I posted the same patch a week ago:
http://marc.theaimsgroup.com/?l=mutt-dev&m=107278694308624&w=2 ;-)

Unfotunatelly no one cared. Seems most people don't compile with sasl2 stuff.
:-/

Robert

-- 
Robert Schiele                  Tel.: +49-621-181-2517
Dipl.-Wirtsch.informatiker      mailto:rschiele@xxxxxxxxxxxxxxx

Attachment: pgpS4b6hfmHp8.pgp
Description: PGP signature