Opened 11 years ago
Closed 7 years ago
#6161 closed Bugs (fixed)
SunOS: bad putenv declaration
Reported by: | Owned by: | Raffi Enficiaud | |
---|---|---|---|
Milestone: | Boost 1.59.0 | Component: | test |
Version: | Boost 1.48.0 | Severity: | Regression |
Keywords: | Cc: |
Description
Boost 1.48.0 doesn't compile on SunOS 5.10 with the following error:
sun.compile.c++ /boost-1.48.0.0/object-optimize/SunOS-5.10-i386/build-boost-test/boost/bin.v2/libs/test/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/unit_test_parameters.o "/usr/include/stdlib.h", line 120: Error: putenv(char*) was declared before with a different language.
The following patch does fix the problem:
Index: boost/test/utils/runtime/config.hpp =================================================================== --- boost/test/utils/runtime/config.hpp (revision 182) +++ boost/test/utils/runtime/config.hpp (working copy) @@ -45,7 +45,9 @@
#endif
#ifdef SUNPRO_CC
-extern int putenv(char*); +extern "C" { + extern int putenv(char*); +}
#endif
namespace boost {
Attachments (1)
Change History (6)
by , 11 years ago
Attachment: | putenv_issue_on_sunos.patch added |
---|
comment:1 by , 11 years ago
Component: | Building Boost → test |
---|---|
Owner: | set to |
comment:2 by , 11 years ago
Added the patch as an attachment as the inlined version didn't show correctly.
comment:5 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
fix for the issue