From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61185 invoked by alias); 30 Nov 2016 14:49:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60936 invoked by uid 89); 30 Nov 2016 14:49:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*f:sk:96dd675, timing, Entering, tia X-HELO: mail-io0-f178.google.com Received: from mail-io0-f178.google.com (HELO mail-io0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Nov 2016 14:49:37 +0000 Received: by mail-io0-f178.google.com with SMTP id j65so352326143iof.0 for ; Wed, 30 Nov 2016 06:49:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=JKDISlomzuLsiT0lCSTHLZO66UVZ6WQr4XGRMapbyL0=; b=ZM81rzwEzZATB3sndZakGgO5XVMn2NjWWVuZcfSGpvkz+qBcZ0lGagc8H6eKdgIxDs 6mLkenkzkFalitGgx5Ym1de+bjOawdiciFOHNzbQRN3U3Y90n6MNF87pFsNGw9oJ2La0 Q5BfokHUs6Hchi5PAGjT3xR7EE0lwAy72krK3H6Effz3JzzAcE6OU9P1CmEwWskWf0/Z xgKxgqqHR3uEgSBmjmQBF/lIXykNFnVuX4q45aLOv0KDCpYxwX7OFg3zAI+u2Jy+rfMv YhXGsktU/3Cbc18Ksk39xkDP4bOeMh9MVehgCi2+IBJXpmxVLmVJ2B5COT4Bc6kYyN8x /TNA== X-Gm-Message-State: AKaTC00pUs8DOBSfHx3igY88vTilSoyIp8GIDRVviCMvIsTEj1sAseAJdcbKP6bgNHpNBNHeTZLo5RWlD0mj1g== X-Received: by 10.107.34.74 with SMTP id i71mr24111326ioi.24.1480517376213; Wed, 30 Nov 2016 06:49:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.152.204 with HTTP; Wed, 30 Nov 2016 06:49:35 -0800 (PST) In-Reply-To: <96dd675e-5b75-aced-0762-c67e96d33f67@SystematicSw.ab.ca> References: <5adc37f5-608b-6c1f-6d14-83343c82dc9f@SystematicSw.ab.ca> <96dd675e-5b75-aced-0762-c67e96d33f67@SystematicSw.ab.ca> From: Lee Date: Wed, 30 Nov 2016 16:00:00 -0000 Message-ID: Subject: Re: Cygwin TCP slow To: Brian.Inglis@systematicsw.ab.ca, cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00360.txt.bz2 > 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