xzlwbl / idapython

Automatically exported from code.google.com/p/idapython
Other
0 stars 0 forks source link

Idapython 64bit linux build issue: LONG_BIT definition appears wrong for platform #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Log attached.  The same svn checkout builds fine on a 32bit linux machine.

Similar issue:
https://bugzilla.redhat.com/show_bug.cgi?id=139911#c2

Original issue reported on code.google.com by samshepp...@gmail.com on 31 Oct 2009 at 8:46

Attachments:

GoogleCodeExporter commented 9 years ago
/usr/include/python2.5/pyport.h:

#ifndef LONG_BIT
#define LONG_BIT (8 * SIZEOF_LONG)
#endif

#if LONG_BIT != 8 * SIZEOF_LONG
/* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some recent
 * 32-bit platforms using gcc.  We try to catch that here at compile-time
 * rather than waiting for integer multiplication to trigger bogus
 * overflows.
 */
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#endif

Original comment by samshepp...@gmail.com on 1 Nov 2009 at 2:35

GoogleCodeExporter commented 9 years ago
Log with --ea64 enabled.

Original comment by samshepp...@gmail.com on 1 Nov 2009 at 2:48

Attachments:

GoogleCodeExporter commented 9 years ago
Do I understand correctly that you are trying to compile the plugin in a 64-bit 
host?
If that is the case, I am afraid it will not work. As far as I can see only the 
most essential
libraries are installed in their 32-bit form, at least on Debian Lenny. For 
example I did
not find any of the Python libraries. Trying to link to 64-bit Python libs will 
not do much
good as the IDA binary itself is 32-bit. 

Original comment by gergely.erdelyi on 3 Nov 2009 at 4:51