LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 12-23-2006, 04:54 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
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...

How do I fix this?

Thanks!
 
Old 12-23-2006, 05:20 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Original Poster
Rep: Reputation: 87
Issue FIXED

Hi again guys

I fixed this by doing the following.

In /usr/local/lib I found that

libpng.so
libpng.so.0

were symlinks to

libpng12.so.0.1.2.8

I changed these two symlinks to link to

libpng.so.3.1.2.8

which was also in my /usr/local/lib.

This stopped the error messages with eject and emacs, and now GTK apps compile 100% again!

Regards,
 
Old 12-31-2006, 03:59 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Original Poster
Rep: Reputation: 87
Further note

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.

Everything is fine now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix severe DNS latency on FC6 rylan76 Linux - Networking 1 12-23-2006 04:49 AM
I really hope they fix soundcard stuff in FC6...(RANT) ExoZagNoid Fedora 7 10-29-2006 09:33 PM
error while loading shared libraries: libpng.so.2: [I reinstalled libPNG!] Shioni Linux - Software 1 09-09-2006 07:21 PM
libpng and libpng-devel missing in mplayer configure mmarkvillanueva Linux - Software 2 11-29-2005 10:40 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-05-2004 11:24 PM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration