I'm a newb when it comes to patch. I have a combine_wave-0.3.orig and a combine_wave-0.3 directory. This is what I get:
[EMAIL PROTECTED] ~]# patch < combine_wave-0.3.patch can't find file to patch at input line 4 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |diff -Naur combine_wave-0.3.orig/combine_wave.c combine_wave-0.3/combine_wave.c |--- combine_wave-0.3.orig/combine_wave.c 2005-10-06 14:44:10.000000000 +0200 |+++ combine_wave-0.3/combine_wave.c 2007-10-05 21:02:17.000000000 +0200 -------------------------- File to patch: ----- Mike Hammett Intelligent Computing Solutions http://www.ics-il.com ----- Original Message ----- From: "Patrick" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Tuesday, January 15, 2008 11:19 AM Subject: Re: [asterisk-users] Asterisk 1.4 Call Recording > Hi Mike, > > On Tue, 2008-01-15 at 10:57 -0600, Mike Hammett wrote: >> Are there any tricks to getting combine_wave to make? > > Patch attached. Builds fine with patch on Fedora 8. > > Regards, > Patrick > > -------------------------------------------------------------------------------- > diff -Naur combine_wave-0.3.orig/combine_wave.c > combine_wave-0.3/combine_wave.c > --- combine_wave-0.3.orig/combine_wave.c 2005-10-06 14:44:10.000000000 > +0200 > +++ combine_wave-0.3/combine_wave.c 2007-10-05 21:02:17.000000000 +0200 > @@ -19,8 +19,8 @@ > > void running_info() > { > -fprintf(stderr,\ > -" RUNNNING COMMANDS > +fprintf(stderr, > +" RUNNNING COMMANDS\n\ > b toggles move both channels / move right channel delay mode.\n\ > ESC exits.\n\ > 'z' 'x' 1 sample forward / backward.\n\ > @@ -39,8 +39,8 @@ > > void usage() > { > -fprintf(stderr,\ > -"Usage: > +fprintf(stderr, > +"Usage:\n\ > combine_wave [-a] [-d milli seconds delay right channel relative to > left]\n\ > [-e samples delay right channel relative to left]\n\ > [-k] -l filename_left [-m] -o output_filename -r filename_right [s start > seek offset].\n\ > diff -Naur combine_wave-0.3.orig/combine_wave.h > combine_wave-0.3/combine_wave.h > --- combine_wave-0.3.orig/combine_wave.h 2005-10-06 14:44:10.000000000 > +0200 > +++ combine_wave-0.3/combine_wave.h 2007-10-05 21:02:52.000000000 +0200 > @@ -5,6 +5,7 @@ > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > +#include <string.h> > > #include <signal.h> > #include <errno.h> > diff -Naur combine_wave-0.3.orig/Makefile combine_wave-0.3/Makefile > --- combine_wave-0.3.orig/Makefile 2005-10-06 14:44:10.000000000 +0200 > +++ combine_wave-0.3/Makefile 2007-10-05 21:00:43.000000000 +0200 > @@ -6,13 +6,13 @@ > CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > .c.o: > - gcc $(CFLAGS) -c $< > + $(CC) $(CFLAGS) -c $< > > OBJECT =\ > combine_wave.o > > a.out : $(OBJECT) > - gcc -o combine_wave $(OBJECT) > + $(CC) $(LDFLAGS) -o combine_wave $(OBJECT) > > # DEPENDENCIES > combine_wave.o : combine_wave.c combine_wave.h wave_header.h > -------------------------------------------------------------------------------- > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users