LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2007, 12:27 PM   #1
zakatua
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
libpng: png icons and images are not displayed anymore


Hi, first of all excuse for my poor english and sorry if this in not the right forum and sorry if I don't know how to explain myself, but I'll try to give more information as possible.

Well, I have a problem and I've been looking for a solution with no sucess, and I've been searching and reading for hours and hours (believe me, I have only slept 3 hours today), so this is maybe my last chance...

PROBLEM

Ok, this is the problem: I can't see png images and this include all system icons, wallpapers and even the KDE splash. But almost everything else is ok, I can click icons provided that I know where they are (because as I said, I can't currently see them!) and all applications will run (but, again, showing no icons at all). Just imagine an average KDE desktop with fully transparent icons... Weird.

I know this affects only png files because I installed a sgv icon theme (it is called Mono, downloaded form kde-look.org) just for testing and I can see the new icons. BTW they are really nice black & white icons BUT, and this is why I said 'almost everything else is ok', Konqueror file browser will crash... So the problem is something more important than just some icons not showing up...

THIS IS WHAT I DID:

I'm using Suse 9.3 (64bits) with KDE 3.4 with no problems at all.

I recently installed Apache 2, MySQL 5, PHP 5 and phpMyAdmin -in that order- from source (configure, make, make install, all of them in /usr/local except for phpMyAdmin that I installed in my public_html folder), and I just had one error: trying to install PHP with GD support (PHP's bundled GD) configure couldn't find libpng -libpng.(a|so) not found- BUT I had libpng installed from YAST (libpng and libpng-devel too).

It was very weird because I had libpng (and any other required library like libjpeg, zlib and even dev packages like zlib-devel and so on, all of them installed from YAST). I read lots of bugs and discussions at php.net and many other sites saddly with no working solution for my problem...

The libpng version installed by YAST is 1.2.8-3 (both 1.2.8-3 i586 and both 1.2.8-3 x86_64) both at /usr/lib and /usr/lib64 and when configuring PHP I used this option (among many others): --with-png-dir=/usr/lib64 (also tried with /usr/lib /usr/include, etc.)

OK, I tried this and many other options with the same result: libpng.(a|so) not found. So I finally decided to install libpng from scratch. I downloaded libpng-1.2.16 from libpng.org and installed it (configure, make, make install) in /usr/local. Them I configured PHP wiht the option --with-png-dir=/usr/local and everything went fine and PHP with GD supoort was installed. I installed and configured phpMyAdmind after that and I was done with my LAMP system: Apache is working, MySQL is working, PHP is working and with GD support, and phpMyAdmin is working. Nice.

IT'S ALL ABOUT LIBPNG

But then, when I started my computer today I found that all the icons had disappeared from the desktop (including panels) and all applications except a few of them like Firefox. Even the wallpaper is gone... But as I said it only affects to png files (I can see jpeg wallpapers or svg icons) so I'm pretty sure this has to see with my libpng installation...

I don't really care about icons, and can live with the Mono theme if needed, BUT Konqueror is also failing and who knows what more will fail...

I guess something is asking for the wrong libpng library or something is looking for the library in the wrong place but... I'm not sure and I don't know how to slve this...

Why do I guess it's libpng what is causing the problem?

- Well, first because this happens since I installed libpng from source.
- Second, it only affects to png files.
- Third, because of this (what I get when Konqueror crash, lots of png references, but saddly I don't know what they mean):

Code:
[KCrash handler]
#3  0x00002aaaae5cd855 in free () from /lib64/tls/libc.so.6
#4  0x00002aaaad69b1b8 in png_free_default (png_ptr=<value optimized out>, 
    ptr=<value optimized out>) at pngmem.c:525
#5  0x00002aaaad69b1f5 in png_free (png_ptr=<value optimized out>, 
    ptr=<value optimized out>) at pngmem.c:509
#6  0x00002aaaad6875c5 in png_set_text_2 (png_ptr=0xa0e0f0, info_ptr=0x98ef90, 
    text_ptr=0xb2b730, num_text=5) at pngset.c:761
