X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Message-ID: <1336296115.32875.YahooMailClassic@web28602.mail.ukl.yahoo.com> Date: Sun, 6 May 2012 10:21:55 +0100 (BST) From: Marilo Reply-To: narium85-mlscar AT yahoo DOT co DOT uk Subject: Re: How do I build this program for Cygwin? To: cygwin AT cygwin DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q469MGSd023835 --- On Sun, 6/5/12, Mark Geisertwrote: > From: Mark Geisert > Subject: Re: How do I build this program for Cygwin? > To: cygwin > Date: Sunday, 6 May, 2012, 9:46 > Marilo writes: > > > You followed the wrong instructions. > > > > The instructions - "INSTALL" said > > 1. configure > > 2. make > > .. > > > > But the problem is "configure" didn't exist. > > Two things: 1st, Whoever wrote the INSTALL was sloppy and > should have said > "./configure", and the 2nd thing is it's common knowledge > that that's how one > runs configure.  You don't have the common knowledge > yet because you're new at > this.  That's OK. > > For the heck of it I tried to build this GNU netcat from the > SourceForge > package.  I used: >     ./configure >     make > > That's when I found out the code won't compile because > Cygwin's struct > in_pktinfo is missing a field that Linux apparently has: > ipi_spec_dst. > Fortunately I could get around that by subverting the > configure check for struct > in_pktinfo.  I changed line 8865 of configure, > inserting two leading slashes to > comment out the line.  Then I ran ./configure > again.  Then make.  That built a > netcat.exe in the src subdirectory. > > Does it have the options you need?  I don't know.  > But now you know how to build > it yourself to find out. > HTH, > > ..mark > Thanks.. The instructions in INSTALL seem standard, e.g. they don't mention netcat. it's just a standard set of instructions for doing ./configure and make. They mention ./configure.. What I meant was really there was no configure! What had happened was I downloaded some version without the "configure" file.. I went to the CVS repository http://netcat.cvs.sourceforge.net/netcat/netcat/ and clicked download GNU tarball and got netcat-netcat.tar.gz I should've clicked http://sourceforge.net/projects/netcat/files/latest/download?source=files and got netcat-0.7.1.tar.gz But since you mention "configure" existed, I then found the right one. I amended the configure file as you mention. I still get an error in the make.. and then no netcat.exe in the src subdirectory make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/Steve/netcat/lib' make[2]: Leaving directory `/home/Steve/netcat/lib' Making all in src make[2]: Entering directory `/home/Steve/netcat/src' gcc -DLOCALEDIR=\"\/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. - g -O2 -Wall -c `test -f 'udphelper.c' || echo './'`udphelper.c gcc -g -O2 -Wall -o netcat.exe core.o flagset.o misc.o netcat.o network.o t elnet.o udphelper.o -lintl core.o: In function `core_listen': /home/Steve/netcat/src/core.c:225: undefined reference to `_udphelper_ancillary_ read' collect2: ld returned 1 exit status Makefile:231: recipe for target `netcat.exe' failed make[2]: *** [netcat.exe] Error 1 make[2]: Leaving directory `/home/Steve/netcat/src' Makefile:220: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Steve/netcat' Makefile:175: recipe for target `all' failed make: *** [all] Error 2 -- 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