From: Tom Flynn (flynnt++at++engr.sgi.com)
Date: 05/31/2001 15:45:58
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."
This archive was generated by hypermail 2b29 : Thu May 31 2001 - 15:46:23 PDT