#7  0x00002aaaad687aa9 in png_set_text (png_ptr=0xa0e0f0, 
    info_ptr=<value optimized out>, text_ptr=<value optimized out>, 
    num_text=<value optimized out>) at pngset.c:722
#8  0x00002aaaac8adae9 in QPNGFormat::QPNGFormat ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#9  0x00002aaaac8ade55 in QPNGImageWriter::writeImage ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#10 0x00002aaaac8ae333 in QPNGImageWriter::writeImage ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#11 0x00002aaaac64db38 in QImageIO::write ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#12 0x00002aaaac650eac in QImage::doImageIO ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002aaaac651e85 in QImage::save () from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002aaaaaf6dcbf in KIO::PreviewJob::slotThumbData ()
   from /opt/kde3/lib64/libkio.so.4
#15 0x00002aaaaaf6f732 in KIO::PreviewJob::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#16 0x00002aaaac6793f9 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#17 0x00002aaaaaecda88 in KIO::TransferJob::data ()
   from /opt/kde3/lib64/libkio.so.4
#18 0x00002aaaaaecdcfe in KIO::TransferJob::slotData ()
   from /opt/kde3/lib64/libkio.so.4
#19 0x00002aaaaaef988d in KIO::TransferJob::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#20 0x00002aaaac6793f9 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00002aaaaaece0c2 in KIO::SlaveInterface::data ()
   from /opt/kde3/lib64/libkio.so.4
#22 0x00002aaaaaee2d62 in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#23 0x00002aaaaaed2a7b in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#24 0x00002aaaaaec32ba in KIO::Slave::gotInput ()
   from /opt/kde3/lib64/libkio.so.4
#25 0x00002aaaaaee5968 in KIO::Slave::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#26 0x00002aaaac6793f9 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002aaaac679963 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x00002aaaac955aa5 in QSocketNotifier::activated ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#29 0x00002aaaac6943db in QSocketNotifier::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#30 0x00002aaaac620ded in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#31 0x00002aaaac6228ae in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#32 0x00002aaaaba8b36c in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#33 0x00002aaaac6166bd in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#34 0x00002aaaac5d8d75 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#35 0x00002aaaac636641 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#36 0x00002aaaac6364b2 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#37 0x00002aaaac6227c5 in QApplication::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#38 0x00002aaaaedcecfa in kdemain ()
   from /opt/kde3/lib64/libkdeinit_konqueror.so
#39 0x00002aaaaebea8e9 in kdeinitmain () from /opt/kde3/lib64/kde3/konqueror.so
#40 0x0000000000407aa9 in ?? ()
#41 0x0000000000408202 in ?? ()
#42 0x00000000004086fa in ?? ()
#43 0x0000000000408ea1 in ?? ()
#44 0x00002aaaae58154a in __libc_start_main () from /lib64/tls/libc.so.6
OK, that's all I can figure out right now. If someone can help me I'd really, really appreciate it. If some important info is missing, I'll try to post it. I just don't know what to do.

Thanks in advance. And specially thank you so much if you bothered to read all this...

Best regards.
 
Old 04-17-2007, 12:49 PM   #2
zakatua
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, just to add more info in case it could help...

- I tried unistalling the libpng I installed from source (make clean, make unistall) but nothing changed.

