Re: pfMalloc & ElectricFence

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++sgi.com)
Mon, 27 Dec 1999 09:20:07 -0500


I don't know anything about Electric Fence is it a DSO? If its a DSO you
can add it to your pfMakefile. If your using a standard pfMakefile's
this can be tricky -lmalloc is part of the SYSTEM_OPENGL macro already
which defines some of the libraries for linking in pfmakedefs. Now if
Electric Fence's library is called libmalloc.so then all you need to do
is add
-L <path_to_ElectricFences_lib_dir> to LDOPTS macro.

LDOPTS += -L <path_to_ElectricFences_lib_dir>

If you just want to do this for some debugging runs you can modify the
_RLD_LIST in the application at runtime.

`setenv _RLD_LIST /usr/lib32/lib_Electric_malloc.so:DEFAULT'

You will also need to set LD_LIBRARY_PATH if the Electric Fence libs are
not in the default library path. You can set this env var in any shell
window, don't forget to unset it when your done.

man on rld and ld to read more about this.

Javier Abadía Miranda wrote:
>
> Hello again:
>
> Do you know if there is any way to link Electric Fence malloc
> debugging library to pfApps ?
>
> Anything similar?
>
> Thank You.
>
> -------------------------------------------------------
> Javier Abadía Miranda jabadi++at++public.ibercaja.es
> Ingeniero en Informática jabadia++at++espelsa.es
> Especialista en Informática Gráfica

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) Graphics Guru Office:(301)572-3293 Fax: (301)572-3280 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision Silver Spring, Maryland 20904 Optimizer/React/PCI Device Drivers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 27 1999 - 06:44:39 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.