Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

bokken failed to build on OSX 10.10 due to Python 2.5 dependency #32016

Closed
mgttlinger opened this issue Sep 1, 2014 · 11 comments
Closed

bokken failed to build on OSX 10.10 due to Python 2.5 dependency #32016

mgttlinger opened this issue Sep 1, 2014 · 11 comments

Comments

@mgttlinger
Copy link

I know 10.10 is not supported as it is not released yet but I believe the problem is not 10.10 specific.

When trying to brew bokken it fails at make step with the following error:

In file included from ../../src/pydistorm.c:15:
../../src/pydistorm.h:25:11: fatal error: 'python2.5/Python.h' file not found
 #include <python2.5/Python.h>    
          ^
1 error generated.

See Gist for outputs.

@asparagui
Copy link
Contributor

Tested earlier, works with 10.9, fails with 10.10 (per above), would suggest we wait for release before patching anything.

@Jo-Con-El
Copy link

I know that it's silly, but have you tried to replace that header with a more advanced one? 10.10 shipped 2.6 and 2.7 headers.

@tdsmith
Copy link
Contributor

tdsmith commented Jan 20, 2015

Yeah, looks like Debian applies a small patch to distorm64; we can probably just inreplace this away. https://sources.debian.net/src/distorm64/1.7.30-1/debian/patches/101_python_path/

@Jo-Con-El
Copy link

Oh, look, this is me! :-) I didn't even remember that I made that patch.

@JanSimek
Copy link

JanSimek commented May 5, 2015

I still have this issue when installing Bokken through Homebrew.

Already downloaded: /Library/Caches/Homebrew/bokken--distorm64-1.7.30.tar.gz
==> make
 #include <python2.5/Python.h>
          ^
1 error generated.
make: *** [../../src/pydistorm.o] Error 1
make: *** Waiting for unfinished jobs....

@tdsmith
Copy link
Contributor

tdsmith commented May 5, 2015

Oops, closed my PR against bokken accidentally. It needs work and I don't use it so it's not a real priority for me; you can use #36052 as a starting point if you want to take a crack at it.

@Jo-Con-El
Copy link

Anyway we are going to deprecate the pyew engine (which is the culprit of using distorm64) in the next release (1.7 is out since a couple of days), so maybe you can move on and just prefer radare2-only builds.

@tschoonj tschoonj mentioned this issue May 22, 2015
50 tasks
@Wingless-Archangel
Copy link

After I try to install again the same error is still persist in homebrew.

brew install bokken
==> Downloading https://inguma.eu/attachments/download/197/bokken-1.6.tar.gz
Already downloaded: /Library/Caches/Homebrew/bokken-1.6.tar.gz
==> Downloading http://ftp.de.debian.org/debian/pool/main/d/distorm64/distorm64_
Already downloaded: /Library/Caches/Homebrew/bokken--distorm64-1.7.30.tar.gz
==> make
 #include <python2.5/Python.h>
          ^
1 error generated.
make: *** [../../src/pydistorm.o] Error 1
make: *** Waiting for unfinished jobs....

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
bokken: fix build on Yosemite https://github.com/Homebrew/homebrew/pull/36052
bokken failed to build on OSX 10.10 due to Python 2.5 dependency https://github.com/Homebrew/homebrew/issues/32016

What should I do to fix this issue? Should I comment to install distorm64 and pyew in the formula?

@smarek
Copy link
Contributor

smarek commented Aug 9, 2015

I can confirm this issue exists on 10.10, and PR #36052 when merged fixes the issue

@apjanke
Copy link
Contributor

apjanke commented Sep 14, 2015

Same failure on 10.11 beta, too.

https://gist.github.com/apjanke/4a7d412815ab5f3d7269

@DomT4
Copy link
Member

DomT4 commented Mar 25, 2016

This was fixed.

@DomT4 DomT4 closed this as completed Mar 25, 2016
@Homebrew Homebrew locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.