libunwind-devel
[Top][All Lists]
Advanced

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

RE: [Libunwind-devel] libunwind library/source for Linux 64 bit


From: POKHARAKAR Sandeep
Subject: RE: [Libunwind-devel] libunwind library/source for Linux 64 bit
Date: Fri, 23 Apr 2010 17:33:59 +0900

Hello Arun,

 

Thanks for your answers.

 

While compilation I am getting an error trace “_UPT_access_fpreg.c:207:3: error: #error Fix me”. Its seems to be b’caz of “HAVE_DECL_PTRACE_POKEUSER || HAVE_TTRACE” macros missing. And compilation happens at the else part of this “if HAVE_DECL_PTRACE_POKEUSER || HAVE_TTRACE”.

 

I am wondering what is the significance of these macros. Where are those defined. I could not locate their location.

Also, where is __USE_GNU defined? I am also getting few compilation issues b’caz of this. As my compiler does not find it.

Could you please help.

 

 

Thanks,

Sandeep Pokharakar

 

From: Arun Sharma [mailto:address@hidden
Sent: Thursday, April 22, 2010 9:36 PM
To: POKHARAKAR Sandeep
Cc: address@hidden
Subject: Re: [Libunwind-devel] libunwind library/source for Linux 64 bit

 

On Thu, Apr 22, 2010 at 5:58 AM, POKHARAKAR Sandeep <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]