libraries and versions

  • I have installed amd64 linux version 1.7. However, in order to get the programs (such as pregap4) to run I had to fiddle with libraries. The precompiled staden version needs,, and while I have newer versions of these libraries.

    I did what should not be done (in /usr/lib64):

    ln -s
    ln -s
    ln -s

    These links may well break down later. Given that these dynamic links are there, would it be possible to actually use etc, instead of specific version?

    /Torsten Eriksson

    • Again: it turns out to be a much bigger problem. Since I had a newer version of gcc than the one apparenly used for compiling, the library was missing. A kludge fixed that after installing GCC 3.4, but the precompiled binaries craved (and I had

      When the kludge that fixed that last probelm didn't work out. I kind of gave up (output below).

      It seems that I will need to compile a version from scratch. Something which I have already horribly failed...


      load => couldn't load file "": /usr/lib64/ version `CXXABI_1.2' not found (required by /usr/local/src/staden-linux-x86_64-1-7-1b/linux-x86_64-bin/../lib/linux-x86_64-binaries/
      load => couldn't load file "": /usr/lib64/ version `CXXABI_1.2' not found (required by /usr/local/src/staden-linux-x86_64-1-7-1b/linux-x86_64-bin/../lib/linux-x86_64-binaries/
      invalid command name "load_alignment_matrix"
          while executing
      "load_alignment_matrix       [keylget gap_defs ALIGNMENT.MATRIX_FILE]"
          (file "/usr/local/src/staden-linux-x86_64-1-7-1b/linux-x86_64-bin/../lib/gap/gap.tcl" line 683)

    • James Bonfield
      James Bonfield

      Library versions is rapidly turning into hell in linux distributions. Why for example when I just use Ansi C should I care about some internal GNU minor change between glibc 2.1.3 and 2.1.4 (for example), yet the code automatically ends up with version specific dependencies.

      The worst offender for this is libcurl, which is optionally used in io_lib - part of the trace reading code to allow fetching of trace files from remote services rather than just local files on disk. The "curl-config --libs" command is meant to tell me which libraries I need to link against when using libcurl. However  it gives me radically inappropriate results leading to binaries tied to the platform I built them on. Eg:

      debian-3.0:~> curl-config --libs
      -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz

      debian-4.0:~> curl-config --libs
      -L/usr/lib -lcurl -L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lresolv -lidn -lssl -lcrypto -ldl -lssl -lcrypto -lz

      Actually all I need is "-lcurl" and it just works as itself has the chain of dependencies in it rather than explicitly passing these dependencies up to the application linking against curl.  Similar things happen elsewhere too. Hardly suprisingly this makes supporting binary built distributions problematic unless we just statically link everything.

      What I really need to do, but never seem to find the time for, is to break the package into smaller components that are easier to build. Not necessarily full auto-conf world (as I hate libtool with a passion, but I need dynamic linking still), but something easier to build. Right now it's a bit of a nightmare - sorry!