Bug 657614

Summary: fontforge complains about libpng versions
Product: [openSUSE] openSUSE 11.3 Reporter: Martin Schröder <martin>
Component: OtherAssignee: Takashi Iwai <tiwai>
Status: RESOLVED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: pgajdos
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Schröder 2010-12-05 01:49:42 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
Comment 1 Alex Lau 2010-12-14 06:20:22 UTC
what happen after you install the libpng14-compat-devel?
Comment 2 Alex Lau 2010-12-14 06:21:40 UTC
I just update the platform from win3.1 back to openSUSE10.3 assuming you are using that.
Comment 3 Martin Schröder 2010-12-14 06:27:21 UTC
(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.
Comment 4 Martin Schröder 2010-12-14 06:28:10 UTC
(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
Comment 5 Alex Lau 2010-12-15 07:50:42 UTC
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
Comment 8 Petr Gajdos 2011-05-16 13:18:13 UTC
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
Comment 9 Takashi Iwai 2011-05-16 13:33:44 UTC
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.
Comment 10 Takashi Iwai 2012-11-21 08:58:17 UTC
openSUSE 11.4 is EOL.  Please reopen if the problem still appears on 12.2.  Thanks.