Subject: Re: compilation errors
From: Bruno Haible <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Tue, 28 Jan 2003 19:58:34 +0100 (CET)

Hi,

[email-masked] 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/