Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 5 Sep 2002 15:09:08 +0200 (MEST) From: Bjoern Kahl AG Resy To: "Nenad Antic (EAB)" cc: "'cygwin AT cygwin DOT com'" Subject: Re: Compiling netcat under cygwin In-Reply-To: <6526481A986CD51189C30002A52C969701E7A715@Esealnt862.al.sw.ericsson.se> Message-ID: Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1932422408-1031230835=:1785" Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: ---559023410-1932422408-1031230835=:1785 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Hallo ! On Thu, 5 Sep 2002, Nenad Antic (EAB) wrote: > I would like to get netcat > (http://www.atstake.com/research/tools/nc110.tgz) compiled natively > under cygwin. Currently there isn't any appropriate target in > netcat's makefile to do this. > > I do know that there is a Windows NT version available at > > http://www.atstake.com/research/tools/nc11nt.zip > > However, when using that version under cygwin netcat behaves a bit > funny. [ ... ] > Would anybody know how to set up the gcc options so that netcat > can compile under cygwin properly? I would be really grateful > for this information. Please find the attached patch. unpack the above mentioned tar-file in a empty directory, save the patch in the same directory, then run in that directory patch Content-Description: Content-Disposition: ATTACHMENT; FILENAME="netcat-cygwin.patch" ZGlmZiAtdSBuZXRjYXQub3JpZy9NYWtlZmlsZSAvTWFrZWZpbGUNCi0tLSBu ZXRjYXQub3JpZy9NYWtlZmlsZQlXZWQgTWFyIDIwIDA0OjE2OjA2IDE5OTYN CisrKyAvTWFrZWZpbGUJVGh1IFNlcCAgNSAxMzo0NzozMCAyMDAyDQpAQCAt MTA5LDkgKzEwOSwxNiBAQA0KIG5leHQ6DQogCW1ha2UgLWUgJChBTEwpICQo TUZMQUdTKSBYRkxBR1M9Jy1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IGhhaXIgKi8NCiAgICAgICBvcHRidWYgPSBI bWFsbG9jICg0OCk7DQpAQCAtNzM3LDYgKzczOCw5IEBADQogICAgIHJyID0g c2V0c29ja29wdCAobm5ldGZkLCBJUFBST1RPX0lQLCBJUF9PUFRJT05TLCBv cHRidWYsIHgpOw0KICAgICBpZiAocnIgPT0gLTEpDQogICAgICAgYmFpbCAo InNyY3J0IHNldHNvY2tvcHQgZnV4b3JlZCIpOw0KKyNlbHNlIC8qIEhBVkVf Tk9fTFNSUiAqLw0KKyAgICBob2xsZXIgKCJXYXJuaW5nOiBzb3VyY2Ugcm91 dGluZyB1bmF2YWlsYWJsZSBvbiB0aGlzIG1hY2hpbmUsIGlnbm9yaW5nIik7 DQorI2VuZGlmDQogI2Vsc2UgLyogSVBfT1BUSU9OUyAqLw0KICAgICBob2xs ZXIgKCJXYXJuaW5nOiBzb3VyY2Ugcm91dGluZyB1bmF2YWlsYWJsZSBvbiB0 aGlzIG1hY2hpbmUsIGlnbm9yaW5nIik7DQogI2VuZGlmIC8qIElQX09QVElP TlMqLw0KQEAgLTEzMTUsOCArMTMxOSwxMCBAQA0KICAgY2hhciAqIHJhbmRw b3J0cyA9IE5VTEw7DQogDQogI2lmZGVmIEhBVkVfQklORA0KKyNpZmRlZiBI QVZFX1JFU19JTklUDQogLyogY2FuICp5b3UqIHNheSAiY2MgLXlhZGRheWFk ZGEgbmV0Y2F0LmMgLWxyZXNvbHYgLWw0NGJzZCIgb24gU3VuTE9Tcz8gKi8N CiAgIHJlc19pbml0KCk7DQorI2VuZGlmDQogI2VuZGlmDQogLyogSSB3YXMg aW4gdGhpcyBiYXJiZXJzaG9wIHF1YXJ0ZXQgaW4gU2tva2llIElMIC4uLiAq Lw0KIC8qIHJvdW5kIHVwIHRoZSB1c3VhbCBzdXNwZWN0cywgaS5lLiBtYWxs b2MgdXAgYWxsIHRoZSBzdHVmZiB3ZSBuZWVkICovDQoNCg== ---559023410-1932422408-1031230835=:1785 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ---559023410-1932422408-1031230835=:1785--