- I tried uninstalling the libpng that YAST installed but I can't remove it because it's needed by a lot of applications (too much dependecies, should I ignore them? I don't think so...).

More...

This is what I actually have in my /usr/lib64 directory:

Code:
lrwxrwxrwx   1 root root       10 Apr 17 17:26 libpng.a -> libpng12.a
lrwxrwxrwx   1 root root       11 Apr 17 17:26 libpng.so -> libpng.so.3
lrwxrwxrwx   1 root root       17 Apr 17 17:26 libpng.so.3 -> libpng.so.3.1.2.8
-rwxr-xr-x   1 root root   182648 Mar 19  2005 libpng.so.3.1.2.8
-rw-r--r--   1 root root   307756 Mar 19  2005 libpng12.a
lrwxrwxrwx   1 root root       13 Apr 17 17:26 libpng12.so -> libpng12.so.0
lrwxrwxrwx   1 root root       19 Apr 17 17:26 libpng12.so.0 -> libpng12.so.0.1.2.8
-rwxr-xr-x   1 root root   182648 Mar 19  2005 libpng12.so.0.1.2.8
The theme I'm using, keramik, seems to be looking for libpng in /usr/local/lib...

This is what I get with ldd /opt/kde3/lib64/kde3/plugins/styles/keramik.so

Code:
        libkdefx.so.4 => /opt/kde3/lib64/libkdefx.so.4 (0x00002aaaaac07000)
        libqt-mt.so.3 => /usr/lib/qt3/lib64/libqt-mt.so.3 (0x00002aaaaad35000)
        libXi.so.6 => /usr/X11R6/lib64/libXi.so.6 (0x00002aaaab664000)
        libXrandr.so.2 => /usr/X11R6/lib64/libXrandr.so.2 (0x00002aaaab76d000)
        libXcursor.so.1 => /usr/X11R6/lib64/libXcursor.so.1 (0x00002aaaab870000)
        libXinerama.so.1 => /usr/X11R6/lib64/libXinerama.so.1 (0x00002aaaab97a000)
        libXft.so.2 => /usr/X11R6/lib64/libXft.so.2 (0x00002aaaaba7d000)
        libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aaaabb91000)
        libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaabccf000)
        libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaabe5f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaabf82000)
        libpng.so.3 => /usr/local/lib/libpng.so.3 (0x00002aaaac085000)
        libz.so.1 => /lib64/libz.so.1 (0x00002aaaac1ad000)
        libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac2c0000)
        libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaac3d1000)
        libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x00002aaaac5e1000)
        libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x00002aaaac6eb000)
        libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x00002aaaac806000)
        libXrender.so.1 => /usr/X11R6/lib64/libXrender.so.1 (0x00002aaaac91c000)
        libstdc++.so.5 => /usr/lib64/libstdc++.so.5 (0x00002aaaaca25000)
        libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaacc01000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaacd59000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaacf7f000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555555000)
It seems to me that the libpng I installed (libpng-1.2.16) installed all this in /usr/local/lib (I think it was empty before):

Code:
drwxr-xr-x   3 root root    400 Apr 17 16:43 .
drwxr-xr-x  19 root root    656 Apr 17 03:59 ..
lrwxrwxrwx   1 root root     10 Apr 17 16:43 libpng.a -> libpng12.a
lrwxrwxrwx   1 root root     11 Apr 17 16:43 libpng.la -> libpng12.la
lrwxrwxrwx   1 root root     11 Apr 17 16:43 libpng.so -> libpng12.so
lrwxrwxrwx   1 root root     16 Apr 17 16:43 libpng.so.3 -> libpng.so.3.16.0
-rwxr-xr-x   1 root root 557590 Apr 17 16:43 libpng.so.3.16.0
-rw-r--r--   1 root root 974776 Apr 17 16:43 libpng12.a
-rwxr-xr-x   1 root root    810 Apr 17 16:43 libpng12.la
lrwxrwxrwx   1 root root     18 Apr 17 16:43 libpng12.so -> libpng12.so.0.16.0
lrwxrwxrwx   1 root root     18 Apr 17 16:43 libpng12.so.0 -> libpng12.so.0.16.0
-rwxr-xr-x   1 root root 542046 Apr 17 16:43 libpng12.so.0.16.0
drwxr-xr-x   2 root root    112 Apr 17 16:43 pkgconfig
Ok, I don't really know what this all means, but I hope it can help someone to, well, help me...

More...

This is what I get with rpm -qi libpng:

Code:
Name        : libpng                       Relocations: (not relocatable)
Version     : 1.2.8                             Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release     : 3                             Build Date: Sat Mar 19 21:30:33 2005
Install date: Tue Apr 17 17:26:38 2007      Build Host: d158.suse.de
Group       : System/Libraries              Source RPM: libpng-1.2.8-3.src.rpm
Size        : 595981                           License: zlib/libpng License
Signature   : DSA/SHA1, Sat Mar 19 21:55:22 2005, Key ID a84edae89c800aca
Packager    : http://www.suse.de/feedback
URL         : http://www.libpng.org/pub/png/libpng.html
Summary     : Library for the Portable Network Graphics Format
Description :
libpng is the official PNG reference library.



