Bug 670270 - Compilation failure due to known/unfixed bug
Summary: Compilation failure due to known/unfixed bug
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libpng
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Tom Lane
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-17 18:22 UTC by brett
Modified: 2013-07-03 03:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-17 18:34:04 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.