Opened 11 years ago

Closed 7 years ago

#6161 closed Bugs (fixed)

SunOS: bad putenv declaration

Reported by: fguiliani@… 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)

putenv_issue_on_sunos.patch (373 bytes ) - added by fguiliani@… 11 years ago.
fix for the issue

Download all attachments as: .zip

Change History (6)

by fguiliani@…, 11 years ago

Attachment: putenv_issue_on_sunos.patch added

fix for the issue

comment:1 by anonymous, 11 years ago

Component: Building Boosttest
Owner: set to Gennadiy Rozental

comment:2 by anonymous, 11 years ago

Added the patch as an attachment as the inlined version didn't show correctly.

comment:3 by Gennadiy Rozental, 10 years ago

Owner: changed from Gennadiy Rozental to Steven Watanabe

The same as the other one

comment:4 by Raffi Enficiaud, 8 years ago

Owner: changed from Steven Watanabe to Raffi Enficiaud
Status: newassigned

Duplicate of #6766

comment:5 by Raffi Enficiaud, 7 years ago

Milestone: To Be DeterminedBoost 1.59.0
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.