Authors:
--------
    Andreas Dilger <adilger@enel.ucalgary.ca>
Distribution: SuSE Linux 9.3 (x86-64)
And this with rpm --test -e libpng:

Code:
error: Failed dependencies:
        libpng.so.3()(64bit) is needed by (installed) imlib-1.9.14-195
        libpng.so.3()(64bit) is needed by (installed) WindowMaker-applets-1.0-654
        libpng.so.3()(64bit) is needed by (installed) rrdtool-1.0.49-3
        libpng.so.3()(64bit) is needed by (installed) taskjuggler-2.1-7
        libpng.so.3()(64bit) is needed by (installed) thinkeramik-style-3.2.1-7
        libpng.so.3()(64bit) is needed by (installed) xorg-x11-6.8.2-30
        libpng.so.3()(64bit) is needed by (installed) DirectFB-0.9.21-4
        libpng.so.3()(64bit) is needed by (installed) SDL_image-1.2.3-225
        libpng.so.3()(64bit) is needed by (installed) fvwm2-2.5.10-5
        libpng.so.3()(64bit) is needed by (installed) SDL_perl-1.20.0-356
        libpng.so.3()(64bit) is needed by (installed) enigma-0.90-4
        libpng.so.3()(64bit) is needed by (installed) gtk-qt-engine-0.6cvs20050229-4
        libpng.so.3()(64bit) is needed by (installed) kdeaddons3-kicker-3.4.0-6
        libpng.so.3()(64bit) is needed by (installed) kdeartwork3-xscreensaver-3.4.0-6
        libpng.so.3()(64bit) is needed by (installed) kdebase3-samba-3.4.0-28
        libpng.so.3()(64bit) is needed by (installed) kdebindings3-python-3.4.0-6
        libpng.so.3()(64bit) is needed by (installed) kdegames3-3.4.0-8
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-kamera-3.4.0-11
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-postscript-3.4.0-11
        libpng.so.3()(64bit) is needed by (installed) kdemultimedia3-CD-3.4.0-14
        libpng.so.3()(64bit) is needed by (installed) kdemultimedia3-mixer-3.4.0-14
        libpng.so.3()(64bit) is needed by (installed) kdemultimedia3-sound-3.4.0-14
        libpng.so.3()(64bit) is needed by (installed) kdenetwork3-news-3.4.0-16
        libpng.so.3()(64bit) is needed by (installed) kdenetwork3-vnc-3.4.0-16
        libpng.so.3()(64bit) is needed by (installed) kdepim3-networkstatus-3.4.0-15
        libpng.so.3()(64bit) is needed by (installed) kdeutils3-laptop-3.4.0-7
        libpng.so.3()(64bit) is needed by (installed) kio_ipodslave-0.6.2-5
        libpng.so.3()(64bit) is needed by (installed) kio_slp-0.4.1-3
        libpng.so.3()(64bit) is needed by (installed) knights-0.6-405
        libpng.so.3()(64bit) is needed by (installed) libkexif-0.2.1-4
        libpng.so.3()(64bit) is needed by (installed) libkipi-0.1.1-4
        libpng.so.3()(64bit) is needed by (installed) digikam-0.7.2-8
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-fax-3.4.0-11
        libpng.so.3()(64bit) is needed by (installed) kdepim3-kpilot-3.4.0-15
        libpng.so.3()(64bit) is needed by (installed) kdepim3-sync-3.4.0-15
        libpng.so.3()(64bit) is needed by (installed) kdeutils3-3.4.0-7
        libpng.so.3()(64bit) is needed by (installed) kinternet-0.71-10
        libpng.so.3()(64bit) is needed by (installed) kipi-plugins-0.1.0beta2-5
        libpng.so.3()(64bit) is needed by (installed) digikamimageplugins-0.7.2-4
        libpng.so.3()(64bit) is needed by (installed) kdeaddons3-kate-3.4.0-6
        libpng.so.3()(64bit) is needed by (installed) kdeaddons3-konqueror-3.4.0-6
        libpng.so.3()(64bit) is needed by (installed) kdebluetooth-0.0.cvs20050131-3
        libpng.so.3()(64bit) is needed by (installed) yast2-control-center-2.11.4-3
        libpng.so.3()(64bit) is needed by (installed) kscpm-0.4-3
        libpng.so.3()(64bit) is needed by (installed) OpenOffice_org-Quickstarter-1.0-471
        libpng.so.3()(64bit) is needed by (installed) kpowersave-0.4.0-5.2
        libpng.so.3()(64bit) is needed by (installed) WindowMaker-0.91.0-11.2
        libpng.so.3()(64bit) is needed by (installed) kdebase3-3.4.0-28.2
        libpng.so.3()(64bit) is needed by (installed) kdemultimedia3-3.4.0-14.3
        libpng.so.3()(64bit) is needed by (installed) kaffeine-0.5-10.2
        libpng.so.3()(64bit) is needed by (installed) kdebase3-kdm-3.4.0-28.4
        libpng.so.3()(64bit) is needed by (installed) arts-1.4.0-10.2
        libpng.so.3()(64bit) is needed by (installed) kdenetwork3-3.4.0-16.6
        libpng.so.3()(64bit) is needed by (installed) libwmf-0.2.8.2-92.2
        libpng.so.3()(64bit) is needed by (installed) imlib2-loaders-1.1.1-7.4
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-3.4.0-11.7
        libpng.so.3()(64bit) is needed by (installed) kdenetwork3-InstantMessenger-3.4.0-16.13
        libpng.so.3()(64bit) is needed by (installed) kdegames3-card-3.4.0-8
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-extra-3.4.0-11
        libpng.so.3()(64bit) is needed by (installed) libquicktime-0.9.4-3
        libpng.so.3()(64bit) is needed by (installed) gdk-pixbuf-0.22.0-67.3
        libpng.so.3()(64bit) is needed by (installed) kdebase3-SuSE-9.3-39.7
        libpng.so.3()(64bit) is needed by (installed) xmms-plugins-1.2.9-77.2
        libpng.so.3()(64bit) is needed by (installed) ghostscript-library-8.15rc1-16.2
        libpng.so.3()(64bit) is needed by (installed) cups-drivers-stp-1.1.23-6
        libpng.so.3()(64bit) is needed by (installed) wxGTK-2.5.3.1-5.2
        libpng.so.3()(64bit) is needed by (installed) gwenview-1.2.0pre3-9.3
        libpng.so.3()(64bit) is needed by (installed) MPlayer-1.0rc1try2-2.pm.2
        libpng.so.3()(64bit) is needed by (installed) mplayerthumbs-0.5b-1.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) superkaramba-0.39-2.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) kdelibs3-doc-3.4.0-20
        libpng.so.3()(64bit) is needed by (installed) kdepim3-3.4.0-15
        libpng.so.3()(64bit) is needed by (installed) cups-libs-1.1.23-7.6
        libpng.so.3()(64bit) is needed by (installed) kdegraphics3-scan-3.4.0-11.5
        libpng.so.3()(64bit) is needed by (installed) kmplayer-0.9.4a-1.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) kdetv-0.8.8-0.pm.0
        libpng.so.3()(64bit) is needed by (installed) amarok-xine-1.4.5-101.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) amarok-1.4.5-101.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) ImageMagick-6.1.8-6.11
        libpng.so.3()(64bit) is needed by (installed) gimp-2.2.13-1.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) ktorrent-2.1.3-1.guru.suse93
        libpng.so.3()(64bit) is needed by (installed) qt3-3.3.4-11.8
        libpng.so.3()(64bit) is needed by (installed) kdelibs3-3.4.0-20.14
        libpng12.so.0()(64bit) is needed by (installed) gtk2-2.6.4-6.7
        libpng12.so.0()(64bit) is needed by (installed) xine-lib-1.0-10.16
        libpng12.so.0()(64bit) is needed by (installed) gd-2.0.32-6
        libpng = 1.2.8 is needed by (installed) libpng-devel-1.2.8-3
