stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Commented: (STDCXX-337) [Cygwin] unsats on _libiconv, _catgets
Date Sun, 11 Feb 2007 22:55:05 GMT


Martin Sebor commented on STDCXX-337:

The iconv and catgets unsats should be pretty easy to fix (add the libraries to LDLIBS).

The exception::what() unsats look more troubling since we have a config test in place to detect
whether this function exists in the runtime library or not and so the fact that we're getting
errors means the test is broken. Since this is unrelated to the other problem, could you open
a separate issue for it. It would be helpful if you could include the command line and the
error(s) if any from config.log in the issue.

> [Cygwin] unsats on _libiconv, _catgets
> --------------------------------------
>                 Key: STDCXX-337
>                 URL:
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 4.1.3
>         Environment: Cygwin
>            Reporter: Mark Brown
> I tried to build the library on Cygwin but I'm getting linker errors for the localedef
utility. I have the iconv library installed (in /usr/lib) but make isn't linking with it.
I also get linker errors for _catopen, _catgets, and _catclose. I searched under /usr/lib
to see what library defines these symbols and it's libcatgets.a. Should the makefile be linking
with it?
> gcc localedef.o aliases.o charmap.o codecvt.o collate.o ctype.o def.o diagnostic.o messages.o
monetary.o numeric.o path.o time.o scanner.o -o localedef  -L/home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/lib
-lstd11s  -lsupc++ -lm 
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libsupc++.a(eh_exception.o):(.text+0x80): multiple
definition of `std::exception::what() const'
> /home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/lib/libstd11s.a(exception.o):/home/mbrown/stdcxx-4.1.3/src/exception.cpp:334:
first defined here
> charmap.o: In function `_ZNSt4pairIKwSsEC1ERKS1_':
> /home/mbrown/stdcxx-4.1.3/include/rw/_specialized.h:(.text+0x4c0): undefined reference
to `_libiconv_open'
> charmap.o: In function `_ZNK7Charmap15convert_to_utf8EPKcjPcj':
> /home/mbrown/stdcxx-4.1.3/util/charmap.cpp:346: undefined reference to `_libiconv'
> /home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/lib/libstd11s.a(messages.o): In function `_ZN4__rw13__rw_cat_openERKSsRKSt6locale':
> /home/mbrown/stdcxx-4.1.3/src/messages.cpp:205: undefined reference to `_catopen'
> /home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/lib/libstd11s.a(messages.o): In function `_ZN4__rw16__rw_get_messageEiii':
> /home/mbrown/stdcxx-4.1.3/src/messages.cpp:235: undefined reference to `_catgets'
> /home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/lib/libstd11s.a(messages.o): In function `_ZN4__rw14__rw_cat_closeEi':
> /home/mbrown/stdcxx-4.1.3/src/messages.cpp:277: undefined reference to `_catclose'
> collect2: ld returned 1 exit status
> make[2]: *** [localedef] Error 1
> make[2]: Leaving directory `/home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s/bin'
> make[1]: *** [util] Error 2
> make[1]: Leaving directory `/home/mbrown/stdcxx-4.1.3-gcc-3.4.4-11s'
> make: *** [libstd] Error 2

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message