Re: glibc2.0-2.1 incompatibility: _xstat?
Marco d'Itri <md@linux.it> writes:
> >Is there a workaround, so that I can continue to use these libraries?
>
> Write a small shared library providing _xstat and preload it.
I wrote this to do that, unfortunely it wasn't enough for my program
(a program compiled with the Portland Groups' fortran compiler) but
maybe it is for others.
Usage is something like LD_PRELOAD=libxstat.so ./myoldlibcprogram.
;;; xstat.s
;;;
;;; cc -c xstat.s
;;; ld -shared -soname libxstat.so.0 -o libxstat.so xstat.o -lc
.text
.globl _xstat
.globl _lxstat
.globl _fxstat
.globl _xmknod
_xstat:
.weak _xstat
.weak __xstat
_lxstat:
.weak _lxstat
.weak __lxstat
_fxstat:
.weak _fxstat
.weak __fxstat
_xmknod:
.weak _xmknod
.weak __xmknod
Reply to: