[erlang-bugs] Fix building error of SCTP in FreeBSD 7.1 and later

Kenji Rikitake kenji.rikitake@REDACTED
Thu Feb 11 00:46:53 CET 2010


Raimo:

Thanks for comments.  I will rework this patch after R13B04 comes out.
(I have other higher-priority projects than this one)

Kenji Rikitake 

In the message <20100210153945.GA22452@REDACTED>
dated Wed, Feb 10, 2010 at 04:39:21PM +0100,
Raimo Niskanen <raimo+erlang-bugs@REDACTED> writes:
> On Wed, Feb 10, 2010 at 10:52:07PM +0900, Kenji Rikitake wrote:
> > git fetch git://github.com/jj1bdx/otp.git r13b03_sctp_freebsd
> > 
> > Fix building error of SCTP in FreeBSD 7.1 and later
> > 
> > This patch fixes building error of SCTP in FreeBSD 7.1 and later.
> > 
> > See
> > http://www.erlang.org/cgi-bin/ezmlm-cgi?2:mss:1257:200904:hppnfialjjdlgecdiehe
> > for the details.
> 
> It seems Giacomo Olgeni's patch that this patch depends on
> is missing. erts/configure will not define 
> HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY so it will
> be disabled on all platforms even the ones that have
> that flag... And that would be bad.
> 
> See also:
>     http://www.erlang.org/cgi-bin/ezmlm-cgi/2/1264
> sorry about me not managing to rework that issue,
> other emergencies came in the way...
> 
> > 
> > Patch summary:
> > 
> > R13A patch for solving a compilation error when building
> > erts/emulator/drivers/common/inet_drv.c
> > by Kenji Rikitake 12-APR-2009
> > 
> > Symptom solved by this patch:
> > 
> > When building R13A in FreeBSD 7.1-RELEASE,
> > the compiler flag
> > HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY
> > is NOT enabled.
> > Some code in
> > erts/emulator/drivers/common/inet_drv.c
> > incorrectly assumes
> > HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_SACKDELAY
> > is always true when
> > HAVE_STRUCT_SCTP_PADDRPARAMS_SPP_FLAGS
> > is true in config.h.
> > This assumption causes a compilation error.
> > 
> > Regards,
> > Kenji Rikitake


More information about the erlang-patches mailing list