[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: installing glibc 2.1.x and 2.2.x in parallel?



On Fri, Jul 06, 2001 at 07:10:16PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> Due to a broken 3rd party library I am bound to the glibc 2.1.x
> runtime libs. My build machine is running RedHat 6.2, but of course
> I want to make sure that my executable work on Woody, too.
> 
> Is there a way to install glibc 2.1.x and 2.2.x in parallel, as it 
> has been done for the different versions of libstdc++.so.* ?
> 
> I tried to install the glibc 2.1.x libs in a seperate subdir
> and modify $LD_LIBRARY_PATH accordingly, but this failed due
> to /lib/ld-linux.so.2 relying upon glibc 2.2.x. Next step was
> to preload the 2.1.x version of ld-linux.so.2 using $LD_PRELOAD.
> The result was a core dump of the executable.

Use LD_LIBRARY_PATH, and instead of running ./executable, run
/foo/lib/ld-2.1.3.so ./executable.  I hope you don't want that program
to exec() anything else, though.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: