On Thu, Apr 22, 2010 at 5:58 AM, POKHARAKAR Sandeep <
[email protected]> wrote:

> Hi,
>
> After compiling this code, I am getting below error.
>
> "libunwind_i.h: error: #error Host has unknown byte-order."
>
> I checked the code and found that if hpux is not defined then we get
> this error.
>
> Does it mean that the code is compatible to HPUX only?
>
>
The code is certainly compatible with Linux/x86.

libunwind_i.h:

#if defined(HAVE_ENDIAN_H)
# include <endian.h>
#elif defined(HAVE_SYS_ENDIAN_H)
# include <sys/endian.h>
#else
# define __LITTLE_ENDIAN        1234
# define __BIG_ENDIAN           4321
# if defined(__hpux)
#   define __BYTE_ORDER __BIG_ENDIAN
# else
#   error Host has unknown byte-order.
# endif
#endif

$ grep ENDIAN include/config.h
#define HAVE_ENDIAN_H 1

for some reason configure is not finding endian.h on your system?

 -Arun
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to