X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Mark Geisert <mark@maxrnd.com>
Subject: Re: How do I build this program for Cygwin?
Date: Sun, 6 May 2012 08:46:58 +0000 (UTC)
Lines: 33
Message-ID: <loom.20120506T103916-699@post.gmane.org>
References: <jo4v9n$2c8$1@dough.gmane.org> <1336292228.64234.YahooMailClassic@web28605.mail.ukl.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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



--
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

