Bug 670270

Summary: Compilation failure due to known/unfixed bug
Product: Red Hat Enterprise Linux 6 Reporter: brett
Component: libpngAssignee: Tom Lane <tgl>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: brett, hhorak
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-17 18:34:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description brett 2011-01-17 18:22:34 UTC
When compiling against libpng12, an error is thrown:

pngconf.h __dont__ does not name a type


This is known in Ubuntu and other OS's:
https://bugs.launchpad.net/ubuntu/+source/libpng/+bug/218409


The patch is as given in the above (/usr/include/libpng12/pngconf.h):

--- libpng12/pngconf.h
+++ libpng12/pngconf.h
@@ -323,8 +323,8 @@
      /* If you encounter a compiler error here, see the explanation
       * near the end of INSTALL.
       */
- __pngconf.h__ already includes setjmp.h;
- __dont__ include it again.;
+#warning __pngconf.h__ already includes setjmp.h;
+#warning __dont__ include it again.;
 # endif
 # endif /* __linux__ */

Comment 2 Tom Lane 2011-01-17 18:34:04 UTC
This is not a bug.  libpng will not work correctly if you include <setjmp.h> in the wrong place, and that syntax error is trying to ensure that you don't end up with a malfunctioning program.  Downgrading it to a warning would not be an improvement.

Comment 3 brett 2011-01-17 18:54:20 UTC
Thanks for the info. I ran into this porting MySQL Gui Tools to RHEL-6. I've fixed most of the other issues, but ran into that one, googled, and patched as indicated. I appreciate the response.