delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/11/12:29:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=BAYES_20
X-Spam-Check-By: sourceware.org
Message-Id: <6.1.1.1.2.20100311181323.01d8b5f0@192.168.6.12>
X-Sender: simrw AT 192 DOT 168 DOT 6 DOT 12
Date: Thu, 11 Mar 2010 18:29:03 +0100
To: cygwin AT cygwin DOT com
From: Roger While <simrw AT sim-basis DOT de>
Subject: gettext/libiconv and libtool problem
Mime-Version: 1.0
X-SIMBasis-MailScanner-Information: Please contact the ISP for more information
X-SIMBasis-MailScanner: Found to be clean
X-SIMBasis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-5.899, required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60)
X-SIMBasis-MailScanner-From: simrw AT sim-basis DOT de
X-MAIL-FROM: <simrw AT sim-basis DOT de>
X-SF-Loop: 1
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

gettext has a requirement on libiconv2.
libiconv2 contains only the cygiconv dll and nothing else.

OK. So we have a typical (libtooled) autoconf/automake configure which has
a AM_GNU_GETTEXT([external]).

Fine, the configure proceeds and produces something like -

checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl

etc.
Also fine.

We then do the make which blows up with -

libtool: link: cannot find the library `/usr/lib/libiconv.la' or unhandled 
argument
`/usr/lib/libiconv.la'

It looks to me as though libiconv2 should be supplying libiconv.la
as the gettext libintl.la has these lines -

# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib /usr/lib/libiconv.la'

In fact I wonder whether or not gettext should require libiconv
instead of/as well as libiconv2.

Roger


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