I'm tring to compile fax applications on Debian system.
the spandsp library compiles ok, and when i try to
patch the make file in apps directory as is said in the instructions it returns errors.
I'm using cvs version of asterisk .


--------------------------
voipgw:/usr/src/asterisk/apps# patch < Makefile.patch
patching file Makefile
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 68.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
--------------------------

Makefile.rej:

***************
*** 35,44 ****
  #APPS+=app_sql_odbc.so

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/include/zap.h ]; then echo "app_rpt.so" ; fi)


  CFLAGS+=-fPIC

  ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
  CFLAGS+=-DUSEPOSTGRESVM
  endif
--- 35,47 ----
  #APPS+=app_sql_odbc.so

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/include/zap.h ]; then echo "app_rpt.so" ; fi)


+ APPS+=$(shell if [ -f /usr/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi)
+ APPS+=$(shell if [ -f /usr/local/include/spandsp.h ]; then echo "app_rxfax.so app_txfax.so app_dtmftotext.so" ; fi)
+
CFLAGS+=-fPIC


ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
CFLAGS+=-DUSEPOSTGRESVM
endif
***************
*** 65,74 ****
gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c


  app_todd.so: app_todd.o
        $(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto

app_voicemail.so : app_voicemail.o
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz
else
ifeq ($(USE_POSTGRES_VM_INTERFACE),1)
--- 68,95 ----
gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c


  app_todd.so: app_todd.o
        $(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto

+ app_rxfax.so : app_rxfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
+ app_rxfax.o: app_rxfax.c
+ gcc -O2 -g -Iinclude -I../include -c -o app_rxfax.o app_rxfax.c
+
+ app_txfax.so : app_txfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
+ app_txfax.o: app_txfax.c
+ gcc -O2 -g -Iinclude -I../include -c -o app_txfax.o app_txfax.c
+
+ app_dtmftotext.so : app_dtmftotext.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
+ app_dtmftotexto: app_dtmftotext.c
+ gcc -O2 -g -Iinclude -I../include -c -o app_dtmftotext.o app_dtmftotext.c
+
app_voicemail.so : app_voicemail.o
ifeq ($(USE_MYSQL_VM_INTERFACE),1)
$(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz
else
ifeq ($(USE_POSTGRES_VM_INTERFACE),1)


_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to