Hide Forgot
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__ */
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.
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.