> If you also provided a Cygwin port of iperf3 Any hints on how to do that?
Trying to build using the i686-w64-mingw32-gcc cross-compiler dies because nanosleep is missing. How to figure out what needs to be installed to get that function? $ ./configure --prefix=/usr/local --build=i686-pc-cygwin --host=i686-w64-mingw32 <.. snip ..> checking for ANSI C header files... (cached) yes checking for library containing floor... none required checking for library containing nanosleep... no nanosleep() required for timing operations. /source/iperf-3.1.4 $ Trying to build using the cygwin gcc compiler does because of "conflicting types for 'iprintf'" aside: Why would one redefine a standard routine instead of making their own routine that calls the standard routine?? The conflicting bit is in iperf_api.h: /* Custom printf routine. */ int iprintf(struct iperf_test *test, const char *format, ...) __attribute__ ((format(printf,2,3))); In any case, how does one reconcile int iprintf( ... with int _EXFUN(iprintf, ( ... $ ./configure --prefix=/usr/local $ make Making all in src make[1]: Entering directory '/source/iperf-3.1.4/src' make all-am make[2]: Entering directory '/source/iperf-3.1.4/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT cjson.lo -MD -MP -MF .deps/cjson.Tpo -c -o cjson.lo cjson.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT cjson.lo -MD -MP -MF .deps/cjson.Tpo -c cjson.c -DDLL_EXPORT -DPIC -o .libs/cjson.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT cjson.lo -MD -MP -MF .deps/cjson.Tpo -c cjson.c -o cjson.o >/dev/null 2>&1 mv -f .deps/cjson.Tpo .deps/cjson.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT iperf_api.lo -MD -MP -MF .deps/iperf_api.Tpo -c -o iperf_api.lo iperf_api.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O2 -Wall -MT iperf_api.lo -MD -MP -MF .deps/iperf_api.Tpo -c iperf_api.c -DDLL_EXPORT -DPIC -o .libs/iperf_api.o In file included from iperf_api.c:66:0: iperf_api.h:262:5: error: conflicting types for 'iprintf' int iprintf(struct iperf_test *test, const char *format, ...) __attribute__ ((format(printf,2,3))); ^ In file included from /usr/include/stdio.h:29:0, from iperf_api.c:32: /usr/include/stdio.h:298:5: note: previous declaration of 'iprintf' was here int _EXFUN(iprintf, (const char *, ...) ^ iperf_api.c:3113:1: error: conflicting types for 'iprintf' iprintf(struct iperf_test *test, const char* format, ...) ^ In file included from /usr/include/stdio.h:29:0, from iperf_api.c:32: /usr/include/stdio.h:298:5: note: previous declaration of 'iprintf' was here int _EXFUN(iprintf, (const char *, ...) ^ make[2]: *** [Makefile:856: iperf_api.lo] Error 1 make[2]: Leaving directory '/source/iperf-3.1.4/src' make[1]: *** [Makefile:632: all] Error 2 make[1]: Leaving directory '/source/iperf-3.1.4/src' make: *** [Makefile:381: all-recursive] Error 1 /source/iperf-3.1.4 $ TIA, Lee -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple