[Asterisk-Users] Problem compiling fax applications

Steve Hanselman SteveH at brendata.co.uk
Mon Jun 21 02:18:43 MST 2004


Here's a diff that will patch it properly.



-----Original Message-----
From: Damian Minkov [mailto:damian at space-comm.com] 
Sent: 21 June 2004 10:14
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Problem compiling fax applications

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
Asterisk-Users at 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



The information contained in this email is intended for the personal and confidential use
of the addressee only. It may also be privileged information. If you are not the intended
recipient then you are hereby notified that you have received this document in error and
that any review, distribution or copying of this document is strictly prohibited. If you have 
received  this communication in error, please notify Brendata immediately on: 

+44 (0)1268 466100, or email 'technical at brendata.co.uk' 

Brendata (UK) Ltd
Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX  UK
Registered Office as above. Registered in England No. 2764339

See our current vacancies at www.brendata.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.patch
Type: application/octet-stream
Size: 1332 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040621/decd9b14/Makefile.obj


More information about the asterisk-users mailing list