>
> [22:06 peter@penguin:~]$ eroaster
> Traceback (most recent call last):
> File "/usr/bin/eroaster", line 9, in ?
> from main import Application
> File "/usr/lib/eroaster/main.py", line 38, in ?
> from gnome.ui import GnomeApp, GnomeFileEntry, GnomeErrorDialog,
> GnomeAbout
> File
> "/home/stefan/tmp/pygnome-1.4.0-root/usr/lib/python2.1/site-packages/gnome/ui.py",
> line 3, in ?
> ImportError: /usr/lib/libgdk_imlib.so.1: undefined symbol: png_set_sBIT
>
Ok worked out the problem.
png_create_read_struct is a part of libpng, so this means that when you
linked the program, you did not give it -lpng to link with the png library.
As a quick fix:
LD_PRELOAD="/usr/lib/libpng.so.$major" broken_program where $major
is the major number of the libpng you have installed on your box.
Just a quick ldd on libImlib.so.1, I see
libjpeg
libtiff
libungif
libpng
If your program isn't linked against those, it doesn't work.
Rebuilding the program and linking to the correct libraries seems to help.
> [22:07 peter@penguin:~]$ gtoaster
> gtoaster: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:12 peter@penguin:~]$ gnumeric
> gnumeric: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:51 peter@penguin:~]$ gnomecard
> GnomeUI-WARNING **: Could not open help topics file NULL
> ** WARNING **: Could not load the cardfile
> gnomecard: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:53 peter@penguin:~]$ gnomecal
> gnomecal: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:54 peter@penguin:~]$ gfontsel
> gfontsel: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:55 peter@penguin:~]$ gcolorsel
> gcolorsel: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
>
> [22:56 peter@penguin:~]$ gcalc
> gcalc: error while loading shared libraries: /usr/lib/libgdk_imlib.so.1:
> undefined symbol: png_create_read_struct
> --
> Linux Mandrake release 8.0 (Traktopel) for i586
> Linux 2.4.3-20mdk-p, KDE: 2.1.2, Qt: 2.3.0
> Uptime 1 hour 37 minutes
--
Geoffrey Lee <[EMAIL PROTECTED]>
李長風
http://www.wychk.org/~glee
$ /usr/games/fortune
Anything that can go wrong will go
Segmentation fault (core dumped)
$