What more should I add... I just can't think of anything else...

Again, thanks in advance.

Last edited by zakatua; 04-17-2007 at 12:51 PM.
 
Old 04-17-2007, 01:20 PM   #3
zakatua
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
More...

With ldd /opt/kde3/lib64/kde3/konqueror.so I can see this:

Code:
libpng.so.3 => /usr/local/lib/libpng.so.3 (0x00002aaaadba5000)
But, and I'm not sure about this, I guess it should be looking in /usr/lib64 instead, just the same that happens with keramik.so. As I said in the previous post, I think that /usr/local/lib/libpng.so.3 was added when I installed libpng-1.2.16.

Before I installed libpng-1.2.16 libpng libraries were in /usr/lib64 (and /usr/lib), they are still there but now it seems everything is configured to look in /usr/local/lib...

Am I right about this? Or just plain wrong?

Once again, thanks in advance.
 
Old 04-17-2007, 02:20 PM   #4
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
My my you are thorough

But stop please

I think it is because you have screwed up the 64-bit libraries. I think you have an amd64, so reinstall for the amd64 not x86.

Yeah you got to that eventually as well.

That is the first thing to identify.

And yes - things are looking in the wrong place, either you have changed the package set you are requesting or a SUSE rpm has done it.

So, perhaps deinstall the libpng for x86 and then reinstall the libpng for amd64.

