From: Uffe Damgaard Pedersen (udp++at++it-c.dk)
Date: 06/15/2001 08:44:27
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
>
>
This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 08:43:56 PDT