Patch it by hand. Follow this help http://www.asteriskguru.com/tutorials/spandsp.html
Hi Giordano -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Tomislav Parcina Inviato: venerdì 13 gennaio 2006 12.28 A: [email protected] Oggetto: [Asterisk-Users] RE: RE: Spandsp In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I solved with this simple makefile: > > all: app_rxfax.so app_txfax.so > > app_rxfax.so: app_rxfax.c > gcc -shared -Xlinker -x -O2 -D_GNU_SOURCE -Iinclude -I../include -o > $@ app_rxfax.c -lspandsp -ltiff > > app_txfax.so: app_txfax.c > gcc -shared -Xlinker -x -O2 -D_GNU_SOURCE -Iinclude -I../include -o > $@ app_txfax.c -lspandsp -ltiff > > but as usual cut&paste is problematic. When I try to patch with this one I get error message. For me, this patch seams to work (I don't get error message). I have send mail to Steve Underwood, hopefully he will be able to help me. --- Makefile.orig 2006-01-11 18:39:21.000000000 +0800 +++ Makefile 2006-01-11 18:40:46.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 $@ $< -lspandsp -ltiff + +app_txfax.so : app_txfax.o + $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff + app_sql_postgres.o: app_sql_postgres.c $(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c app_sql_postgres.so: app_sql_postgres.o $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} - L/usr/local/pgsql/lib -lpq -- Tomislav Parcina [EMAIL PROTECTED] _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
