Professional Web Applications Themes

Downgrading libc for a single program - Linux Setup, Configuration & Administration

A program I have recently installed on my glibc-2.2.5 system is throwing a few errors, and the solution offered by the technical support department was that I rollback my entire system to glibc-2.1.92, where the problem does not exist. I don't really like to do that, as the program will be only on my machine temporarily. Is there a way I can have only this program use 2.1? The c-lib is dynamically linked to the program under the name libc.6.so. Any help would be greatly appreciated. Maarten...

  1. #1

    Default Downgrading libc for a single program

    A program I have recently installed on my glibc-2.2.5 system is throwing a
    few errors, and the solution offered by the technical support department was
    that I rollback my entire system to glibc-2.1.92, where the problem does not
    exist. I don't really like to do that, as the program will be only on my
    machine temporarily. Is there a way I can have only this program use 2.1?
    The c-lib is dynamically linked to the program under the name libc.6.so.
    Any help would be greatly appreciated.



    Maarten
    Maarten D. de Jong Guest

  2. #2

    Default Re: Downgrading libc for a single program

    On Thu, 03 Jul 2003 08:48:53 +0200, Lee Sau Dan wrote:
    >>>>>> "Dave" == Dave Uhring <daveuhring> writes:
    >
    > >> A program I have recently installed on my glibc-2.2.5 system is
    > >> throwing a few errors, and the solution offered by the
    > >> technical support department was that I rollback my entire
    > >> system to glibc-2.1.92, where the problem does not exist. I
    > >> don't really like to do that, as the program will be only on my
    > >> machine temporarily. Is there a way I can have only this
    > >> program use 2.1? The c-lib is dynamically linked to the
    > >> program under the name libc.6.so. Any help would be greatly
    > >> appreciated.
    >
    > Dave> Write a wrapper script which execs the program after
    > Dave> exporting LD_PRELOAD.
    >
    > Which is better? LD_PRELOAD or LD_LIBRARY_PATH?
    LD_LIBRARY_PATH directs ld.so to library directories in the order listed.
    This is a potential solution but requires a separate directory.

    LD_PRELOAD can be used to pre-select a particular shared object in
    preference to the one in the normal search path.



    Dave Uhring Guest

  3. #3

    Default Re: Downgrading libc for a single program

    On Fri, 04 Jul 2003 00:52:19 +0000, Nico Kadel-Garcia wrote:
    > Dave Uhring wrote:
    >> LD_PRELOAD can be used to pre-select a particular shared object in
    >> preference to the one in the normal search path.
    >
    > Can you rebuild the software with a "-L" option pointed to the
    > repository of an old glibc? Or instead of running the binaries directly,
    > run them from a shell script that sets LD_LIBRARY_PATH (an old and very,
    > very venerable solution!)
    Perhaps the binary app which the OP wishes to run does not have available
    source ;-)

    If it did then not only the -L argument would be required but also the -R
    or -rpath for an ELF binary.

    Yet, if LD_PRELOAD is set in the environment, the particular library calls
    will be intercepted by the lib thus specified. Quite useful for cracking
    some license requirements ;-)

    Dave Uhring Guest

Similar Threads

  1. Downgrading from 9 to 8
    By maumaumi?s in forum Macromedia Flash Player
    Replies: 0
    Last Post: November 9th, 10:28 AM
  2. Replies: 0
    Last Post: February 23rd, 09:45 AM
  3. Replies: 1
    Last Post: August 19th, 06:04 PM
  4. downgrading from testing to woody
    By Nyc0n in forum Debian
    Replies: 3
    Last Post: August 5th, 11:10 PM
  5. avr-gcc/avr-libc
    By thomas.gies@web.de in forum Debian
    Replies: 0
    Last Post: July 1st, 05:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139