Try not to reinstall anything else whilst you see what happens.

This probably happened when you installed from source and it was most likely the PHP gd libraries.

Have a look at /etc/make.conf and see what you have set up there.

Last edited by Zention; 04-17-2007 at 02:29 PM.
 
Old 04-17-2007, 02:58 PM   #5
zakatua
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hey, thanks for your reply!

Ok...

I can install libpng 1.2.8-3 from YAST (rpm) and libpng 1.2.16 from source (downloaded from libpng.org).

If I install the YAST version, then I can't configure PHP with GD support, so I need to install the other.

But the other is the one that adds libpng libraries to /usr/local/lib (and not /usr/local/lib64) and is making -I guess- png files disappear (and crash some applications).

So I don't really know how to adress this...

At libpng.org there is only one file to download (libpng-1.2.16.tar.gz) and nothing about x86_64 version...

I'm really confused right now.

Anyway, thankyou so much for your time!
 
Old 04-17-2007, 03:31 PM   #6
Zention
Member
 
Registered: Mar 2007
Posts: 119

Rep: Reputation: 16
I run on an amd64 system, but I use pure x86 libraries because of things like this.

Some people use a chroot for amd64 and there is multilib as well.

The field has changed, I am going to assume SUSE uses multilib but that is an assumption.

Your gcc itself would have to been compiled with the --enable-multilib option, so you want to check for that.

Your problem is x86, amd64, multilib centric, so concentrate around that.

Gentoo is probably the best resource for finding out more about multilib, slackware might have some stuff as well.

But, ld.so (ld-linux.so) is the dynamic link loader.

Have a look at /etc/ld.so.conf see if that makes sense.

LD_LIBRARY_PATH environment variable may help you can set that just before calling an application that is crashing and see if it cure the problem.

You can try /lib/ld-linux.so<tab> --list <executable file>

That should give you a better idea as well.

You could reinstall glibc that should give you a new ld.so but be careful there, you could bork the system some more if things are not setup correctly.
 
Old 04-18-2007, 03:50 AM   #7
zakatua
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Everything is OK...

Since applications where looking for pnglib in the /usr/local/lib directory I directly copied all pnglib libraries from /usr/lib64 to that directory and created the needed symlinks... Now everything works as expected.

The only problem is that I have lost GD support for PHP, but that's another story...

Again, thanks for your time!

Regards.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox and .png images. slackbat Slackware 9 12-02-2005 09:22 AM
Updated libpng, now existing GTK prog won't start anymore - Rh9 rylan76 Linux - Software 1 05-12-2005 01:06 PM
Cannot open .png images. Nz_Boy_2004 Linux - Software 5 12-18-2004 10:23 PM
Here are some more attractive Kweather png images devfreak Linux - Software 2 03-31-2004 09:58 PM
png images not served by apache ..??? gene_gEnie Linux - Software 2 05-10-2002 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration