Find the answer to your Linux question:
Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By hazel
This is a follow-up to a previous thread. I have now tried approaching the problem from a different angle so I know more clearly where it lies. Problem: I have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,208

    [Solved] Continuing problem with gdk-pixbuf


    This is a follow-up to a previous thread. I have now tried approaching the problem from a different angle so I know more clearly where it lies.

    Problem: I have a program that runs correctly when linked at run-time against gdk_pixbuf-2.22.1, but fails to load icons with gdk_pixbuf-2.23.3. I can say this with confidence because I now have the older version in /opt/lib (the newer one is in /usr/lib) and can link to it by setting LD_LIBRARY_PATH to /opt/lib.

    If I copy libgdk_pixbuf.so.0.2300.3 into /opt/lib and change the soname link to point to it, the error resurfaces, so it definitely is the libgdk_pixbuf file that is at fault here. It is not libgdk_pixbuf_xlib or the png pixbuf loader. Temporarily replacing either of those by the newer version does not cause the error.

    The strange thing is that standard gtk-based apps like geany and the Gimp are not affected; they display their icons normally.

    Although the LD_LIBRARY_PATH trick gives me a simple work-around for the problem, I would still like to know what causes it. How would I go about finding out? There's no simple way of getting relevant source code because the current downloadable versions of this package are 2.24.1 and 2.25.2

    [edit]What a silly little woman I am! Of course I can get source. I already have the source code of 2.22.1 because it's part of Crux. And I should be able to get 2.23.3 from the Slackware repository because that's where I got the binary from. Time for some serious diffing!
    Last edited by hazel; 02-26-2012 at 04:57 PM.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,208
    It's Slackware-specific! I found only 7 files that were different between 2.22 and 2.23 in the actual code, not just in comments, and tested them all by building hybrid packages. All of them came out clean. There's nothing wrong with the vanilla gdk-pixbuf-2.23.3 code.

    So I built 2.23 by hand, using configure, make and make install rather the Slackbuild script (which patches the Makefile at one point) and installed that in /opt. My program picked up all its icons when linked against this and none of them when linked against the Slackware version of 2.23 in /usr/lib.
    Dapper Dan likes this.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

Posting Permissions

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