[netperf-talk] configure SCTP error
Rick Jones
rick.jones2 at hp.com
Tue Jan 31 09:53:44 PST 2006
Jon Pedersen wrote:
> Hi!
>
> I want to configure and run Netperf with SCTP enabled.
>
> I did run: ./configure --enable-sctp=yes
> And then run: make
>
> I'm not able to make and get the following error:
>
> nettest_sctp.c: In function `send_sctp_stream_1toMany':
> nettest_sctp.c:1932: error: `MSG_EOF' undeclared (first use in this function)
> nettest_sctp.c:1932: error: (Each undeclared identifier is reported only once
> nettest_sctp.c:1932: error: for each function it appears in.)
>
> How can I fix this error and enable SCTP?
First, it would help to know on which platform you are trying to compile.
Next, seeing if there is indeed an include file with MSG_EOF defined:
raj at tardy:~/netperf2_work$ find /usr/include -exec grep -l MSG_EOF {} \;
/usr/include/linux/socket.h
/usr/include/netinet/sctp.h
And perhaps seeing how it is defined:
raj at tardy:~/netperf2_work$ find /usr/include -exec grep MSG_EOF {} \;
#define MSG_EOF MSG_FIN
MSG_EOF=MSG_FIN, /* Initiate graceful shutdown process. */
Now, nettest_sctp.c is already including netinet/sctp.h and sys/socket.h (which
I believe is what includes linux/socket.h on the linux system on which I've been
looking. What we need to know is if it is in a different include file on your
platform.
happy benchmarking,
rick jones
More information about the netperf-talk
mailing list