[Asterisk-Users] RxFax/TxFax - Compile Problem

Alexander Lopez alex.lopez at opsys.com
Fri Sep 16 08:02:20 MST 2005


I had sone trouble with this also.

But I got it.

I used the latest SpanDSP
0.0.9pre1
I used the applications app)_txfax and app_rxfax from the previous release 0.0.2pre8

I have included my makefile and the two app fiels that complied on the Latest CVS (last night) on FC3.

Apps/MakeFile  
#
# Asterisk -- A telephony toolkit for Linux.
#
# Makefile for PBX applications
#
# Copyright (C) 1999-2005, Digium
#
# Mark Spencer <markster at digium.com>
#
# This program is free software, distributed under the terms of
# the GNU General Public License
#

APPS=app_dial.so app_playback.so app_voicemail.so app_directory.so app_mp3.so\
     app_system.so app_echo.so app_record.so app_image.so app_url.so app_disa.so \
     app_adsiprog.so app_getcpeid.so app_milliwatt.so \
     app_zapateller.so app_setcallerid.so app_festival.so \
     app_queue.so app_senddtmf.so app_parkandannounce.so app_striplsd.so \
     app_setcidname.so app_lookupcidname.so app_substring.so app_macro.so \
     app_authenticate.so app_softhangup.so app_lookupblacklist.so \
     app_waitforring.so app_privacy.so app_db.so app_chanisavail.so \
     app_enumlookup.so app_transfer.so app_setcidnum.so app_cdr.so \
     app_hasnewvoicemail.so app_sayunixtime.so app_cut.so app_read.so \
     app_setcdruserfield.so app_random.so app_ices.so app_eval.so \
     app_nbscat.so app_sendtext.so app_exec.so app_sms.so \
     app_groupcount.so app_txtcidname.so app_controlplayback.so \
     app_talkdetect.so app_alarmreceiver.so app_userevent.so app_verbose.so \
     app_test.so app_forkcdr.so app_math.so app_realtime.so \
     app_dumpchan.so app_waitforsilence.so app_while.so app_setrdnis.so \
     app_md5.so app_readfile.so app_chanspy.so app_settransfercapability.so \
     app_dictate.so app_externalivr.so app_directed_pickup.so app_rxfax.so app_txfax.so

#
# Obsolete things...
#
#APPS+=app_sql_postgres.so
#APPS+=app_sql_odbc.so

#
# Experimental things
#
#APPS+=app_ivrdemo.so
#APPS+=app_skel.so
#APPS+=app_rpt.so

ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h),)
  APPS+=app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so
endif

ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
APPS+=app_osplookup.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)
ifneq ($(shell if [[ 0x`$(CROSS_COMPILE_BIN)curl-config --vernum` -ge 0x70907 ]]; then echo "OK" ; fi),)
  ifneq (${CURLLIBS},)
    APPS+=app_curl.so
  endif
endif

CFLAGS+=-fPIC

#
# If you have UnixODBC you can use ODBC voicemail
# storage
#
# Uncomment to use ODBC storage
#CFLAGS+=-DUSE_ODBC_STORAGE
# Uncomment for extended ODBC voicemail storage
#CFLAGS+=-DEXTENDED_ODBC_STORAGE
# See doc/README.odbcstorage for more information

all: $(APPS)

clean:
        rm -f *.so *.o look .depend

%.so : %.o
        $(CC) $(SOLINK) -o $@ $<

app_rpt.so : app_rpt.o
        $(CC) $(SOLINK) -o $@ $< -ltonezone

install: all
        for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
        rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
        rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so

app_curl.so: app_curl.o
        $(CC) $(SOLINK) -o $@ $< $(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 $@ $< -L/usr/local/pgsql/lib -lpq

app_sql_odbc.so: app_sql_odbc.o
        $(CC) $(SOLINK) -o $@ $< -lodbc

look:   look.c
        $(CC) -pipe -O6 -g look.c -o look -lncurses

ifeq (SunOS,$(shell uname))
app_chanspy.so: app_chanspy.o
        $(CC) $(SOLINK) -o $@ $< -lrt
endif


ifneq ($(wildcard .depend),)
 include .depend
endif

depend: .depend

.depend:
        ../build_tools/mkdep $(CFLAGS) `ls *.c`

env:
        env

____________________________________

rtxfax.c


I had to delete a routine that checked for chan_callerid in an old release,

And bingo it complied.

I do not know if it is stable howeer I will test over the weekend...

Alex





> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> David Sampson
> Sent: Friday, September 16, 2005 9:37 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] RxFax/TxFax - Compile Problem
> 
> If I understand correctly you are supposed to patch the 
> Makefile in the apps directory and then run the main 
> Makefile.  I've tried both ways - the patch failed on the 
> main Makefile.  Should I try to make that work?
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Dave Cotton
> Sent: Friday, September 16, 2005 3:05 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] RxFax/TxFax - Compile Problem
> 
> On Thu, 2005-09-15 at 16:10 -0400, David Sampson wrote:
> > I’ve reduced my problem down to this:
> > 
> >  
> > 
> > root at pemcomm:/usr/src/asterisk/asterisk-1.0.9/apps# make
> 
> Are you trying to use make from the apps directory?
> 
> You have to run make from the main asterisk source directory.
> 
> Look at the patch file necessary for the main Makefile.
> 
> 
> -- 
> 
> Dave Cotton <dcotton at linuxautrement.com>
> 
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> 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
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> 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
> 



More information about the asterisk-users mailing list