FC6 - accidentally touched libpng, cairo complaining - how to fix?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FC6 - accidentally touched libpng, cairo complaining - how to fix?
Hi all
I seemed to have accidentally touched / replaced libpng on my FC6 system. Now I get these errors when using several apps - eject and emacs serve as examples:
emacs: /usr/local/lib/libpng12.so.0: no version information available (required by emacs)
[root@StefanLinux ~]# eject
eject: /usr/local/lib/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
Also, it is suddenly impossible to compile any GTK application on my newly-installed FC6 box. Here is the failure in compile for gftp:
aking all in gtk
make[3]: Entering directory `/home/rylan/gftp-2.0.18/src/gtk'
gcc -O3 -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -funroll-loops -funroll-all-loops -fforce-addr -finline-functions -frerun-loop-opt -falign-loops=4 -falign-jumps=4 -falign-functions=4 -march=i686 -mmmx -msse2 -o gftp-gtk bookmarks.o chmod_dialog.o delete_dialog.o dnd.o gftp-gtk.o gtkui.o gtkui_transfer.o menu-items.o misc-gtk.o options_dialog.o transfer.o view_dialog.o ../../lib/libgftp.a ../../lib/fsplib/libfsp.a ../uicommon/libgftpui.a -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpthread -lutil -lnsl -lm -lgthread-2.0 -lcrypto -lssl
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_destroy_read_struct@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_write_fn@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_filler@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_read_update_info@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_tRNS_to_alpha@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_create_info_struct@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_get_valid@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_bKGD@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_read_image@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_get_io_ptr@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_write_end@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_gray_1_2_4_to_8@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_write_image@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_packing@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_strip_16@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_palette_to_rgb@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_read_info@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_write_info@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_interlace_handling@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_error@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_write_user_transform_fn@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_convert_from_time_t@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_read_fn@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_get_IHDR@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_read_end@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_IHDR@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_read_user_transform_fn@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_destroy_write_struct@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_create_write_struct@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_create_read_struct@PNG12_0'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libcairo.so: undefined reference to `png_set_tIME@PNG12_0'
collect2: ld returned 1 exit status
make[3]: *** [gftp-gtk] Error 1
make[3]: Leaving directory `/home/rylan/gftp-2.0.18/src/gtk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/rylan/gftp-2.0.18/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rylan/gftp-2.0.18'
make: *** [all] Error 2
[rylan@StefanLinux gftp-2.0.18]$
How the do I fix this so I can compile GTK apps again? And that almost all executable stop complaing about "missing version information" for libpng?
I have disabled SELinux in /etc and also removed kernel level support for it. I'm running a custom compiled 2.6.18.1 kernel. GTK apps compiled fine under this new kernel before "something" happened to its libpng, that now seems to have broken heaps of stuff...
I put the above into a cronjob that runs every minute.
Reason: If I compile any GTK application, this error re-appears. Something, somwhere seems to re-create the symlink over and over, so I created a cronjob that keeps on deleting the symlink.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.