View previous topic :: View next topic |
Author |
Message |
axslinger n00b
Joined: 27 Apr 2002 Posts: 47 Location: Michigan
|
Posted: Mon Jul 15, 2002 2:53 pm Post subject: libpng issues |
|
|
This libpng issue is utterly ridiculous. I have been chasing my tail, compiling, recompiling, updating etc for 3 days now. I have tried virtually every fix I have found in this forum. The most recent suggested I run
/usr/portage/media-libs/libpng/files/libpng-update-libs.sh
and
/usr/portage/media-libs/libpng/files/libpng-update-bins.sh
(as a 'quick workaround'). Quick my ass.
and emerge the packages listed. The second one listed 15 packages. With my slow connection, that could mean another day. Including QT and kdebase, which I just finished doing a couple days ago. In fact this whole thing started because I was trying to upgrade KDE. Now I have to do it virtually all again, because of one whacked-out library? I have unmerged then remerged libpng and I still get references to libpng.so.2.
If I have somehow missed a posting on a 'reasonable' workaround, by all means point me to it. And I don't mean formatting my hard drive and reloading from scratch.
Brian |
|
Back to top |
|
|
trythil Tux's lil' helper
Joined: 06 Jun 2002 Posts: 123 Location: RHIT, Terre Haute, IN, USA
|
Posted: Mon Jul 15, 2002 3:27 pm Post subject: |
|
|
Exactly what libpng issue is this?
Library version mismatch?
Code: |
libpng warning: Application was compiled with png.h from libpng-1.0.12
libpng warning: Application is running with png.c from libpng-1.2.3
libpng error: Incompatible libpng version in application and library
|
If that's the case, have you tried emerging libpng-1.2.3, unmerging libpng-1.0.12, and emerge --emptytree world? (Sure it's not fast, but it's pretty much the only way to ensure that nothing will depend on the old libpng anymore. You can't do this by simply emerging/unmerging new/old libpng, because they've got different APIs.)
Alternatively, you could install libpng-1.0.12 and get rid of libpng-1.2.3, but this is nothing better than a temporary fix. |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Mon Jul 15, 2002 3:39 pm Post subject: |
|
|
Also, merge in opera from the static ebuild rather than the dynamic one. I believe this started the problem in my case. IIRC, the dynamic version is masked now. |
|
Back to top |
|
|
axslinger n00b
Joined: 27 Apr 2002 Posts: 47 Location: Michigan
|
Posted: Mon Jul 15, 2002 3:45 pm Post subject: |
|
|
Here is one example:
ark: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
and
Could not dlopen library Knotify.la: libpng.so.2 cannot open shared object file: no xuch file or directory.
Thanks,
Brian |
|
Back to top |
|
|
tsuru Tux's lil' helper
Joined: 19 Apr 2002 Posts: 99 Location: Nashville, Tennessee, USA
|
Posted: Mon Jul 15, 2002 6:13 pm Post subject: |
|
|
It's possible that there is not a libpng.so.2 link.... do this:
go to the directory that libpng.so is in and see what file libpng.so is pointing to. Also make sure libpng.so.2 is pointing to the same file. If that doesn't work try remerging qt and/or gtk |
|
Back to top |
|
|
trythil Tux's lil' helper
Joined: 06 Jun 2002 Posts: 123 Location: RHIT, Terre Haute, IN, USA
|
Posted: Mon Jul 15, 2002 10:21 pm Post subject: |
|
|
Oh, well, THAT'S a hell of a lot easier to fix than re-emerging everything.
(Usually. )
First, look for any libpng* files in /usr/lib. Chances are there will be a bunch of them: you're looking for anything that has a version number of 1.0.12-1.0.14 in its filename. (libpng 1.2.* has as libtool version number of 3, and thus symlinks to libpng.so.3. At least it does here. ) Symlink libpng.so.2 to this one.
If there's nothing there, try emerging just libpng 1.0.1*, and link. |
|
Back to top |
|
|
axslinger n00b
Joined: 27 Apr 2002 Posts: 47 Location: Michigan
|
Posted: Mon Jul 15, 2002 10:45 pm Post subject: |
|
|
Ok, here is what 'whereis libpng' came up with:
libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 19 Jul 15 08:40 libpng.so -> libpng12.so.0.1.2.
4
lrwxrwxrwx 1 root root 19 Jul 15 08:40 libpng.so.3 -> libpng12.so.0.1.
2.4
lrwxrwxrwx 1 root root 19 Jul 15 08:40 libpng.so.3.1.2.4 -> libpng12.s
o.0.1.2.4
-rw-r--r-- 1 root root 226458 Jul 15 08:40 libpng12.a
lrwxrwxrwx 1 root root 13 Jul 15 08:40 libpng12.so -> libpng12.so.0
lrwxrwxrwx 1 root root 19 Jul 15 08:40 libpng12.so.0 -> libpng12.so.0.
1.2.4
-rwxr-xr-x 1 root root 201574 Jul 15 08:40 libpng12.so.0.1.2.4
So why am I getting libpng.so.2 errors? What now?
Thanks,
Brian |
|
Back to top |
|
|
|