[erlang-questions] : OTP Stack building problems

Raimo Niskanen <>
Thu Jan 24 09:47:04 CET 2008


Sorry about the lack of response on the erlang-bugs
mailing list. We have downprioritized this since
we felt SCTP was only for the ones that had a
specific need. But now it seems new Linux:es ship
both header files and libraries for SCTP, with
a too fresh version for our standard build.

So, now this is a reeally annoying problem that
I am currently working on. We hope it will be
fixed in R12B-1; I have a dirty #ifdefing
solution that works for lksctp-tools-1.0.7
but have not made regression tests against
the older version yet. So I will polish
on the #ifdefs before being happy.

Any hints on how SCTP header files differ between
different OS:es are greatly appreciated, esp.
if struct sctp_event_subscribe.sctp_adaptation_layer_event
does not exist on FreeBSD, can one then count on
struct sctp_event_subscribe.sctp_adaption_layer_even
existing instead. (Ther is a patch on 
http://www.nabble.com/Patch-to-fix-crypto-and-SCTP-support-on-FreeBSD-to11474612.html#a11474612
that tests for the "adaptation" spelled variant and if it does
not exist assumes there is no such field instead of
falling back to the "adaption" spelling.
And we have no FreeBSD machine to test on...



On Wed, Jan 23, 2008 at 08:39:23AM -0600, mog wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> J Bhanot wrote:
> > 
> > Hi,
> > 
> > I am trying to build the OTP stack on Fedora Core 8...
> > 
> > I am using fllowing stack
> > 
> > otp_src_R12B-0
> > 
> > ./configure works ok without throwing errors
> > 
> > but during make all, it gives the following errors
> > 
> > drivers/common/inet_drv.c: In function âsctp_parse_async_eventâ:
> > drivers/common/inet_drv.c:3100: error: âSCTP_ADAPTION_INDICATIONâ
> > undeclared (first use in thi
> > s function)
> > drivers/common/inet_drv.c:3100: error: (Each undeclared identifier is
> > reported only once
> > drivers/common/inet_drv.c:3100: error: for each function it appears in.)
> > drivers/common/inet_drv.c:3106: error: âunion sctp_notificationâ has no
> > member named âsn_adapt
> > ion_eventâ
> > drivers/common/inet_drv.c:3111: error: dereferencing pointer to
> > incomplete type
> > drivers/common/inet_drv.c:3112: error: dereferencing pointer to
> > incomplete type
> > drivers/common/inet_drv.c:3112: warning: left-hand operand of comma
> > expression has no effect
> > drivers/common/inet_drv.c: In function âsctp_set_optsâ:
> > drivers/common/inet_drv.c:5323: error: field âadâ has incomplete type
> > drivers/common/inet_drv.c:5584: error: âSCTP_ADAPTION_LAYERâ undeclared
> > (first use in this fun
> > ction)
> > drivers/common/inet_drv.c:5688: error: âstruct sctp_event_subscribeâ has
> > no member named âsctp
> > _adaption_layer_eventâ
> > drivers/common/inet_drv.c: In function âsctp_fill_optsâ:
> > drivers/common/inet_drv.c:6448: error: storage size of âadâ isnât known
> > drivers/common/inet_drv.c:6451: error: âSCTP_ADAPTION_LAYERâ undeclared
> > (first use in this fun
> > ction)
> > drivers/common/inet_drv.c:6458: warning: left-hand operand of comma
> > expression has no effect
> > drivers/common/inet_drv.c:6448: warning: unused variable âadâ
> > drivers/common/inet_drv.c:6586: error: âstruct sctp_event_subscribeâ has
> > no member named âsctp
> > _adaption_layer_eventâ
> > drivers/common/inet_drv.c:6586: warning: left-hand operand of comma
> > expression has no effect
> > make[3]: *** [obj/i686-pc-linux-gnu/opt/smp/inet_drv.o] Error 1
> > make[3]: Leaving directory
> > `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts/emulator'
> > make[2]: *** [opt] Error 2
> > make[2]: Leaving directory
> > `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts/emulator'
> > make[1]: *** [smp] Error 2
> > make[1]: Leaving directory
> > `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts'
> > make: *** [emulator] Error 2
> > 
> I to have found this problem and submitted a patch to fix it for later
> versions of Gnu/Linux and friends but haven't heard any response back.
> here is a link
> http://erlang.org/pipermail/erlang-bugs/2008-January/000612.html
> 
> Mog
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHl1GapCttrJGOY6gRAi9tAJ9+7lc4t6yxT4mEBC+JD6oxB+zdQgCfSMU4
> RAQpo9Nz2by1wixJCAkkeFw=
> =3uhI
> -----END PGP SIGNATURE-----
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list