[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Trying to build gettext 0.18.1 on Cygwin 1.7.15-1

From: Greg Wilson-Lindberg
Subject: [bug-gettext] Trying to build gettext 0.18.1 on Cygwin 1.7.15-1
Date: Mon, 11 Jun 2012 15:08:22 -0700

Hello list,

I had submitted the previous post and apparently I have violated some form of 
etiquette.  If someone could please point out what I did wrong, bad post in 
some fashion, wrong mailing list, something else, then I could post in a more 
appropriate place/manner.

Thanks in advance for your help.

Greg Wilson-Lindberg

Hello list,
First I hope that this is the correct place to ask about building on Cygwin, 
I've seen some other threads on it here, so I'm hoping that I'm not violating 
I'm trying to build the current version of gettext, 0.18.1.  I'm running on 
Windows XP SP3.  I started by downloading the current version of the Cygwin 
tools, v1.7.15 and all of the tools that are listed as being needed by gettext:
GCC                 4.5.3-3
Binutils             2.22.51-2
Automake         1.11.1-1            from gcc-tools-epoch2-automake
Autoconf           2.64                  from gcc-tools-epoch2-autoconf
M4                    1.4.16-1
Expat                2.0.1-1
Libexpat1-devel  2.0.1-1
Libiconv             1.14-2
Libiconv 2          1.14-2
Libcharset1       1.14-2
Libncursesw-devel 5.7-18
Make                3.82.90-1
Cygport             0.10.10.-1
Libtool               2.4-1
Bison                2.4.2
Gperf                3.0.3
Groff                 1.21
Texinfo              4.13-4
All of these are the current versions from the Cygwin repositories, except for 
automake & autoconf.
I've tried two ways of building gettext and I am getting the same errors in 
both cases.  The first way is from a previous series of messages about getting 
gettext to build on Cygwin 
(https://lists.gnu.org/archive/html/bug-gettext/2011-08/msg00000.html).  In the 
referenced message the commands listed are:
$ mkdir build3
$ cd build3
$ ../configure --prefix=/usr/local/cygwin \
               CPPFLAGS="-I/usr/local/cygwin/include -Wall" \
               LDFLAGS="-L/usr/local/cygwin/lib" \
               --with-included-libxml 2>&1 | tee log1
$ make 2>&1 | tee log2
I downloaded the gettext v0.18.1 from gnu.org and ran the above steps.
The second way was to use Cygwin setup.exe to download the gettext 
source and then run cygport prep & compile on the also downloaded 
gettext- file.
In both cases the errors that I get are:
libtool: link: g++ -shared -nostdlib 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/crtbegin.o  .libs/set-mode-acl.o 
.libs/copy-acl.o .libs/file-has-acl.o .libs/areadlink.o .libs/gl_array_list.o 
.libs/backupfile.o .libs/addext.o .libs/basename.o .libs/c-ctype.o 
.libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/c-strcasestr.o 
.libs/c-strstr.o .libs/classpath.o .libs/clean-temp.o .libs/closeout.o 
.libs/concat-filename.o .libs/copy-file.o .libs/csharpcomp.o .libs/csharpexec.o 
.libs/error-progname.o .libs/execute.o .libs/exitfail.o .libs/fatal-signal.o 
.libs/fd-ostream.o .libs/fd-safer-flag.o .libs/dup-safer-flag.o 
.libs/file-ostream.o .libs/findprog.o .libs/fstrcmp.o .libs/full-write.o 
.libs/fwriteerror.o .libs/gcd.o ../woe32dll/.libs/gettextlib-exports.o 
.libs/hash.o .libs/html-ostream.o ../woe32dll/.libs/c++html-styled-ostream.o 
.libs/javacomp.o .libs/javaexec.o .libs/javaversion.o 
.libs/gl_linkedhash_list.o .libs/gl_list.o .libs/localcharset.o 
.libs/localename.o glthread/.libs/lock.o .libs/malloca.o .libs/mbchar.o 
.libs/mbslen.o .libs/mbsstr.o .libs/mbswidth.o .libs/ostream.o .libs/pipe.o 
.libs/pipe-filter-ii.o .libs/pipe2.o .libs/pipe2-safer.o .libs/progname.o 
.libs/propername.o .libs/quote.o .libs/quotearg.o .libs/sh-quote.o 
.libs/striconv.o .libs/striconveh.o .libs/striconveha.o .libs/strnlen1.o 
.libs/styled-ostream.o .libs/term-ostream.o 
../woe32dll/.libs/c++term-styled-ostream.o glthread/.libs/threadlib.o 
glthread/.libs/tls.o .libs/tmpdir.o .libs/trim.o 
uniconv/.libs/u8-conv-from-enc.o unilbrk/.libs/lbrktables.o 
unilbrk/.libs/u8-possible-linebreaks.o unilbrk/.libs/u8-width-linebreaks.o 
unilbrk/.libs/ulc-common.o unilbrk/.libs/ulc-width-linebreaks.o 
uniname/.libs/uniname.o unistr/.libs/u16-mbtouc.o unistr/.libs/u16-mbtouc-aux.o 
unistr/.libs/u8-check.o unistr/.libs/u8-mblen.o unistr/.libs/u8-mbtouc.o 
unistr/.libs/u8-mbtouc-aux.o unistr/.libs/u8-mbtouc-unsafe.o 
unistr/.libs/u8-mbtouc-unsafe-aux.o unistr/.libs/u8-mbtoucr.o 
unistr/.libs/u8-prev.o unistr/.libs/u8-uctomb.o unistr/.libs/u8-uctomb-aux.o 
uniwidth/.libs/width.o .libs/wait-process.o .libs/xmalloc.o .libs/xstrdup.o 
.libs/xconcat-filename.o .libs/xerror.o .libs/gl_xlist.o .libs/xmalloca.o 
.libs/xreadlink.o .libs/xsetenv.o .libs/xstriconv.o .libs/xstriconveh.o 
.libs/xvasprintf.o .libs/xasprintf.o .libs/argmatch.o .libs/canonicalize-lgpl.o 
.libs/cloexec.o .libs/dup-safer.o .libs/fd-safer.o .libs/obstack.o 
.libs/pipe-safer.o .libs/rawmemchr.o .libs/safe-read.o .libs/safe-write.o 
.libs/spawn_faction_addclose.o .libs/spawn_faction_adddup2.o 
.libs/spawn_faction_addopen.o .libs/spawn_faction_destroy.o 
.libs/spawn_faction_init.o .libs/spawnattr_destroy.o .libs/spawnattr_init.o 
.libs/spawnattr_setflags.o .libs/spawnattr_setsigmask.o .libs/spawni.o 
.libs/spawnp.o .libs/tempname.o .libs/tparm.o .libs/tputs.o  
-Wl,--whole-archive ./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a 
./.libs/libxml_rpl.a -Wl,--no-whole-archive  ../intl/.libs/libintl.dll.a 
-L/usr/local/cygwin/lib -L/usr/lib /usr/lib/libiconv.dll.a 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/libstdc++.dll.a -lgcc_s -lgcc -lcygwin 
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc 
/usr/lib/gcc/i686-pc-cygwin/4.5.3/crtend.o  -Wl,--export-all-symbols 
-Wl,--disable-auto-import   -o .libs/cyggettextlib-0-18-1.dll 
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker 
Creating library file: .libs/libgettextlib.dll.a
Cannot export error_message_count: symbol not defined
Cannot export error_one_per_line: symbol not defined
Cannot export error_print_progname: symbol not defined
undefined reference to `_error_message_count'
undefined reference to `_error_one_per_line'
undefined reference to `_error_print_progname'
collect2: ld returned 1 exit status
I find the definition of error_message_count in error.c but that object is not 
being linked into the library that is being built at the time the error occurs. 
 Maybe I've got something installed that shouldn't be, or I need to add some 
path to be searched first?
Any help on what is happening here would be greatly appreciated.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]