Need help in applying patch in c/c++ source

Y

yinglcs

Hi, I am trying to follow this instruction to compile python source:

http://www.damonkohler.com/2008/12/p...n-android.html

I save the patch in to a file called 'Python2.4.5_xcompile.patch' and
put that in the same level as the top directory of Python-2.4.5

#cd Python-2.4.5
#patch -p1 < ../Python2.4.5_xcompile.patchpatching file
Makefile.pre.in
Hunk #1 FAILED at 166.
Hunk #2 FAILED at 193.
Hunk #3 FAILED at 326.
Hunk #4 FAILED at 457.
Hunk #5 FAILED at 750.
Hunk #6 FAILED at 858.
6 out of 6 hunks FAILED -- saving rejects to file Makefile.pre.in.rej
patching file Modules/pwdmodule.c
Hunk #1 FAILED at 77.
1 out of 1 hunk FAILED -- saving rejects to file Modules/
pwdmodule.c.rej
patching file Modules/socketmodule.c
patching file Objects/fileobject.c
patching file Python/pystrtod.c
Hunk #1 FAILED at 54.
Hunk #2 FAILED at 218.
2 out of 2 hunks FAILED -- saving rejects to file Python/
pystrtod.c.rej
patching file setup.py
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 211 with fuzz 1.

But i get a bunch of 'Hunk #... FAILED'. Does this make sense?

Thank you for any help.
 
E

Erik Wikström

Hi, I am trying to follow this instruction to compile python source:

http://www.damonkohler.com/2008/12/p...n-android.html

I save the patch in to a file called 'Python2.4.5_xcompile.patch' and
put that in the same level as the top directory of Python-2.4.5

You are doing something wrong, either you have to wrong version of the
Python source installed or you have to wrong patch. Either way this has
nothing to do with C++, you should try asking the one who provided the
patch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top