[JIRA] Created: (SSPCPP-478) Possible problem with g++ 4.6+ defining __STDC__ and __STDC_VERSION__
Scott Cantor (JIRA)
noreply at shibboleth.net
Tue Jul 24 18:32:55 EDT 2012
Possible problem with g++ 4.6+ defining __STDC__ and __STDC_VERSION__
---------------------------------------------------------------------
Key: SSPCPP-478
URL: https://issues.shibboleth.net/jira/browse/SSPCPP-478
Project: Shibboleth SP - C++
Issue Type: Bug
Components: Build, Web Server Modules
Affects Versions: 2.4.3, 2.4.2, 2.4.1, 2.4, 2.5
Environment: GCC installed via opencsw.org
Reporter: Scott Cantor
Assignee: Scott Cantor
Priority: Trivial
Not a bug in my code, but in case it turns out to be endemic.
The opencsw.org install of gcc/g++ on Solaris 10 Sparc is defining the __STDC__ macros even when compiling C++ code, which is 100% wrong. Apache relies on those macros to conditionally define its AP_INIT_TAKE1, etc. config macros in http_config.h with a syntax that does not work on C++ compilers and the module fails to compile.
I have no other instance of this happening, but any Apache 2.x module build with gcc would be vulnerable to this bug.
If it turns into a major problem, forcibly undefining the macros with -U may be required or even defining a configure test for this non-conformant compiler behavior.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list