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

Discussion in 'C++' started by yinglcs@gmail.com, Jan 11, 2009.

  1. Guest

    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.
    , Jan 11, 2009
    #1
    1. Advertising

  2. 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
    Erik Wikström, Jan 12, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim Meagher
    Replies:
    6
    Views:
    2,030
    naija naija
    Oct 28, 2004
  2. tvashtar
    Replies:
    17
    Views:
    965
  3. George Sakkis
    Replies:
    3
    Views:
    344
  4. Tim Meagher
    Replies:
    3
    Views:
    107
    Patrick.O.Ige
    Oct 27, 2004
  5. Astan
    Replies:
    1
    Views:
    179
    Astan
    May 24, 2012
Loading...

Share This Page