[Fwd: Info-Performer Mailing List Archives: RE: Re: glibc2.2 and Perf]

New Message Reply Date view Thread view Subject view Author view

From: Brian Furtaw (brian++at++sgi.com)
Date: 07/17/2001 06:25:18


Christopher,

I just fought with this one last week here is the result of a search I
did in the Performer archives.

Brian

-------- Original Message --------
Subject: Info-Performer Mailing List Archives: RE: Re: glibc2.2 and Perf
Date: Fri, 13 Jul 2001 08:28:43 -0400
From: Brian Furtaw <brian++at++sgi.com>
To: "Steffen, Keith" <keith.steffen++at++lmco.com>, brian++at++sgi.com

http://reality.sgi.com/performer/perf-01-06/0092.html

Keith above is a link to the fix you described yesterday figured it
would be a good reference.

Brian

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

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

Info-Performer Mailing List Archives: RE: Re: glibc2.2 and Perf

RE: Re: glibc2.2 and Performer

New Message Reply Date view Thread view Subject view Author view

From: Robert Nitti (rnitti++at++CAE.COM)
Date: 06/18/2001 04:26:06


Hi Uffe,

Here is a copy of a mail sent to me on how to solve the problem.... Just
cut and paste the code and Makefile and it should work right away. The
alternative is use Performer 2.3. You don't get the same problem.

Thanx
Robert

------

Maybe that helps ? :-)

---------- Forwarded message ----------
Date: Wed, 16 May 2001 15:35:58 -0400
From: root <pavel.frolov++at++gmd.de>
To: info-performer++at++sgi.com
Subject: simple solution linux glibc >2.2 problem

I have written a small library.
And you must load libpfstat.so before start your app using libpf.so in
the following
way, for example:

export LD_PRELOAD=/path/to/libpfstat.so

Here is source files.
-- begining of pfstat.c

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

int stat (const char *file, struct stat *buf)
{
  return __xstat(_STAT_VER,file,buf);
}

-- end of pfstat.c
-- begin of Makefile

SHCC= ${CC} -fPIC
MINOR= 1
MAJOR= 0
LIB_NAME= libpfstat
SHLIB= ${LIB_NAME}.so.${MAJOR}.${MINOR}
TARGETS= ${SHLIB}

OBJS= pfstat.o

all: ${TARGETS}

${TARGETS}: ${OBJS}
 ${SHCC} ${CFLAGS} -nostdlib -shared -o ${SHLIB} -Wl,--soname
-Wl,${LIB_NAME}.so.${MAJOR} ${OBJS}
 ln -sf ${SHLIB} ${LIB_NAME}.so

clean:
       -rm -f *.so *.so.* *.o *~ ${TARGETS}

-- end of Makefile

                           Best regards, Pavel.

-----------------------------------------------------------------------
 List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
             Submissions: info-performer++at++sgi.com
         Admin. requests: info-performer-request++at++sgi.com

> -----Original Message-----
> From: Uffe Damgaard Pedersen [mailto:udp++at++it-c.dk]
> Sent: Friday, June 15, 2001 11:44 AM
> To: info-performer++at++sgi.com
> Subject: Re: Re: glibc2.2 and Performer
>
>
> Hi all,
>
> I'm new to Performer and Linux. I have tried to follow the
> work-around but
> unsuccesfully. How do I create the library libpfstat.so ?
> Could someone
> explain the work-around in more details.
>
> Thanks,
>
> Uffe Pedersen
> Denmark
>
>
>
> Tom Flynn <flynnt++at++engr.sgi.com> said:
>
> > On Thu, 31 May 2001, Robert Nitti wrote:
> >
> > > hi all,
> > >
> > > This is with regard to the problem of using Performer 2.4
> with glibc2.2.
> > > Has anyone found a work-around to this problem without
> having to downgrade
> > > to glibc2.1?
> >
> > Someone posted a work-around last week. Here's a copy of it:
> >
> > --
> > I have written a small library.
> > And you must load libpfstat.so before start your app using
> libpf.so in
> > the following
> > way, for example:
> >
> > export LD_PRELOAD=/path/to/libpfstat.so
> >
> > Here is source files.
> > -- begining of pfstat.c
> >
> > #include <sys/types.h>
> > #include <sys/stat.h>
> > #include <unistd.h>
> >
> > int stat (const char *file, struct stat *buf)
> > {
> > return __xstat(_STAT_VER,file,buf);
> > }
> >
> > -- end of pfstat.c
> > -- begin of Makefile
> >
> > SHCC= ${CC} -fPIC
> > MINOR= 1
> > MAJOR= 0
> > LIB_NAME= libpfstat
> > SHLIB= ${LIB_NAME}.so.${MAJOR}.${MINOR}
> > TARGETS= ${SHLIB}
> >
> > OBJS= pfstat.o
> >
> > all: ${TARGETS}
> >
> > ${TARGETS}: ${OBJS}
> > ${SHCC} ${CFLAGS} -nostdlib -shared -o ${SHLIB} -Wl,--soname
> > -Wl,${LIB_NAME}.so.${MAJOR} ${OBJS}
> > ln -sf ${SHLIB} ${LIB_NAME}.so
> >
> > clean:
> > -rm -f *.so *.so.* *.o *~ ${TARGETS}
> >
> > -- end of Makefile
> >
> > Best regards, Pavel.
> >
> > --
> > -tom
> >
> > --
> > "Mongooses are famous for their snake-fighting ability, and are
> > almost always victorious because of their speed, agility,
> and timing
> > and also because of their thick coat."
> >
> >
> --------------------------------------------------------------
> ---------
> > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> >
> >
>
> --------------------------------------------------------------
> ---------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 18 2001 - 04:19:39 PDT


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jul 17 2001 - 06:36:46 PDT

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