Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Need help in applying patch in c/c++ source

Reply
Thread Tools

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

 
 
yinglcs@gmail.com
Guest
Posts: n/a
 
      01-11-2009
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.
 
Reply With Quote
 
 
 
 
Erik Wikström
Guest
Posts: n/a
 
      01-12-2009
On 2009-01-12 00:54, wrote:
> 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.

--
Erik Wikström
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying a patch from a diff in python (if possible) Astan Python 1 05-24-2012 03:42 AM
Problem when applying Patch from issue1424152 to get https overauthenticating proxies working with urllib2 in Python 2.5 tvashtar Python 2 07-20-2009 05:58 PM
had installed Ilfak Guilfanov's patch v. MS patch none Computer Security 5 01-09-2006 08:53 AM
In addition to MS Blaster Worm patch, 3 week old patch reissued. why? Computer Support 6 08-14-2003 07:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57