OTP Stack building problems

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

OTP Stack building problems

J Bhanot

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

Kindly help...

Thanks,

jb
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: OTP Stack building problems

Matthias Lang

I don't use Fedora, so I am just guessing, but one thing to look
at is whether this is related:

http://www.nabble.com/Patch-to-fix-crypto-and-SCTP-support-on-FreeBSD-to11474612.html#a11474612

one way to do that would be to take a look at your system's sctp.h and
see why SCTP_ADAPTION_INDICATION isn't defined. I.e. is it called
SCTP_ADAPTATIN_INDICATION instead.

Assuming you're not specifically interested in SCTP, a likely quick
fix is to run configure with --disable-sctp

Matthias

----------------------------------------------------------------------
J Bhanot writes:
 > 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
 >
 > Kindly help...
 >
 > Thanks,
 >
 > jb
 > ____________________________________________
 > =====-----=====-----=====
 > Notice: The information contained in this e-mail
 > message and/or attachments to it may contain
 > confidential or privileged information. If you are
 > not the intended recipient, any dissemination, use,
 > review, distribution, printing or copying of the
 > information contained in this e-mail message
 > and/or attachments to it are strictly prohibited. If
 > you have received this communication in error,
 > please notify us by reply e-mail or telephone and
 > immediately and permanently delete the message
 > and any attachments. Thank you
 >
 >
 >
 > <br><font size=2 face="sans-serif">Hi,</font>
 > <br>
 > <br><font size=2 face="sans-serif">I am trying to build the OTP stack on
 > Fedora Core 8...</font>
 > <br>
 > <br><font size=2 face="sans-serif">I am using fllowing stack</font>
 > <br>
 > <br><font size=2 face="sans-serif">otp_src_R12B-0</font>
 > <br>
 > <br><font size=2 face="sans-serif">./configure works ok without throwing
 > errors</font>
 > <br>
 > <br><font size=2 face="sans-serif">but during make all, it gives the following
 > errors</font>
 > <br>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c: In function
 > âsctp_parse_async_eventâ:</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3100: error:
 > âSCTP_ADAPTION_INDICATIONâ undeclared (first use in thi</font>
 > <br><font size=2 face="sans-serif">s function)</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3100: error:
 > (Each undeclared identifier is reported only once</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3100: error:
 > for each function it appears in.)</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3106: error:
 > âunion sctp_notificationâ has no member named âsn_adapt</font>
 > <br><font size=2 face="sans-serif">ion_eventâ</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3111: error:
 > dereferencing pointer to incomplete type</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3112: error:
 > dereferencing pointer to incomplete type</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:3112: warning:
 > left-hand operand of comma expression has no effect</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c: In function
 > âsctp_set_optsâ:</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:5323: error:
 > field âadâ has incomplete type</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:5584: error:
 > âSCTP_ADAPTION_LAYERâ undeclared (first use in this fun</font>
 > <br><font size=2 face="sans-serif">ction)</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:5688: error:
 > âstruct sctp_event_subscribeâ has no member named âsctp</font>
 > <br><font size=2 face="sans-serif">_adaption_layer_eventâ</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c: In function
 > âsctp_fill_optsâ:</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6448: error:
 > storage size of âadâ isnât known</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6451: error:
 > âSCTP_ADAPTION_LAYERâ undeclared (first use in this fun</font>
 > <br><font size=2 face="sans-serif">ction)</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6458: warning:
 > left-hand operand of comma expression has no effect</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6448: warning:
 > unused variable âadâ</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6586: error:
 > âstruct sctp_event_subscribeâ has no member named âsctp</font>
 > <br><font size=2 face="sans-serif">_adaption_layer_eventâ</font>
 > <br><font size=2 face="sans-serif">drivers/common/inet_drv.c:6586: warning:
 > left-hand operand of comma expression has no effect</font>
 > <br><font size=2 face="sans-serif">make[3]: *** [obj/i686-pc-linux-gnu/opt/smp/inet_drv.o]
 > Error 1</font>
 > <br><font size=2 face="sans-serif">make[3]: Leaving directory `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts/emulator'</font>
 > <br><font size=2 face="sans-serif">make[2]: *** [opt] Error 2</font>
 > <br><font size=2 face="sans-serif">make[2]: Leaving directory `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts/emulator'</font>
 > <br><font size=2 face="sans-serif">make[1]: *** [smp] Error 2</font>
 > <br><font size=2 face="sans-serif">make[1]: Leaving directory `/home/j.bhanot/Download/H.248/otp_src_R12B-0/erts'</font>
 > <br><font size=2 face="sans-serif">make: *** [emulator] Error 2</font>
 > <br>
 > <br><font size=2 face="sans-serif">Kindly help...</font>
 > <br>
 > <br><font size=2 face="sans-serif">Thanks,</font>
 > <br>
 > <br><font size=2 face="sans-serif">jb</font>
 > <br><font size=2 face="sans-serif">____________________________________________</font><pre>=====-----=====-----=====
 > Notice: The information contained in this e-mail
 > message and/or attachments to it may contain
 > confidential or privileged information. If you are
 > not the intended recipient, any dissemination, use,
 > review, distribution, printing or copying of the
 > information contained in this e-mail message
 > and/or attachments to it are strictly prohibited. If
 > you have received this communication in error,
 > please notify us by reply e-mail or telephone and
 > immediately and permanently delete the message
 > and any attachments. Thank you
 >
 >
 > </pre>_______________________________________________
 > erlang-questions mailing list
 > [hidden email]
 > http://www.erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: OTP Stack building problems

mog-3
In reply to this post by J Bhanot
-----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
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : OTP Stack building problems

Raimo Niskanen-2
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
> [hidden email]
> http://www.erlang.org/mailman/listinfo/erlang-questions

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : OTP Stack building problems

mog-3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raimo Niskanen wrote:

> 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...

I can not say for certain that is the only change but, I would say it is
highly probable that the only changes are those included in the patch I
provided.   It has worked on freebsd and debian boxes I tried it on.

Mog

_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmKEapCttrJGOY6gRAg9OAKCEqh06VKBwKkgHUfA5+zN9HMYqxgCeIer9
gLOsDVhc6O4lciQxgTHokAA=
=mW4u
-----END PGP SIGNATURE-----
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : OTP Stack building problems

Dietmar Schaefer-2
In reply to this post by Raimo Niskanen-2
Hi !


I have just tried to configure and to compile otp_R12B-0 under fedora 8
and haven't had any problems.

I installed all updates to fedora 8.


regards



Dietmar
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : OTP Stack building problems

Kip Macy
In reply to this post by Raimo Niskanen-2
"adaptation" was initially spelled wrong in the RFC. The linux stack
continued to use the wrong spelling for some time after it was fixed
in the BSD stack that most other operating systems use.

 -Kip

On Jan 24, 2008 12:47 AM, Raimo Niskanen
<[hidden email]> wrote:

> 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
> > [hidden email]
> > http://www.erlang.org/mailman/listinfo/erlang-questions
>
> --
>
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : OTP Stack building problems

Ulf Wiger (TN/EAB)
Kip Macy skrev:
> "adaptation" was initially spelled wrong in the RFC. The linux stack
> continued to use the wrong spelling for some time after it was fixed
> in the BSD stack that most other operating systems use.
>
>  -Kip

To be fair, both spellings are correct, so the actual bug is of course
not being consistent about it. ;-)

"Adaptation" is the most common form. According to Webster, it dates
back to 1610. The synonym "adaption" appeared in 1704, but hasn't yet
achieved the same level of popularity. Given a few more centuries,
perhaps it will...

BR,
Ulf W


>
> On Jan 24, 2008 12:47 AM, Raimo Niskanen
> <[hidden email]> wrote:
>> 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
>>> [hidden email]
>>> http://www.erlang.org/mailman/listinfo/erlang-questions
>> --
>>
>> / Raimo Niskanen, Erlang/OTP, Ericsson AB
>> _______________________________________________
>> erlang-questions mailing list
>> [hidden email]
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://www.erlang.org/mailman/listinfo/erlang-questions
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: : : OTP Stack building problems

Raimo Niskanen-2
In reply to this post by mog-3
On Thu, Jan 24, 2008 at 08:30:50AM -0600, mog wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Raimo Niskanen wrote:
:

> > 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...
>
> I can not say for certain that is the only change but, I would say it is
> highly probable that the only changes are those included in the patch I
> provided.   It has worked on freebsd and debian boxes I tried it on.
>
> Mog
>

A more specific question then, about your patch:

Is there a reason to test separately for
struct sctp_event_subscribe.sctp_adaptation_layer_event
and if it is not defined exclude the field from the
sctp_event_subscribe return record?

Or in other words: are there BSD:s that have SCTP
but do not have
struct sctp_event_subscribe.sctp_adaptation_layer_event
and also do not have
struct sctp_event_subscribe.sctp_adaption_layer_event
but have
struct sctp_event_subscribe ?



> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHmKEapCttrJGOY6gRAg9OAKCEqh06VKBwKkgHUfA5+zN9HMYqxgCeIer9
> gLOsDVhc6O4lciQxgTHokAA=
> =mW4u
> -----END PGP SIGNATURE-----
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://www.erlang.org/mailman/listinfo/erlang-questions

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-questions mailing list
[hidden email]
http://www.erlang.org/mailman/listinfo/erlang-questions