delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/05/16:15:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 5 Sep 2002 15:09:08 +0200 (MEST)
From: Bjoern Kahl AG Resy <kahl AT informatik DOT uni-kl DOT de>
To: "Nenad Antic (EAB)" <Nenad DOT Antic AT era DOT ericsson DOT se>
cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Compiling netcat under cygwin
In-Reply-To: <6526481A986CD51189C30002A52C969701E7A715@Esealnt862.al.sw.ericsson.se>
Message-ID: <Pine.GSO.4.44.0209051441070.1785-200000@domino.informatik.uni-kl.de>
MIME-Version: 1.0

---559023410-1932422408-1031230835=:1785
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0209051507541 DOT 1785 AT domino DOT informatik DOT uni-kl DOT de>


 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 <netcat-cygwin.patch
   make cygwin
 You should find a nc binary after these steps in the directory.

 Note: I am in no connection to the netcat maintainer, neither
 native or  cygwin, and I have no plans to maintain a
 cygwin-version. I just taken 10 minutes to hack this up.


   Bjoern

-- 
+---------------------------------------------------------------------+
| Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) |
| Informatics Faculty +++ Building 48 +++ University of Kaiserslautern|
| phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de   |
+---------------------------------------------------------------------+

---559023410-1932422408-1031230835=:1785
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="netcat-cygwin.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT GSO DOT 4 DOT 44 DOT 0209051500350 DOT 1785 AT domino DOT informatik DOT uni-kl DOT de>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="netcat-cygwin.patch"

ZGlmZiAtdSBuZXRjYXQub3JpZy9NYWtlZmlsZSAvTWFrZWZpbGUNCi0tLSBu
ZXRjYXQub3JpZy9NYWtlZmlsZQlXZWQgTWFyIDIwIDA0OjE2OjA2IDE5OTYN
CisrKyAvTWFrZWZpbGUJVGh1IFNlcCAgNSAxMzo0NzozMCAyMDAyDQpAQCAt
MTA5LDkgKzEwOSwxNiBAQA0KIG5leHQ6DQogCW1ha2UgLWUgJChBTEwpICQo
TUZMQUdTKSBYRkxBR1M9Jy1ETkVYVCcgU1RBVElDPS1Cc3RhdGljDQogDQor
DQorIyBjeWd3aW4gVW5peC1lbXVsYXRpb25sYXllciBmb3IgV2luOXgvTlQv
Li4uDQorY3lnd2luOg0KKwltYWtlIC1lICQoQUxMKSAkKE1GTEFHUykgWEZM
QUdTPSctRENZR1dJTicgU1RBVElDPSBDQz1nY2MNCisNCisNCiAjIHN0YXJ0
IHdpdGggdGhpcyBmb3IgYSBuZXcgYXJjaGl0ZWN0dXJlLCBhbmQgc2VlIHdo
YXQgYnJlYWtzLg0KIGdlbmVyaWM6DQogCW1ha2UgLWUgJChBTEwpICQoTUZM
QUdTKSBYRkxBR1M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Bzb3VyY2Ugcm91
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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019