Patch Error w/ v3.4.0 3rd Party Sources

afcarlafcarl Member Andy CarlOrganization: Northrop Grumman CorpProject: Distributed analysis of air vehicle subsystems ✭✭
Attempt to patch "mcpp-2.7.2" from the ICE v3.4 ThirdPary-Sources w/ the supplied patch file download resulted in the following error:

patch -p0 < patch.mcpp.2.7.2

"patching file ./src/internal.H
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."

Is there an update? The thirdparty souce file was download within the last weak. Please advise.

Thanks,
Andy

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    You didn't say which platform you were using but I'm assuming it's Windows. In this case, you need to add the --binary option when running patch.

    Regards,
    Mark
  • afcarlafcarl Member Andy CarlOrganization: Northrop Grumman CorpProject: Distributed analysis of air vehicle subsystems ✭✭
    Using the following command:

    "patch --binary -p0 < patch.mcpp.2.7.2"

    ...results in the following error messages:

    "patching file ./src/internal.H
    Hunk #1 FAILED at 390.
    Hunk #2 FAILED at 559.
    2 out of 2 hunks FAILED -- saving rejects to file ./src/internal.H.rej
    patching file ./src/main.c
    Hunk #1 FAILED at 326.
    1 out of 1 hunk FAILED -- saving rejects to file ./src/main.c.rej
    patching file ./src/support.c
    Hunk #1 FAILED at 188.
    Hunk #2 FAILED at 1722.
    2 out of 2 hunks FAILED -- saving rejects to file ./src/support.c.rej
    patching file ./src/system.c
    Hunk #1 FAILED at 3858.
    Hunk #2 FAILED at 3871.
    2 out of 2 hunks FAILED --saving rejects to file ./src/system.c.rej"

    Suggestions are appreciated!

    Thanks,
    Andy
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    I just tried to patch the mcpp 2.7.2 source distribution with the patch file we provide, and didn't find any problem:
    
    C:\Users\bernard\third-parties\mcpp\mcpp-2.7.2>patch -version
    patch 2.5.9
    Copyright (C) 1988 Larry Wall
    Copyright (C) 2003 Free Software Foundation, Inc.
    
    This program comes with NO WARRANTY, to the extent permitted by law.
    You may redistribute copies of this program
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.
    
    C:\Users\bernard\third-parties\mcpp\mcpp-2.7.2>patch -p0 --binary  < ..\patch.mcpp.2.7.2
    patching file ./src/internal.H
    patching file ./src/main.c
    patching file ./src/support.c
    patching file ./src/system.c
    
    

    Best regards,
    Bernard
  • omidomid Member Omid RashvandOrganization: L4iProject: Instant Messenger
    Same problem

    I have same problem with this patch :
    
    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\Omid>G:
    
    G:\>cd G:\IceThirdParty\mcpp\mcpp-2.7.2
    
    G:\IceThirdParty\mcpp\mcpp-2.7.2>patch -p0 --binary  < ..\patch.mcpp.2.7.2
    patching file ./src/internal.H
    Hunk #1 FAILED at 390.
    Hunk #2 FAILED at 559.
    2 out of 2 hunks FAILED -- saving rejects to file ./src/internal.H.rej
    patching file ./src/main.c
    Hunk #1 FAILED at 326.
    1 out of 1 hunk FAILED -- saving rejects to file ./src/main.c.rej
    patching file ./src/support.c
    Hunk #1 FAILED at 188.
    Hunk #2 FAILED at 1722.
    2 out of 2 hunks FAILED -- saving rejects to file ./src/support.c.rej
    patching file ./src/system.c
    Hunk #1 FAILED at 3858.
    Hunk #2 FAILED at 3871.
    2 out of 2 hunks FAILED -- saving rejects to file ./src/system.c.rej
    
    G:\IceThirdParty\mcpp\mcpp-2.7.2>
    
    

    can any one help me?
  • omidomid Member Omid RashvandOrganization: L4iProject: Instant Messenger
    Solved !

    just use EOL Convertor to convert internal.H, main.c,support.c and system.c to lf fromat.
    patch it now!

    Regards.
  • andy_84andy_84 Member Andrew SolovyovOrganization: MAIProject: simple grid-like system
    omid wrote: »
    just use EOL Convertor to convert internal.H, main.c,support.c and system.c to lf fromat.
    patch it now!

    Thanks a lot, that helped!

    Regards, andy
Sign In or Register to comment.