public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
@ 2002-11-06 4:16 fdumas
0 siblings, 0 replies; 5+ messages in thread
From: fdumas @ 2002-11-06 4:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 8475
>Category: libstdc++
>Synopsis: hash_map error message at run time about __default_alloc_template/force_new not defined
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 06 04:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Frederic Dumas
>Release: gcc (GCC) 3.3 20021029
>Organization:
>Environment:
linux P4
>Description:
#include <ext/hash_map>
using namespace __gnu_cxx;
template class hash_map< int, int >;
int main() { };
> g++ -O3 test_hash.cpp -o test_hash
> ./test_hash
./test_hash: relocation error: ./test_hash: symbol _ZNSt24__default_alloc_templateILb1ELi0EE12_S_force_newE, version GLIBCPP_3.2 not defined in file libstdc++.so.5 with link time reference
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
@ 2002-11-06 9:06 Loren James Rittle
0 siblings, 0 replies; 5+ messages in thread
From: Loren James Rittle @ 2002-11-06 9:06 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/8475; it has been noted by GNATS.
From: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
To: bkoz@gcc.gnu.org, fdumas@ina.fr, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, ljrittle@gcc.gnu.org
Cc: paolo@gcc.gnu.org
Subject: Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
Date: Wed, 6 Nov 2002 10:56:22 -0600 (CST)
>Maybe 'make install' of gcc could set a default dynamic link library
>path to its install. path?
Just to give you a final response. The position of the FSF gcc
mainatiners is to not do this for a wide range of reasons. However,
I'm going to have to ask you to review the manual and past list traffic.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
@ 2002-11-06 8:16 Frederic Dumas
0 siblings, 0 replies; 5+ messages in thread
From: Frederic Dumas @ 2002-11-06 8:16 UTC (permalink / raw)
To: bkoz; +Cc: gcc-prs
The following reply was made to PR libstdc++/8475; it has been noted by GNATS.
From: Frederic Dumas <fdumas@ina.fr>
To: ljrittle@gcc.gnu.org, bkoz@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
gcc-prs@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc: paolo@gcc.gnu.org
Subject: Re: libstdc++/8475: hash_map error message at run time about
__default_alloc_template/force_new not defined
Date: Wed, 06 Nov 2002 17:01:41 +0100
ljrittle@gcc.gnu.org wrote:
>
> Synopsis: hash_map error message at run time about __default_alloc_template/force_new not defined
>
> State-Changed-From-To: analyzed->closed
> State-Changed-By: ljrittle
> State-Changed-When: Wed Nov 6 06:17:38 2002
> State-Changed-Why:
> Not a bug. Please ensure that you have built and then
> run against the same library. I can "reproduce" your
> PR if I compile and link your example against
> g++ 3.3 but then attempt to run-time link against the
> 3.2.1 version of libstdc++-v3. This can happen if, e.g.
> you installed 3.2.1 in /usr/local but 3.3 somewhere else.
>
> If the above doesn't cover your situation, then:
> Benjamin installed a patch to properly export
> __default_alloc_template::_S_force_new on 2002-11-04
> which was before the date of your snapshot.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8475
That was it, thanks. An earlier libstdc++ was in /usr/lib whereas the
correct one was in /usr/local/lib. I set LD_LIBRARY_PATH to
/usr/local/lib and it works fine now (with the last mainline/branch that
I installed meanwhile).
Maybe 'make install' of gcc could set a default dynamic link library
path to its install. path?
Best regards,
Frederic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
@ 2002-11-06 6:17 ljrittle
0 siblings, 0 replies; 5+ messages in thread
From: ljrittle @ 2002-11-06 6:17 UTC (permalink / raw)
To: bkoz, fdumas, gcc-bugs, gcc-prs
Synopsis: hash_map error message at run time about __default_alloc_template/force_new not defined
State-Changed-From-To: analyzed->closed
State-Changed-By: ljrittle
State-Changed-When: Wed Nov 6 06:17:38 2002
State-Changed-Why:
Not a bug. Please ensure that you have built and then
run against the same library. I can "reproduce" your
PR if I compile and link your example against
g++ 3.3 but then attempt to run-time link against the
3.2.1 version of libstdc++-v3. This can happen if, e.g.
you installed 3.2.1 in /usr/local but 3.3 somewhere else.
If the above doesn't cover your situation, then:
Benjamin installed a patch to properly export
__default_alloc_template::_S_force_new on 2002-11-04
which was before the date of your snapshot.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8475
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined
@ 2002-11-06 4:51 paolo
0 siblings, 0 replies; 5+ messages in thread
From: paolo @ 2002-11-06 4:51 UTC (permalink / raw)
To: bkoz, fdumas, gcc-bugs, gcc-prs, nobody
Synopsis: hash_map error message at run time about __default_alloc_template/force_new not defined
Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: paolo
Responsible-Changed-When: Wed Nov 6 04:51:49 2002
Responsible-Changed-Why:
Linker wizard ;)
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Wed Nov 6 04:51:49 2002
State-Changed-Why:
Benjamin, I can't reproduce this with mainline/branch and
glibc2.3.1, binutils2.13.90.0.10.
Could you possibly have a look?
Thanks, Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8475
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-11-06 17:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 4:16 libstdc++/8475: hash_map error message at run time about __default_alloc_template/force_new not defined fdumas
2002-11-06 4:51 paolo
2002-11-06 6:17 ljrittle
2002-11-06 8:16 Frederic Dumas
2002-11-06 9:06 Loren James Rittle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).