| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; q=dns; s=default; b=MDYXwt/ | |
| 68exoHlM1w2M813QDp1I2cX9w2hPN2OTLG2TBNOHYsEvFjG5lbHITukqE1Fxy4u+ | |
| OjnALwirfYsl0/Xtv3/ePwPxX9GKDiUyaRHPx+lWvk95UlrRK1I5Cd3Quhyc8CAS | |
| Cl9zTkymPEiJPEQmFtvjXrnU2aeqrz9T/4/A= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:mime-version:in-reply-to:references:from:date | |
| :message-id:subject:to:content-type; s=default; bh=M1U1fbFUmTdBx | |
| lWwEuQZi6YpVec=; b=wYe9BVfGC4Fc5lPsmZpi/c1voYB++hObGQMTW3KJ75QlT | |
| hA8+/VguSVDtYjgXBOgfpZR3746clUq7iFt8iHWXfzl3/J6WwzmFqXfwJerKMYBW | |
| +7JB/0Z/CQAhThPCynqnDQOZd/1mau+umsotQO30CAOQitOPKEQJ9plQ4i2Vi8= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| 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 |
| 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 |
| In-Reply-To: | <96dd675e-5b75-aced-0762-c67e96d33f67@SystematicSw.ab.ca> |
| References: | <CAO1c0AT52ZzCKc3yD_7eX6ri4VubrTb5L+X-4vHWoXBAX2jsfw AT mail DOT gmail DOT com> <5adc37f5-608b-6c1f-6d14-83343c82dc9f AT SystematicSw DOT ab DOT ca> <CAO1c0ARyXv76_7WO3mvZFjmZ1yYw8Q8bcz5e37YpuVmqhJwejg AT mail DOT gmail DOT com> <CABHT963SLLrcAxNgD+bUEarohJNj=M=HA34S_2mG86OfLCO3=A AT mail DOT gmail DOT com> <96dd675e-5b75-aced-0762-c67e96d33f67 AT SystematicSw DOT ab DOT ca> |
| From: | Lee <ler762 AT gmail DOT com> |
| Date: | Wed, 30 Nov 2016 09:49:35 -0500 |
| Message-ID: | <CAD8GWsuytE300SCrqtmpOFqW92za1rftYBdWmyN1nDexyWMmFw@mail.gmail.com> |
| Subject: | Re: Cygwin TCP slow |
| To: | Brian DOT Inglis AT systematicsw DOT ab DOT ca, cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |