delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/13/12:54:36

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=Tdonmmwfb2DZKD+OBrpJGRoV6m71RJZ9+V39M8WfldSbjP7esXXhm
Rtl0wfP2keQEeIw8eLN6hm5GeQqxrYuEvVUKM+oK+VAMutI+6zAC5cN1YLD8xoUG
czYhP7T02rCXanU/SgATModjfdQ3rBS9eRcbYZ+o+kYV9+yO4xHpOY=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=+KbUd1zrgy95/sEMk351D0HaXoc=; b=MiYY7lLNE55I0g3qLvoPjKB5OzH4
TjVLBhMY3s/EWaflIyU3CA/7ZzHizE84vBuiiW3gaHTwqkHlwhgS6n5dIsr1f+Tg
VvquHiZiZr5lUOzWezHX8EEM9w+n/DcOCDigl9iloZK7ZiyCsuxVhcHVbr6xYP1W
DYpuVzbIlGxQfWw=
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.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: pinfo configure problem - configure.ac (0/1)
Date: Tue, 13 May 2014 12:53:59 -0400
Lines: 34
Message-ID: <a6j4n9t08rri0lbo93vpeif68o6ald3cui@4ax.com>
References: <05u3n9l6l8pgdeuidskcplb1930mmjtu05 AT 4ax DOT com> <20140513110518 DOT GN2436 AT calimero DOT vinschen DOT de> <ui14n9t5gv0sepatqtpocqqlodgcve9gi3 AT 4ax DOT com> <20140513115410 DOT GP2436 AT calimero DOT vinschen DOT de> <sfe4n955rf2f5571oepq2l0tffi4hr1l4b AT 4ax DOT com>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes

> > On May 13 07:49, Andrew Schulman wrote:
> > > > On May 13 06:55, Andrew Schulman wrote:
> > > > > I'm trying to build pinfo 0.6.10 in 64-bit.  The configure script halts,
> > > > > claiming "curses is not usable".  The command that fails is:
> > > > > 
> > > > >   gcc -o conftest.exe -g -O2 -I/usr/include -L/usr/lib -lncursesw
> > > > > conftest.c 
> > > > > 
> > > > > and this fails because the order of the arguments is wrong.  The command
> > > > > should be
> > > > > 
> > > > >   gcc -o conftest.exe -g -O2 -I/usr/include conftest.c -L/usr/lib
> > > > > -lncursesw 
> > > > > 
> > > > > and that succeeds.  So my question is really an autoconf question:  How
> > > > > can I tell autoconf to fix the order of the compiler arguments?
> > > > 
> > > > Doesn't calling `autoreconf' fix this problem?  If so, if you use
> > > > cygport, the default build strategy contains the autoreconf step.
> > > > If you defin your own build function, call cygautoreconf as first
> > > > step after `cd ${B}'.
> > > 
> > > No, unfortunately it doesn't.  I ran 'autoreconf -i' first.
> > 
> > autoreconf -f -i?
> 
> Alas, no.
> 
> Here's configure.ac, in case that's helpful.

I seem to have worked around it by setting LIBS=-lncursesw.  Apparently
LIBS is appended to the gcc command line after the list of source files.

Thanks for looking into it.


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

- Raw text -


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