This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/572: can't link stl based program on AIX 4.3 with multi-threading enabled



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]