This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/572: can't link stl based program on AIX 4.3 with multi-threading enabled
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/572: can't link stl based program on AIX 4.3 with multi-threading enabled
- From: ggiordan at independent-telecom dot com
- Date: 27 Sep 2000 02:48:04 -0000
- Reply-To: ggiordan at independent-telecom dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, ggiordan@independent-telecom.com
>Number: 572
>Category: libstdc++
>Synopsis: can't link stl based program on AIX 4.3 with multi-threading enabled
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 26 19:56:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Geoffrey Giordano
>Release: gcc 2.95.2
>Organization:
>Environment:
AIX 4.3
gcc 2.95.2 built with --enable-threads=posix --prefix=<my home> only. non-threaded 2.95.2 used to build.
>Description:
Compiling the following program with the following command line failes as shown:
$ uname -a
AIX nova3 3 4 000B698D4C00
$ g++ -lpthread yyy.cpp
ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false, 0>::_S_end
_free
ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false, 0>::_S_sta
rt_free
ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false, 0>::_S_hea
p_size
ld: 0711-317 ERROR: Undefined symbol: __default_alloc_template<false, 0>::_S_fre
e_list
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
$
the source is as follows:
$ cat yyy.cpp
#include <map>
main()
{
map< int, int > mymap;
mymap[32] = 33;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: