[erlang-bugs] Erlang / SCTP problems compiling on Solaris 10

Trevor Wennblom <>
Sat Oct 20 02:08:36 CEST 2007


I'm having some problems compiling Erlang on Solaris 10. It seems to  
want some features of SCTP that are not present on the machine. The  
file /usr/include/netinet/sctp.h is preset, with this identifier:
   #pragma ident^I"@(#)sctp.h^I1.4^I04/10/18 SMI"$

The file doesn't have the declarations that Erlang is looking for. Is  
there a way to skip SCTP support? Also, would it be possible for  
'configure' to detect that the necessary declarations are unavailable?


% gcc - 
v                                                                        
                                  1
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --enable-threads=posix --disable-nls -- 
with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --enable-shared -- 
enable-languages=c,c++,objc,fortran --disable-libgcj
Thread model: posix
gcc version 4.1.2

% make
[..snip..]
gcc -g -O2 -I/tmp/otp_src_R12B-0/erts/sparc-sun-solaris2.10  - 
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DERTS_SMP -DHAVE_CONFIG_H  
-Wall -Wstrict-prototypes -Wmissing-prototypes -DUSE_THREADS - 
D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wa,- 
xarch=v8plusa -Ibeam -Isys/unix -Isys/common -Isparc-sun-solaris2.10/ 
opt/smp -Isparc-sun-solaris2.10 -Izlib -Ihipe -I../include/internal - 
I../include/internal/sparc-sun-solaris2.10 -Idrivers/common -Idrivers/ 
unix -c drivers/common/inet_drv.c -o obj/sparc-sun-solaris2.10/opt/ 
smp/inet_drv.o
drivers/common/inet_drv.c: In function 'sctp_fill_opts':
drivers/common/inet_drv.c:6642: error: 'SCTP_CLOSED' undeclared  
(first use in this function)
drivers/common/inet_drv.c:6642: error: (Each undeclared identifier is  
reported only once
drivers/common/inet_drv.c:6642: error: for each function it appears in.)
drivers/common/inet_drv.c:6653: error: 'SCTP_COOKIE_WAIT' undeclared  
(first use in this function)
drivers/common/inet_drv.c:6656: error: 'SCTP_COOKIE_ECHOED'  
undeclared (first use in this function)
drivers/common/inet_drv.c:6659: error: 'SCTP_ESTABLISHED' undeclared  
(first use in this function)
drivers/common/inet_drv.c:6662: error: 'SCTP_SHUTDOWN_PENDING'  
undeclared (first use in this function)
drivers/common/inet_drv.c:6665: error: 'SCTP_SHUTDOWN_SENT'  
undeclared (first use in this function)
drivers/common/inet_drv.c:6668: error: 'SCTP_SHUTDOWN_RECEIVED'  
undeclared (first use in this function)
drivers/common/inet_drv.c:6671: error: 'SCTP_SHUTDOWN_ACK_SENT'  
undeclared (first use in this function)
make[3]: *** [obj/sparc-sun-solaris2.10/opt/smp/inet_drv.o] Error 1
make[3]: Leaving directory `/tmp/otp_src_R12B-0/erts/emulator'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/tmp/otp_src_R12B-0/erts/emulator'
make[1]: *** [smp] Error 2
make[1]: Leaving directory `/tmp/otp_src_R12B-0/erts'
make: *** [emulator] Error 2



More information about the erlang-bugs mailing list