Bug 21263

Summary: libpng is incompatible with pdftex
Product: [Retired] Red Hat Linux Reporter: Need Real Name <golding>
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: nphilipp, romano, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-28 02:11:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-11-22 20:07:50 UTC
e.g.  actual error report is '...

libpng error: Application must be recompiled; version 1.0.6 was
incompatible

Error: pdflatex (file calmodulin.png): png_create_read_struct() failed

...'   The same files work on an identical machine running RedHat 6.2

Comment 1 romano 2000-11-24 08:33:57 UTC
It should be sufficient a tetex-pdflatex recompile. Due to the quite
big work involved, could someone do it at RH and put an update out? 
I think this could well be marked as a critical bug (if you need pdflatex). 

By the way. Shouldn't incompatible API changes on dynamic library 
bumps the mayor revision number?

Comment 2 romano 2000-12-04 09:35:11 UTC
Well, I think I solved it. 
It's not a problem of just recompilation: there is a bug in the tetex
source package. In spite of being configured with --with-system-pnglib, 
there are object files compiled against it's internal libpng header files.

What I did is to add this hack to the spec file: 
******
--- tetex.spec  Mon Dec  4 08:46:35 2000
+++ tetex-r.spec        Mon Dec  4 08:46:35 2000
@@ -242,6 +242,11 @@
        --with-system-ncurses --with-system-zlib --with-system-pnglib \
        --disable-multiplatform --without-dialog --without-texinfo \
        --datadir=/usr/share 
+
+rm -rf libs/libpng
+mkdir libs/libpng
+ln -s /usr/include/png.h libs/libpng/png.h
+ln -s /usr/include/pngconf.h libs/libpng/pngconf.h
 
 make
*****

I made available the spec-file and the recompiled rpms at 
http://usuarios.tripod.es/r_mano/linux/

I added a R to the release (I am not official related to RH, so I did 
not feel in the right to bump the build number, especially with a so 
ugly hack). 


Comment 3 Jeff Johnson 2000-12-28 02:10:58 UTC
*** Bug 22447 has been marked as a duplicate of this bug. ***

Comment 4 Jeff Johnson 2000-12-28 02:20:34 UTC
Fixed (by the hack you've suggested) in tetex-1.0.7-10. Thanks *very* much for
submitting
a fix.

Comment 5 Jeff Johnson 2000-12-28 17:02:26 UTC
*** Bug 22949 has been marked as a duplicate of this bug. ***