Hi Jan
My linux is kernel 2.4.22 and maybe it doesn't support SCTP, so I install
sctplib-1.0.4 and socketapi-1.7.0, but still the same problem. I also try
to install the nsis_0.2.0 on another PC(linux kernel 2.6.8.1, support SCTP),
but the same problem again. If I want to use SCTP, how to build it into the
kernel?
You are right,there is no "IPPROTO_SCTP" in /usr/include/netinet/in.h, so I
add the following lines to in.h:
IPPROTO_SCTP = 132,
#define IPPROTO_SCTP IPPROTO_SCTP
When I remake it,there is no the SCTP problem again, but there comes up
another problem! Please help!
[root@localhost nsis_0.2.0]# make
cd library && make
make[1]: Entering directory `/home/files/downloads/nsis/nsis_0.2.0/library'
g++ -g -I. -O2 -Wall -I../gist -c socket/SCTPSocket.cpp -o socket/SCTPSocket.o
g++ -g -I. -O2 -Wall -I../gist -c socket/TCPSocket.cpp -o socket/TCPSocket.o
g++ -g -I. -O2 -Wall -I../gist -c socket/TCPTLSSocket.cpp -o socket/TCPTLSSocket.o
g++ -g -I. -O2 -Wall -I../gist -c socket/UDPSocket.cpp -o socket/UDPSocket.o
socket/UDPSocket.cpp: In member function `virtual void
UDPSocket::sendMsg(IPaddr, short unsigned int, char*, int, bool)':
socket/UDPSocket.cpp:90: `inet6_option_space' undeclared (first use this
function)
socket/UDPSocket.cpp:90: (Each undeclared identifier is reported only once for
each function it appears in.)
socket/UDPSocket.cpp:91: `inet6_option_init' undeclared (first use this
function)
socket/UDPSocket.cpp:92: `inet6_option_append' undeclared (first use this
function)
make[1]: *** [socket/UDPSocket.o] Error 1
make[1]: Leaving directory `/home/files/downloads/nsis/nsis_0.2.0/library'
make: *** [library] Error 2
Thank you!
John
>
>Am 15.11.2005 um 15:45 schrieb Bernd Schloer:
>
>> I had the same problem when using gcc 2.96. gcc3 or gcc4 should fix
>> this.
>> Which compiler are you using?
>
>I do not think that this is a compiler issue, John has just not got
>the appropriate header files for SCTP installed, at least the error
>message does very much hint at that, doesn't it?
>
>John: grep for "IPPROTO_SCTP" in /usr/include/netinet/in.h, if it is
>not there, and I'm pretty sure about that, you need to get a more
>current version of that file and others to use SCTP, they should come
>with some "kernel-headers..." or the like package, please find that
>out for yourself.
>If however you do not want to use SCTP at all you can probably just
>#define IPPROTO_SCTP to some number, everything else should work then.
>
>Greetings
>Jan
>--
>"If a camel flies, no one laughs if it doesn't get very far."
> -- Paul White
>
>