I'm trying to install spandsp But when I try to patch the Makefile it gives this error [root@pbxmilkshake apps]# patch < apps_makefile.patch patching file Makefile Reversed (or previously applied) patch detected! Assume -R? [n] y Hunk #1 succeeded at 41 (offset -6 lines). Hunk #2 FAILED at 67. is it ok to go on
On Fri, 2005-01-07 at 16:07 +0200, Altus Snyman wrote:> I'm trying to install spandsp > But when I try to patch the Makefile it gives this error > [root@pbxmilkshake apps]# patch < apps_makefile.patch > patching file Makefile > Reversed (or previously applied) patch detected! Assume -R? [n] y > Hunk #1 succeeded at 41 (offset -6 lines). > Hunk #2 FAILED at 67. > > is it ok to go onThe patch required is so trivial its better to do it manually. Look at the makefile.patch and edit the Makefile accordingly. -- Dave Cotton <dcotton@linuxautrement.com>
> I'm trying to install spandsp > But when I try to patch the Makefile it gives this error > [root@pbxmilkshake apps]# patch < apps_makefile.patch > patching file Makefile > Reversed (or previously applied) patch detected! Assume -R? [n] y > Hunk #1 succeeded at 41 (offset -6 lines). > Hunk #2 FAILED at 67. > > is it ok to go onSince you did not mention which * release you're using (cvs head verses v1.0 stable), I'll assume cvs head. I'd have to guess that because there has been a substantial number code changes to cvs head, Steve probably needs to update the patch to match the cvs head code. If you look very close at the apps_makefile.patch, you can probably figure out where each of the patch items belong in the Makefile.
Basically the changes in the apps/Makefile have progressed while the patch makefile have not. Here is a current patch that works as of CVS-HEAD-01/06/05-14:47:06 Regards, Jim On Fri, 7 Jan 2005, Altus Snyman wrote:> I'm trying to install spandsp > But when I try to patch the Makefile it gives this error > [root@pbxmilkshake apps]# patch < apps_makefile.patch > patching file Makefile > Reversed (or previously applied) patch detected! Assume -R? [n] y > Hunk #1 succeeded at 41 (offset -6 lines). > Hunk #2 FAILED at 67. > > is it ok to go on > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- =========================================================================Jim Radford <jradford@npl.com> http://www.jimradford.com/ =========================================================================-------------- next part -------------- --- Makefile.orig 2005-01-05 17:00:52.000000000 -0800 +++ Makefile 2005-01-05 17:02:09.000000000 -0800 @@ -49,6 +49,8 @@ APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi) +APPS+=$(shell if [ -f /usr/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so" ; fi) +APPS+=$(shell if [ -f /usr/local/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so" ; fi) CURLLIBS=$(shell curl-config --libs) ifneq (${CURLLIBS},) @@ -78,6 +80,12 @@ rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so +app_rxfax.so : app_rxfax.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + +app_txfax.so : app_txfax.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + app_curl.so: app_curl.o $(CC) $(SOLINK) -o $@ $< $(CURLLIBS)
The answer to this problem is the same as for every other time the same question has been asked. Steve Brian Dingman wrote:>I edited the makefile and asterisk builds properly, but when I go to >start it, I get the following error: > >[app_rxfax.so]Jan 11 18:44:12 WARNING[13877]: loader.c:258 >ast_load_resource: libspandsp.so.0: cannot open shared object file: No >such file or directory >Jan 11 18:44:12 WARNING[13877]: loader.c:440 load_modules: Loading >module app_rxfax.so failed! > >
Steve Underwood wrote:> The answer to this problem is the same as for every other time the same > question has been asked.What he means is that if you put your error into google and click search, it will come up with the same question being asked and answered multiple times. Congratulations on the Makefile! :-) -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)