Programming :: Patch Command: Hunk #1 Succeeded At 25 With Fuzz 1

Oct 21, 2010

I am beginning to start to work with compiling and I get some confusing output adding patches to sourcecode (xosview-1.8.3). (The patch is for suppressing warnings while running the make command : deprecated conversion from * char to ** char ) Xosview compiles without the patch. The patch itself contains 17 files to add mostly const char instead of char. It is one single file containing also files in one subdirectory.
While running `patch < PATCHFILE.patch I had to copy'n'paste the filenames of the subdirectory to the terminal to keep it going. To get it going without much manual input I split it up for the two directories. I got the original patch and both splitted patches succeeding but with confusing output like :

patch unexpectedly ends in middle of line Hunk #2 succeeded at 78 with fuzz 1.

or just

patching file nfsmeter.h patch unexpectedly ends in middle of line # I splitted the original patch to every 17 files and this kind of output I get now at almost every patchfile. I downloaded patch source from debian
and running `pfind` (Puppy-linux speciality .sh) for search text in files showed off patch.c

Quote:
if (verbosity != SILENT)
say ("Hunk #%d FAILED at %s.
", hunk,
format_linenum (numbuf, newwhere));
} else {
if (verbosity == VERBOSE
[Code]........

As you can see the patch is working but what would I have to add to the patch? I added more newlines , added all lines to close a "{" if the patched line was inside ( also added "}" ), adjusted the path at the diff -uraNd /PATH/ -line, even deleted the diff line.

View 8 Replies


ADVERTISEMENT

Ubuntu :: Adding Patch To Wine: Hunk #1 FAILED At 94

Jul 7, 2010

So I'm trying to get Worms Armageddon working on linux via wine and following the instructions here. Downloaded source of Wine 1.1.39 from sourceforge, and using this patch. I try to patch by running this command:

Code:
patch -p0 < ../worms.patch
But I get this error in return:

Code:
patching file b/dlls/wined3d/swapchain_gdi.c
Hunk #1 FAILED at 94.
1 out of 1 hunk FAILED -- saving rejects to file b/dlls/wined3d/swapchain_gdi.c.rej
patching file b/server/window.c
Hunk #1 FAILED at 2310.

1 out of 1 hunk FAILED -- saving rejects to file b/server/window.c.rej I'm not to familiar with this patching and compiling from source business.

View 7 Replies View Related

Ubuntu :: Trying To Patch 10.10 I686 - 1 Out Of 1 Hunk FAILED -- Saving Rejects To File Linux-2.6/Documentation/kernel-parameters.txt.rej

Nov 16, 2010

I saw this forum post and I want to try it out so I went here and copied and pasted the following text into a file called test.patch.

Code:
---
Documentation/kernel-parameters.txt | 2
drivers/tty/tty_io.c | 1
include/linux/sched.h | 19 ++++
init/Kconfig | 12 +++
kernel/fork.c | 5 +
kernel/sched.c | 25 ++++--
kernel/sched_autogroup.c | 140 ++++++++++++++++++++++++++++++++++++
[Code]....

1 out of 1 hunk FAILED -- saving rejects to file linux-2.6/Documentation/kernel-parameters.txt.rej I'm not so good with patching so I am sure it is probably something easy.

View 7 Replies View Related

General :: Patching File Ssh2.c Hunk #1 FAILED At 477 - 1 Out Of 1 Hunk FAILED - Saving Rejects To File Ssh2.c.rej

Feb 11, 2010

I was installing PECL extension. i have downloaded the setup. then whatever process is mension in this link i have done that. PHP: Installation - Manual. when i m doing patch <patchfile i m getting this patching file ssh2.c Hunk #1 FAILED at 477. 1 out of 1 hunk FAILED -- saving rejects to file ssh2.c.rej

View 1 Replies View Related

General :: Getting Error While Patching The File Using Patch Command

Mar 8, 2010

When follow the below step for patching the file diff file1 file2 > patchfile.patch patch -p0 file1 < patchfile.patch but I got the following error after that Reversed (or previously applied) patch detected! Assume -R? [n] I dont know what happen here Kernel version is:

2.6.9-89.0.20.ELsmp
patch version is:
patch-2.5.4-20

View 1 Replies View Related

Programming :: Run Leach_makefile-2.27.patch With Ns2

Feb 24, 2010

i am trying to find out who may have leach_makefile-2.27.patch, i am trying to run the leach protocol on my machine but i need that patch in order to run it with ns2.

View 3 Replies View Related

General :: Apply Kernel Patch - Couldn't Find File To Patch

Apr 8, 2011

I just want to upgrade my Slackware 13.1 kernel (2.6.33.4) to the latest stable kernel from kernel.org (2.6.38.2). I have never done anything like this and I am a Linux newbie, so I would appreciate a "Kernel Patching for Dummies" version if possible. I did do a search on this forum and most of what I read was over my head. I found an FAQ on kernelnewbies.org on "How To Apply A Patch" but when I attempted what they suggested, it said it couldn't find the file to patch at line 5 and asked me which file to patch. So I CTRL-Z'd out of there and came here. Here's what I tried:

[code]...

View 14 Replies View Related

Programming :: Patch Binary Files From Different Library?

Jul 2, 2010

I am currently implementing an upgrade system for silent upgrades in my application. I am stuck. I need the code to patch binary files. But I can't find a good third party library. My code is in C# so I would prefer a C# library, but right now I would even go as far as using a library in another language and bind it into my C# code. But I just can't find a good patch/diff library. I must be missing something. Surely there must be some libraries out there that give us the ability to patch binary files?

View 8 Replies View Related

Programming :: Syntax Not Clear In A Kernel Patch?

Apr 2, 2010

I was going through init/calibrate.c.url

I am not clear with use of + sign before function names. If any one here is aware of this syntax let me know.
They have used + and - signs before some lines I am not sure of what they are?

View 2 Replies View Related

Ubuntu Installation :: Upgrade From 8.04 To 10.04 Not Succeeded

Sep 11, 2010

After the upgrade on this AMD Athlon Barton 2500+ system, root device not found.The Grub install had failed; the new grub.cfg file was non-existent. In the Grub folder there was only a env file.Succeeded in installing Grub2, but without the cfg file it didn't help any, of course.

Very disappointed that the new Grub install didn't succeed and that there is no 'repair' for such an event on the Live CD of 10.04.1.Had done a few upgrades, from 7.04 to 7.10 and to 8.04 without problems.Very surprised and shocked that an upgrade from one LTS to the following LTS does not work 'out of the box'

View 2 Replies View Related

Fedora :: Install Diablo 1 Through Wine On 64-bit 12 - 'Hunk #1 Failed'

Jan 5, 2010

I am running 64-bit Fedora 12, and am trying to install Diablo 1 through Wine. I installed wine from Yum, installed Diablo fine, but when I try to run it I get this message: wine: '/home/obriem5/.wine' is a 32-bit prefix, it cannot be used with wow64 Wine. On a side note, I tried installing Diablo using the guide given here, but received errors when trying to use the patch. (i.e, instead of seeing 'Hunk #1 succeeded', etc, I see 'Hunk #1 failed', etc.)

View 2 Replies View Related

Fedora :: Install The 32 Bit Version And Apparently Succeeded?

Jul 13, 2010

I have done some searching around and now know that the 64 bit version of Wine is useless. I tried to install the 32 bit version and apparently succeeded. The problem is that when I open Wine File the .wine-x86_64 folder reappears. I don't even know where the 32 bit folder is.

I have tried
Code:
yum erase *wine*
but it does not seem to work. However this does.

[Code]...

View 3 Replies View Related

Ubuntu Installation :: Synaptic Error : Not All Changes And Updates Succeeded?

Jul 15, 2010

I installed 10.04 and did the upgrades. After that I installed a few programs.Now when I try to install or uninstall something from synaptic it gives me this error at the end:

Code:
E: packagekit-backend-apt: subprocess installed post-installation script returned error exit status 2
I'm clueless as how to fix this. Can someone help me understand?

View 1 Replies View Related

General :: Remove Patch From Kernel / Apply A Squashfs-lzma Patch (squashfs 4.1cvs)?

Sep 11, 2010

is there a way to remove a patch from a kernel?

I need to apply a squashfs-lzma patch (squashfs 4.1cvs) to the liquorix kernel source which is already patched with squashfs 4.0.

how would I do that?I tried googling got this. url

but I dont know the command used to apply the patch the patch is called

35.4-3.patch.gz
url

but that patch includes more than squashfs,etc

View 1 Replies View Related

OpenSUSE :: Install Patch - Error "vmware-7.1.3-2.6.37-rc5.patch' Not Found"

May 11, 2011

I'm trying to install a patch but when I copy it into terminal I get message " /home/john/patch-modules_v62-opensuse.sh 'vmware-7.1.3-2.6.37-rc5.patch' not found. copy it to the current '/home/john' directory. Exiting" But I have it in my home directory!

View 3 Replies View Related

Networking :: OpenVPN Repeats Message: TEST ROUTES: 0/0 Succeeded Len=1 Ret=0 A=0 U/d=down - Connect To Server

Jun 7, 2011

I try to connect to my server (whose IP is x.x.x.x below) from my laptop. I have no idea why openvpn client won't work this time. It works fine in win7 before. I re-installed openvpn but it doesn't work neither. Then I searched for this issue, find that it is possibly caused by disabled DHCP Client service. I checked, and found it was enabled. Still won't work after restarting dhcp client service.

Basic Info:
OS: Windows 7
OpenVPN client: openvpn-2.2.0
DHCP Client Service started.

The following is the log during connecting:

Code:
Wed Jun 08 01:55:16 2011 OpenVPN 2.2.0 Win32-MSVC++ [SSL] [LZO2] built on Apr 26 2011
Wed Jun 08 01:55:16 2011 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Wed Jun 08 01:55:16 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Jun 08 01:55:16 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
[Code]....

View 1 Replies View Related

General :: Patch In .sh File - Error "patching: Command Not Found"

Mar 1, 2011

I have a script: `cd $FILEPATH && patch -i $TMPFILEA2$FILETMPPATH` Variable $FILESPATH is = /tmp/ardiff.AvUUGfOKa2/a/hello/ and Variable $TMPFILEA2$FILETMPPATH is = /tmp/ardiff.AvUUGfOKa2/b/hello/hello.c.patch. I don't know, why is it no working from script file, it write me message to terminal: ./ardiff.sh: line 242: patching: command not found.

But I have no PATCHING command there!!!! The paradox is, when I want to patch it from terminal (I write it to terminal by keyboard, it works).

View 4 Replies View Related

Ubuntu Installation :: Error Messages On Updates: "Not All Changes Succeeded."?

Sep 25, 2010

When I do the routine updates, which come every few day, I get the following message.(Please see the attached image.)

View 3 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

I am trying to learn how to pass more than a one-command startup for gnome-terminal.

I will give an example of what I'm trying to do here:

Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....

However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.

This same error occurs if the gnome-terminal line is changed to

Code:
gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 4 Replies View Related

Programming :: System Command / 'mcc' Is Not A Recognised As An Internal Or External Command?

Apr 13, 2010

I am writing a perl script which uses the matlab compiler to compile a .m file.

I am using the system("mcc �m file.m"). I have matlab installed and both script and exe are in the same drive.But i get the following error .

'mcc' is not a recognised as an internal or external command ,operable in program or batch file.

View 5 Replies View Related

Programming :: Show The Output Of Shell Command Into A Textbox, Ex Ps -efc Command?

Oct 20, 2010

I am using gtk to program GUI. How can I show the output of shell command into a textbox, ex ps -efc command ?

View 3 Replies View Related

Programming :: Convert This Awk Command From Command Line Into An Awk Script ?

Oct 15, 2010

I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:

This is what i have after my BEGIN

Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'

View 1 Replies View Related

Programming :: Calling Command From History Using Variable Like !$command?

Nov 19, 2008

suppose i store the history number of a command say :

1004 cat file

Then now i want to run it like : !1004 but by using a variable.

command=1004
!$command

i am getting errors like :

command=1004command

View 2 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Programming :: Command To Run Another One On Few Lines

Jul 23, 2010

Is there a command which can be used to run some other command on a few lines from a file or an o/p of some file. (the kind of role that -exec option does for the find command). (I have solved the purpose using a bash loop but would like to know if there exists a command).

View 4 Replies View Related

Programming :: Cp Command -f Is Not HAPPENING?

Mar 20, 2011

What's the deal with this bloody commandI trying to do an update of a product.The -f is suppose to "force" the overwrite of existing files isn't it?Well every time I run the command it keeps asking me to allow it to overwrite the files.. the programs is too long for me to sit here hitting the "y" and "enter key"

View 2 Replies View Related

Programming :: Use The Seq Command But Can't Get It To Work?

Mar 24, 2011

I have a script that will build a list of hosts and it works fine Code: for ((i=$START; i<=$END; i++)); do echo "$NAME$i"; done But I need it to build the START and END on different number formats (i.e. 1 -> 10, 01->10, 001 ->010)

I am trying to use the seq command but can't get it to work quite right with the -w flag in the following Code: for ((myseq=$START; myseq<=$END; myseq ++)) do echo "$NAME${myseq}" done I am fully aware that this syntax is probably wrong, and need to know how to correct it.

View 1 Replies View Related

Programming :: Add New Command In Minix?

Mar 12, 2011

Is anyone familiar with the Minix OS? i want to know what is the Process to add a new command in Minix that uses system call served by the memory manager server

View 1 Replies View Related

Programming :: Bash Command From PHP?

Jul 14, 2011

Distro: Centos 5, PHP 5I have done a bit research on running bash commands from php and there was little success. This is my relevant php script

<?php
echo exec('pwd');
?>

[code]...

View 16 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved