LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   issue with Distorm - installation (https://www.linuxquestions.org/questions/linux-newbie-8/issue-with-distorm-installation-4175424032/)

lee_can 08-26-2012 02:26 AM

issue with Distorm - installation
 
Hi,
I am trying to install distorm from this link http://ragestorm.net/distorm/distorm64-pkg1.7.30.zip.
when I enter the command make, i will have the following error:
Code:

root@bt:~/install/distorm64/build/linux# make
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/x86defs.c -o ../../src/x86defs.o
In file included from ../../src/x86defs.c:9:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/wstring.c -o ../../src/wstring.o
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/textdefs.c -o ../../src/textdefs.o
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/prefix.c -o ../../src/prefix.o
In file included from ../../src/prefix.c:12:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/operands.c -o ../../src/operands.o
In file included from ../../src/operands.c:12:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/insts.c -o ../../src/insts.o
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/instructions.c -o ../../src/instructions.o
In file included from ../../src/instructions.c:13:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/distorm.c -o ../../src/distorm.o
In file included from ../../src/distorm.c:12:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/decoder.c -o ../../src/decoder.o
In file included from ../../src/decoder.c:13:
../../src/x86defs.h: In function ‘str_x86def’:
../../src/x86defs.h:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o -fPIC -shared -o libdistorm64.so
ar rs ../../distorm64.a ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
ar: creating ../../distorm64.a
gcc -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D_DLL  -c ../../src/pydistorm.c -o ../../src/pydistorm.o
In file included from ../../src/pydistorm.c:15:
../../src/pydistorm.h:25:31: error: python2.5/Python.h: No such file or directory
In file included from ../../src/pydistorm.c:15:
../../src/pydistorm.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../src/pydistorm.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘distormModulebMethods’
../../src/pydistorm.c: In function ‘initdistorm’:
../../src/pydistorm.c:20: error: ‘PyObject’ undeclared (first use in this function)
../../src/pydistorm.c:20: error: (Each undeclared identifier is reported only once
../../src/pydistorm.c:20: error: for each function it appears in.)
../../src/pydistorm.c:20: error: ‘distormModule’ undeclared (first use in this function)
../../src/pydistorm.c:20: warning: implicit declaration of function ‘Py_InitModule3’
../../src/pydistorm.c:20: error: ‘distormModulebMethods’ undeclared (first use in this function)
../../src/pydistorm.c:21: warning: implicit declaration of function ‘PyModule_AddIntConstant’
../../src/pydistorm.c:25: warning: implicit declaration of function ‘PyModule_AddStringConstant’
../../src/pydistorm.c: At top level:
../../src/pydistorm.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make: *** [../../src/pydistorm.o] Error 1
root@bt:~/install/distorm64/build/linux#

The problem that i am using it with Python 2.6 which above 2.5

is there any advice how to successfully install on my pc?
(my o.s is ubuntu)

spiky0011 08-26-2012 02:41 AM

Hi

Is there a reason you cant get it from the software centre

lee_can 08-26-2012 01:16 PM

Hi spiky0011,
I tried also from the main website but same story as it is looking for python 2.5, but mine is 2.65.

Regards


All times are GMT -5. The time now is 09:31 PM.