Patch problems in Windows

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Patch problems in Windows

Post by jas0420 »

Hi all... Cacti noob here, on about Day #3 of trying to get my brain around this cool tool!

I was having a heck of a time trying to patch 0.8.6c running on a Win2K server. I could not find any reference to the problem here, so I figured I would post in case it might help someone in the future (someone like... me next time a patch comes out and I forgot what I did!).

Basically, I was copying the script off of the Patch page, opening a DOS window on the Cacti server, switching to my c:\cacti folder, and pasting the script into the DOS window.

It would download fine, but barf when it came time to actually apply the patch. I was getting the following response on all 3 patches I tried:


C:\cacti>patch -p1 -N < rrd_fetch_negative_numbers.patch
patching file `lib/rrd.php'
Assertion failed: hunk, file patch.c, line 321

abnormal program termination


After doing some digging, I found that this is a problem with the file patches posted on cacti.net only having a Line Feed character at the end of each line and not a Carriage Return.

I opened up each of the patches in WordPad, placed the cursor at the end of each line, drug to the right with the mouse button pressed, and released. A seemingly blank character or two would be highlighted at the end of the line. With those highlighted, I hit the Enter key.

Had to repeat this for every line in the patch. When done though, I saved, re-ran the patch, and this time it completed without errors. Worked on all three patches, actually. I assume I've got a flaky version of "patch"... Honestly not even sure where it came from! Going to try to find a more stable one.

So......... Just in case someone else that is Linux-challenged like myself comes up with that problem, that's what's behind it and at least one way to remedy it (albiet ugly!)

Happy graphing,
Jason
Goose
Posts: 1
Joined: Fri Jan 14, 2005 3:03 am
Location: Germany, Hamburg

Re: Patch problems in Windows

Post by Goose »

jas0420 wrote:I assume I've got a flaky version of "patch"... Honestly not even sure where it came from! Going to try to find a more stable one.
Happy graphing,
Jason
Hi Jason,
same is here. I searched for newer/other Version of "patch" but I did not find one :-? . If you have more success could you please share it.

Thanks, André
For my ally is the network.
And a powerfull ally is it.
You must feel the Network around you ...
anton.prus
Posts: 4
Joined: Tue Mar 31, 2009 3:11 am

Post by anton.prus »

same problem

cant install any patch from Official Patches [0.8.7d]

Official Patches [0.8.7d]

---- output --------------------------
D:\cacti>patch -p1 -N < graph_search.patch
patching file `lib/html_tree.php'
Assertion failed: hunk, file patch.c, line 321

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
---------------------------------------
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I suggest Windows users use the pre-patched files.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests