Marc Erich Latoschik (marcl++at++TechFak.Uni-Bielefeld.DE)
Tue, 05 Jan 1999 14:18:16 +0100
Late last year i wrote about the problem
with one of my performer apps that a
realloc(0) returned NULL
on a brand new Octane SI under 6.4
This was due to a malloc lib conflict. Using the SGI libmalloc
i got rid of the problem. But now it is back again...
And why? Even when i link libmalloc as last lib to my app,
the linkline shows that there is the libc and libC linked after that.
Not specified by me but by some weired combination of ld switches i
guess.
But there is no documentation how to apply my switches at the end nor
what
the ld switches add to the link line...
Do you have any ideas? (If i copy the linkline and add manually -lmalloc
everything is ok). Why is it working on oue older 6.2 based Indigo2's?
Shouldnt it allways use the SGI specific libmalloc? So many open
questions...
I hope u have a hint, more people than me shoul encounter that problem
if
my machine is not misconfigured...
Here is how my linkline looks like:
/usr/lib32/cmplrs/ld32 -call_shared -init _main -fini _fini
-no_unresolved -transitive_link -demangle -elf -_SYSTYPE_SVR4 -mips3
-n32 -g3 -woff1155,1355 -LANG:explicit=off -LANG:mutable=off
-LANG:namespace=off -LANG:typename=off -LANG:ansi-for-init-scope=on
-LANG:bool=off -LANG:exceptions=off -OPT:Olimit=0 -LANG:typename=on
-LANG:bool=on -LANG:namespace=on -LANG:exceptions=on -LANG:explicit=on
-woff85,3322,3201,1174,1681,1373,1401,1506 -L/vol/sgim/lib/n32
-L/vol/wbs/lib/n32 -show -L/usr/lib32/mips3/r10000 -L/usr/lib32/mips3
-L/usr/lib32 -cxx -woff 134 -nocount /usr/lib32/mips3/crt1.o -hides
/usr/lib32/mips3/dsmcrt.o /usr/lib32/c++init.o -count -o SGA_PerfView
streamdatasource.o SCA_ActiveViewer.o SG_Viewer.o windowdef.o view.o
pfview.o viewmanager.o pfsgimviewer.o animnode.o viewchannel.o
viewwindow.o pfscenemanager.o appstatemanager.o SGA_PerfView_Main.o
SGA_PerfView.o -ltools -lmsgsgim -lpfdu_ogl -lpfui -lpfutil_ogl -lfpe
-lX11 -lSM -lICE -lpf_ogl -limage -lGLU -lGL -lAgent -lCody -lBO
-lGeneralIO -lSpACE -lActiveX11Agent -lXt -lXext -lm -lpthread -lmalloc
-nocount -dont_warn_unused -lmp -lCsup -lC -Bdynamic -lc
/usr/lib32/mips3/crtn.o -warn_unused
If u add a -lmalloc its ok, but i allready included it in my makefile at
last statement (before -nocount, after -lpthread (what is critical
anyway))
--bye Marc
******************************************************************************** Marc Erich Latoschik, AG-WBS, Technische Fakultaet der Universitaet Bielefeld
Universitaetsstrasse 25 Postfach 100 131 33501 Bielefeld Raum M4-122 Fon: (0521) 106 2919 Fax: (0521) 106 2962
marcl++at++techfak.uni-bielefeld.de http://www.TechFak.Uni-Bielefeld.DE/techfak/persons/marcl/ ********************************************************************************
This archive was generated by hypermail 2.0b2 on Tue Jan 05 1999 - 05:19:13 PST