[erlang-questions] OTP Stack building problems

Matthias Lang <>
Wed Jan 23 11:45:56 CET 2008


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
 > 
 > http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list