Boost logo

Boost-Build :

Subject: Re: [Boost-build] Build error while building boost 1.49
From: Lars Viklund (zao_at_[hidden])
Date: 2014-05-13 13:28:58


On Tue, May 13, 2014 at 06:25:40PM +0200, Danesh Daroui wrote:
> Hi all,
>
> For some compatibility reasons I need to compile and install boost
> 1.49.0 on a Linux machine with Ubuntu 14.04 LTS. I have downloaded
> source code for boost 1.49.0 and I try to build the library by first
> running "./bootstrap" and second running "sudo ./b2 install". The
> problem is that during building process following error is reported
> multiple times:
>
> ./boost/thread/xtime.hpp:44:5: error: ‘xtime_nsec_t’ does not name a type
> xtime_nsec_t nsec;

This is not the first error.

The very first error is that the TIME_UTC enumerand is a macro in modern
implementations which has been worked around by using TIME_UTC_ in newer
Boosts.

https://svn.boost.org/trac/boost/ticket/6940
https://svn.boost.org/trac/boost/changeset/78802

If you wish to use 1.49 on your configuration, you need to
replace Boost's TIME_UTC w/ TIME_UTC_.

> At the end, the library for boost.thread is not built (probably due
> to the error above). Is there any hint to help me to compile the
> library properly?

This fully resolves any build failures I experience for --with-thread.

-- 
Lars Viklund | zao_at_[hidden]

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk