STL and Performer?
Jay Gischer (gischer++at++puget.engr.sgi.com)
Thu, 7 May 1998 09:55:34 -0700 (PDT)
Les Elkins writes:
> Hello,
>
> Are there any issues involved in using the Standard Template
> Library with Performer? I've spliced some code into Perfly
> that declares a pretty simple vector<int> x, but dies at
> runtime with the following unresolved symbols:
>
> 4248:perfly: rld: Error: unresolvable symbol in perfly:
> __node_allocator_lock__45__default_alloc_template__pt__13_XCiL11XCiL10
> 4248:perfly: rld: Error: unresolvable symbol in perfly:
> free_list__45__default_alloc_template__pt__13_XCiL11XCiL10
>
> This happens first thing at run time. The function containing
> the vector isn't yet called, the mere existance of the vector
> causes the problems. When I create a simple test program with
> a vector and compile using CC, things work fine. Is there some
> makefile/compiler voodo I need to change in the 'perfly' Makefile?
>
> I'm using the 'perfly' Makefile, running with C++ 7.1,
> IRIX 6.4 on an Octane, and looks to be Performer 2.1. I'm
> getting the same results compiling with PFSTYLE set to
> 32, N32, and 64.
>
> Any suggestions would be most appreciated...
>
What the message means is that certain symbols from STL didn't get
instantiated correctly during your build. My suspicion is that this
occurs because "cc" is used to link perfly instead of "CC". But
that's just a guess. It's also possible that you are running against
DSO's that are different than the ones you are linking against.
Here's how to tell:
Short version:
% printenv | grep LD_LIBRARY*_PATH
% printenv | grep RLD
Longer version:
% setenv _RLD_PATH /usr/lib/rld.debug
<or>
% setenv _RLDN32_PATH /usr/lib32/rld.debug
then
% setenv _RLD_ARGS -v
% perfly <args>
You will get a list of dso's loaded against perfly and then other
gunk printed to the tty.
------------------------------------------------------------------------
Jay L Gischer + "I see great things in baseball. It's our game.
Advanced Graphics + It will repair our losses and be a blessing to
Software + us."
Silicon Graphics + -Walt Whitman
(415) 390-4277 +
gischer++at++sgi.com + "A life has no meaning except in the impact it
+ has on other lives"
+ -Jackie Robinson
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:57:22 PDT