
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?
Best, Vicente
In case this can help, the following patch solves the issue. svn diff Index: other/endian.h =================================================================== --- other/endian.h (revision 85924) +++ other/endian.h (working copy) @@ -8,6 +8,7 @@ #ifndef BOOST_PREDEF_ENDIAN_H #define BOOST_PREDEF_ENDIAN_H +#include <boost/config.hpp> #include <boost/predef/version_number.h> #include <boost/predef/make.h> #include <boost/predef/library/c/gnu.h> @@ -58,7 +59,7 @@ # if BOOST_OS_BSD_OPEN # include <machine/endian.h> # else -# include <sys/endian.h> +//# include <sys/endian.h> # endif # endif # endif It seems that Boost.Config use the endian.h includes in a more appropriated way. Vicente