X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Tue, 02 Jun 2009 09:35:11 +0200
To: "David Karr" <dkarr@real.com>, cygwin@cygwin.com
Subject: Re: Building "trueprint" fails with missing ref to _libintl_gettext
From: "Matthias Andree" <matthias.andree@gmx.de>
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
MIME-Version: 1.0
References: <450D531908314783A54483A3B9A1EA37@corp.real.com>  <A3AEC748E21C4C278383908E33D460E0@corp.real.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op.uuvzcxzf1e62zd@merlin.emma.line.org>
In-Reply-To: <A3AEC748E21C4C278383908E33D460E0@corp.real.com>
User-Agent: Opera Mail/9.64 (Linux)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Am 01.06.2009, 22:48 Uhr, schrieb David Karr <dkarr@real.com>:

>> -----Original Message-----
>> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
>> Of David Karr
>> Sent: Monday, June 01, 2009 1:26 PM
>> To: cygwin@cygwin.com
>> Subject: Building "trueprint" fails with missing ref to _libintl_gettext
>>
>> I'm trying to build the "trueprint" app on Cygwin, and it's failing with
>> the
>> following:
>>
>>     undefined reference to `_libintl_gettext'
>>
>> I had to do this many years ago, and I believe I ran into this then  
>> also,
>> but I don't remember what I had to do to resolve it.
>>
>> When I run "configure" it comes out with a line (among others):
>>
>>     checking for gettext... (cached) no
>>
>> I don't know if I'm simply missing a Cygwin package, or whether I have  
>> to
>> hack the trueprint build to get it to work.  The "gettext" package in
>> Cygwin
>> is installed.
>
> Never mind.  I figured it out.  I just added -lintl to the LIBS variable  
> in the resulting src/Makefile.

You can also do something like

./configure LIBS=-lintl

or

./configure LIBS="-lintl -lfoobar"

If configure was built with a semi-recent autoconf, that will also  
propagate into the Makefile without your needing to tweak the Makefile.

HTH

-- 
Matthias Andree

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

