Boost logo

Boost-Build :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2004-01-02 09:29:21

The forwarded message suggests a change to avoid the following compile
time error:

cd ~/prog_dev/boost-root.ln/boost_dev/libs/managed_ptr/test/latest/
make execution_monitor.o
como -c --long_long --display_error_number --diag_suppress 76
Comeau C/C++ 4.3.3 (Oct 24 2003 16:00:23) for RedHat_LINUX_INTEL_ELF
Copyright 1988-2003 Comeau Computing. All rights reserved.
MODE:non-strict warnings C++

line 296: error #20:
identifier "sigjmp_buf" is undefined
static sigjmp_buf& jump_buffer()

I tried changing v1/como-tools.jam with following line:

flags como DEFINES <define> : _POSIX_SOURCE ;

but it had no effect. Maybe someone else knows how to make the change?

 --------------010802050609000204070407 Content-Type: message/rfc822;
name="Re: -D_POSIX_SOURCE needed for sigjmp_buf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Re: -D_POSIX_SOURCE needed for sigjmp_buf"

Return-Path: <comeau_at_[hidden]>
Received: from [] by
(InterMail vK. 201-232-140-20030416 license ac98e04b23802b25ff26d48c352bda07)
with ESMTP id <20040102062510.BMFF11367.fe3@[]>
for <cppljevans_at_[hidden]>; Fri, 2 Jan 2004 00:25:10 -0600
X-Filter-Reason: Magic; 119; 4294967295; E7FC4F32B0800D79DEFF84EF028F7200
X-Mail-Filter: Corvigo MailGate 1.6-8
Received: from (unknown [])
by (Corvigo MailGate) with ESMTP id 4313EFE61
for <cppljevans_at_[hidden]>; Fri, 2 Jan 2004 00:24:33 -0600 (CST)
Received: from ( [])
by (8.12.10/8.12.10) with ESMTP id i026P12f026368
for <cppljevans_at_[hidden]>; Fri, 2 Jan 2004 00:25:01 -0600 (CST)
Received: from ( [])
by (Postfix) with ESMTP id 1C381983B2
for <cppljevans_at_[hidden]>; Fri, 2 Jan 2004 01:25:00 -0500 (EST)
Received: by (Postfix, from userid 1012)
id 3D72682DAB; Fri, 2 Jan 2004 01:24:59 -0500 (EST)
Message-Id: <[hidden]>
X-Sender: come1_at_[hidden]
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2
Date: Fri, 02 Jan 2004 01:22:23 -0500
To: Larry Evans <cppljevans_at_[hidden]>
From: Comeau Computing <comeau_at_[hidden]>
Subject: Re: -D_POSIX_SOURCE needed for sigjmp_buf
In-Reply-To: <3FF4E980.2030203_at_[hidden]>
References: <[hidden]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 09:46 PM 1/1/2004 -0600, Larry Evans wrote:
>On 01/01/2004 06:17 PM, Comeau Computing wrote:
>>At 03:21 PM 1/1/2004 -0600, Larry Evans wrote:
>>Right, if you want POSIX routines, you'd define _POSIX_SOURCE, similarly,
>>for SVID, use _SVID_SOURCE. Not sure what you mean by "better
>>way". If that's an essential aspect to that compile, perhaps it's best
>>to build it into that build, or all rules involving LINUX builds???
>By "better way" I meant possibly there was someway to configure the
>compiler to always define _POSIX_SOURCE. I'm sure
>boost would need this since, with their current test library, the build of
>execution_monitor.cpp fails.

It can get defined by virtue of use the --g++ option, however, normally
customers want to be able to make that choice, which is why there is no
default per se. There are some assumptions and/or requirements made in
the boost code that I don't think we fully understand yet, and/or
assumptions about the Comeau compiler's modes, apparently even moreso with
the boost code for Windows too. With 4.3.3 now released, we hope to be
able to look at this further during 1Q2004. That said, adding in the
respecting -D's might be something to add to como-tools.jams DEFINE settings?

Comeau C/C++ 4.3.3: Full C++03 core language + more Windows backends
Comeau C/C++ ONLINE ==>
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries. Have you tried it?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at