I can not patch makefile Please Help me any one

Comment on Asterisk spandsp
waseem
Joined: Thu 21 of Jun, 2007

I can not patch makefile Please Help me any one

Posted:Fri 29 of Jun, 2007 (05:22 UTC)
I am using Ret Hat 9 Astersik 1.2.4 Spandsp-0.0.2 mysql database (builten in Red Hat 9)

I have followed the steps for configurring Asterisk fax from http://www.asteriskguru.com/tutorials/spandsp.html

I am using follwing patch file obtain from http://www.soft-switch.org/downloads/snapshots/spandsp/test-apps-asterisk-1.2/


+++ Makefile 2006-09-03 15:09:49.000000000 +0800@@ -52,10 +52,14 @@

ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
APPS+=app_osplookup.so
endif

+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp.h $(CROSS_COMPILE_TARGET)/usr/include/spandsp.h),)+APPS+=app_rxfax.so app_txfax.so+endif+ifeq ($(findstring BSD,${OSARCH}),BSD)
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
endif

CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
@@ -100,10 +104,16 @@
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so

app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)

+app_rxfax.so : app_rxfax.o+ $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lspandsp -ltiff++app_txfax.so : app_txfax.o+ $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lspandsp -ltiff+app_sql_postgres.o: app_sql_postgres.c
$(CC) -pipe -I$(CROSS_COMPILE_TARGET)/usr/local/pgsql/include -I$(CROSS_COMPILE_TARGET)/usr/include/postgresql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c

app_sql_postgres.so: app_sql_postgres.o

I am getting following error on executing patch <apps_Makefile.patch

patching file Makefile
Hunk #2 FAILED at 104.
1 out of 2 hunks FAILED — saving rejects to file Makefile.rej

CAN ANY ONE PLEASE TELL ME WHAT CHANGES SHOULD I MAKE I THIS FILE TO WORK WITH mysql DATABASE