www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/02/03:35:28

X-Recipient: archive-cygwin AT delorie DOT 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 AT real DOT com>, cygwin AT cygwin DOT com
Subject: Re: Building "trueprint" fails with missing ref to _libintl_gettext
From: "Matthias Andree" <matthias DOT andree AT gmx DOT de>
MIME-Version: 1.0
References: <450D531908314783A54483A3B9A1EA37 AT corp DOT real DOT com> <A3AEC748E21C4C278383908E33D460E0 AT corp DOT real DOT com>
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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Am 01.06.2009, 22:48 Uhr, schrieb David Karr <dkarr AT real DOT com>:

>> -----Original Message-----
>> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
>> Of David Karr
>> Sent: Monday, June 01, 2009 1:26 PM
>> To: cygwin AT cygwin DOT 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/

- Raw text -


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