Bugzilla – Bug 657614
fontforge complains about libpng versions
Last modified: 2012-11-21 08:58:17 UTC
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-1.2 Firefox/3.6.12 fontforge complains on start: Application was compiled with png.h from libpng-1.4.3 Application is running with png.c from libpng-1.2.44 Incompatible libpng version in application and library It seems to work correctly, though. Reproducible: Always Steps to Reproduce: 1. 2. 3. > rpm -qa|fgrep png libpng12-0-1.2.44-2.1.x86_64 libpng12-devel-1.2.44-2.1.x86_64 libpng14-14-1.4.3-2.1.x86_64 libpng12-compat-devel-1.2.44-2.1.x86_64 libpng14-14-32bit-1.4.3-2.1.x86_64 > rpm -qi fontforge Name : fontforge Relocations: (not relocatable) Version : 20090923 Vendor: openSUSE Release : 1.10 Build Date: Mo 05 Jul 2010 15:36:36 CEST Install Date: So 05 Dez 2010 02:39:58 CET Build Host: build13 Group : Productivity/Graphics/Vector Editors Source RPM: fontforge-20090923-1.10.src.rpm Size : 24116350 License: BSD3c(or similar) Signature : RSA/8, Mo 05 Jul 2010 15:37:56 CEST, Key ID b88b2fd43dbdc284 Packager : http://bugs.opensuse.org URL : http://fontforge.sourceforge.net/ Summary : A Font Editor Description : FontForge allows editing of outline and bitmap fonts. With it, you can create new fonts or modify old ones. It also converts font formats and can convert among PostScript (ASCII & binary Type 1, some Type 3s, and some Type 0s), TrueType, OpenType (Type2), and CID-keyed fonts. Distribution: openSUSE 11.3 > rpm -qi libpng12-0 Name : libpng12-0 Relocations: (not relocatable) Version : 1.2.44 Vendor: openSUSE Release : 2.1 Build Date: Mo 05 Jul 2010 14:44:16 CEST Install Date: Mi 24 Nov 2010 15:42:35 CET Build Host: build21 Group : System/Libraries Source RPM: libpng12-1.2.44-2.1.src.rpm Size : 171112 License: Zlib License Signature : RSA/8, Mo 05 Jul 2010 14:46:25 CEST, Key ID b88b2fd43dbdc284 Packager : http://bugs.opensuse.org URL : http://www.libpng.org/pub/png/libpng.html Summary : Library for the Portable Network Graphics Format (PNG) Description : libpng is the official reference library for the Portable Network Graphics format (PNG). Distribution: openSUSE 11.3 > rpm -qi libpng14-14 Name : libpng14-14 Relocations: (not relocatable) Version : 1.4.3 Vendor: openSUSE Release : 2.1 Build Date: Mo 05 Jul 2010 14:40:50 CEST Install Date: Di 06 Jul 2010 07:49:57 CEST Build Host: build17 Group : System/Libraries Source RPM: libpng14-1.4.3-2.1.src.rpm Size : 170984 License: Zlib License Signature : RSA/8, Mo 05 Jul 2010 14:41:05 CEST, Key ID b88b2fd43dbdc284 Packager : http://bugs.opensuse.org URL : http://www.libpng.org/pub/png/libpng.html Summary : Library for the Portable Network Graphics Format (PNG) Description : libpng is the official reference library for the Portable Network Graphics format (PNG). Distribution: openSUSE 11.3
what happen after you install the libpng14-compat-devel?
I just update the platform from win3.1 back to openSUSE10.3 assuming you are using that.
(In reply to comment #1) > what happen after you install the libpng14-compat-devel? That deletes libpng12-compat-devel (don't know where that came from) and everything's fine.
(In reply to comment #2) > I just update the platform from win3.1 back to openSUSE10.3 assuming you are > using that. No; see #219910
I think what happen is when you build something that require libpng12 specific library and then the symlink was be created by using the libpng12 library. The fontforge package is linking to the libpng.so directly and at runtime it get switch to use libpng12 by the symlink instead of the libpng14. Since fontforge is part of the development packages, what should be done in the spec is to require libpng14-compat-devel to make sure the runtime get the same version of libpng with the build time. Let us know if this fix your issue. Thanks
When I run fontforge, I get libpng: libpng.so.2: cannot open shared object file: No such file or directory (not libpng.so). It seems to work without it, though. I am convinced that this is result of the magic on the begining of gimage{read,write}png.c files. When I workarounded it by hardcodidng to use libpng14.so.14 -- see libpng14-dynamic.diff --, fontforge don't emit any such message. I have updated fontforge by the way to the upstream version 20110222 and I have submitted it into M17N. Takashi, you seems to be maintainer. Please look at fontforge in M17N, I am sure you will find more elegant solution, therefore I will not submit it to factory. Note that %suse_version of Factory is still 1140, so two conditions in specfile should be changed (from 1130 to 1140). I concentrated on build for factory and I have not checked yet, if fontforge builds for older distributions, for 11.4 will not certainly until Factory will not have right version and conditions will not be adapted. Thanks
No, I'm no maintainer of the package. My name was copied to PDB by some random reason after Mike left... Anyway I'll check the package in M17N later.
openSUSE 11.4 is EOL. Please reopen if the problem still appears on 12.2. Thanks.