LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2012, 01:26 AM   #1
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Rep: Reputation: 1
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)
 
Old 08-26-2012, 01:41 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Is there a reason you cant get it from the software centre
 
Old 08-26-2012, 12:16 PM   #3
lee_can
Member
 
Registered: Mar 2011
Posts: 118

Original Poster
Rep: Reputation: 1
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
 
  


Reply

Tags
python2.6



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 13.37 installation/Dual Boot/Raid config. Installation issue spacecowboy1858 Slackware - Installation 8 06-26-2012 02:54 PM
Fedora 13 Installation issue -- Unable to install multiple linux distributions ---partition issue navneethr Linux - General 6 12-22-2010 11:17 PM
Installation Issue nirmaltom SUSE / openSUSE 3 03-07-2006 01:17 AM
Installation issue... jhoin Fedora - Installation 5 11-05-2004 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration