Boost logo

Boost :

Subject: Re: [boost] [predef] missing file On MacOS 10.7.5.
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-09-26 10:08:16


Le 26/09/13 15:43, Vicente J. Botet Escriba a écrit :
> Le 26/09/13 15:37, Vicente J. Botet Escriba a écrit :
>> Hi,
>>
>> I'm getting this error
>>
>> clang-darwin.compile.c++
>> ../../../bin.v2/libs/thread/build/clang-darwin-3.2x/debug/link-static/threading-multi/pthread/thread.o
>> In file included from ../../../libs/thread/src/pthread/thread.cpp:33:
>> In file included from ../../../boost/lexical_cast.hpp:156:
>> In file included from ../../../boost/math/special_functions/sign.hpp:18:
>> In file included from
>> ../../../boost/math/special_functions/detail/fp_traits.hpp:27:
>> In file included from ../../../boost/detail/endian.hpp:9:
>> In file included from ../../../boost/predef/detail/endian_compat.h:11:
>> ../../../boost/predef/other/endian.h:61:25: fatal error:
>> 'sys/endian.h' file not found
>> # include <sys/endian.h>
>> ^
>>
>> On MacOS 10.7.5.
>>
>> Please could this be fixed?
>>
>> Is there a test on the regression test using this file?
>>
>
After more insight, the following path solves the issue.

  svn diff
Index: other/endian.h
===================================================================
--- other/endian.h (revision 85924)
+++ other/endian.h (working copy)
@@ -55,7 +55,7 @@
  # include <endian.h>
  # else
  # if BOOST_OS_BSD
-# if BOOST_OS_BSD_OPEN
+# if defined BOOST_OS_BSD_OPEN || defined BOOST_OS_DRAGONFLY_BSD
  # include <machine/endian.h>
  # else
  # include <sys/endian.h>

Could I commit?

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk