[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#703980: /usr/include/time.h: defining TIME_UTC conflicts with boost/thread/xtime.hpp enum



tags 703980 + wontfix
thanks

On 26 March 2013 13:23, Pauli <suokkos@gmail.com> wrote:
> Package: libc6-dev
> Version: 2.17-0experimental2
> Severity: normal
> File: /usr/include/time.h
>
> Dear Maintainer,
>
> I partially accidentaly upgraded to experimental libc 2.17. After
> upgrade I noticed that my program depending on boost threads doesn't any
> more build. I quickly figured out problem being the new define TIME_UTC in
> /usr/include/time.h. Same name for enum entry is used in
> /usr/include/boost/thread/xtime.hpp which causes boost header to fail
> compile if time.h is included before it.
>
>

TIME_UTC is part of C11 standard, which is more authoritative despite
boost's prior usage.
In boost1.49 package this is bug 701733, but it's marked won't fix as
later versions of boost already have a fix.
Use boost1.53 available from unstalbe, it compiles correctly with libc 2.17.

Regards,

Dmitrijs.


Reply to: