Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15926.53978.570697.36716@honolulu.ilog.fr>
Date: Tue, 28 Jan 2003 19:58:34 +0100 (CET)
From: Bruno Haible <bruno@clisp.org>
To: EChiang@unicacorp.com
Cc: bug-gnu-gettext@gnu.org
Cc: cygwin@cygwin.com
Subject: Re: compilation errors
In-Reply-To: <OFFC006A50.3AEBF0CE-ON85256CBC.00614B30-85256CBC.006397B9@unicacorp.com>
References: <OFFC006A50.3AEBF0CE-ON85256CBC.00614B30-85256CBC.006397B9@unicacorp.com>

Hi,

EChiang@unicacorp.com writes:
>     While compiling gettext (0.11.5) under windows 2000 with cygwin 
> (1.3.19.1), gcc (version 3.2 20020927), and GNU make (version 3.79.1), I 
> ran into the following error messages:
> 
> =====================
> gcc -g -O2 -o .libs/msgcmp.exe msgcmp.o 
> .libs/libimp-cyggettextsrc-0-11-5.a .libs/libimp-cyggettextlib-0-11-5.a 
> .libs/libimp-cygintl-2.a .libs/libimp-cygiconv-
> 2.a -Wl,--rpath -Wl,/usr/local/lib
> fu000001.o(.idata$3+0xc): undefined reference to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname'
> fu000002.o(.idata$3+0xc): undefined reference to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname'
> fu000003.o(.idata$3+0xc): undefined reference to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname'
> fu000004.o(.idata$3+0xc): undefined reference to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname'
> fu000005.o(.idata$3+0xc): undefined reference to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname'
> fu000006.o(.idata$3+0xc): more undefined references to 
> `__libs_libimp_cyggettextsrc_0_11_5_a_iname' follow
> nmth000000.o(.idata$4+0x0): undefined reference to 
> `__nm__gram_max_allowed_errors'
> Info: resolving _gram_max_allowed_errors by linking to 
> __imp__gram_max_allowed_errors (auto-import)
> collect2: ld returned 1 exit status
> make[3]: *** [msgcmp.exe] Error 1

According to http://www.cygwin.com/ml/cygwin/2002-05/msg01222.html
you need to use the CVS version of libtool, rather than libtool-1.4.[23],
with which gettext 0.11.5 is shipped.

As a workaround, you can compile gettext without support for shared
libraries: configure --disable-shared --enable-static.

Bruno

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

