Hi folks,
I tried to install asterfax on my asterisk -1.6.1.6 machine , But when I tried to patch it I got the following error , could anyone provide a suitable solution .
[root@localhost modules]# ./install.sh
Generating input for menuselect ...
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
[CC] app_txfax.c -> app_txfax.o
In file included from app_txfax.c:22:
/usr/local/include/spandsp.h:105:32: error: spandsp/fax_modems.h: No such file or directory
/usr/local/include/spandsp.h:106:25: error: spandsp/fax.h: No such file or directory
In file included from app_txfax.c:28:
/usr/src/asterisk-1.6.1.6/include/asterisk/lock.h: In function ‘ast_mutex_init’:
/usr/src/asterisk-1.6.1.6/include/asterisk/lock.h:1697: warning: implicit declaration of function ‘pthread_mutexattr_settype’
In file included from /usr/src/asterisk-1.6.1.6/include/asterisk/config.h:30,
from /usr/src/asterisk-1.6.1.6/include/asterisk/channel.h:143,
from app_txfax.c:31:
/usr/src/asterisk-1.6.1.6/include/asterisk/utils.h: In function ‘_ast_strndup’:
/usr/src/asterisk-1.6.1.6/include/asterisk/utils.h:549: warning: implicit declaration of function ‘strndup’
/usr/src/asterisk-1.6.1.6/include/asterisk/utils.h:549: warning: incompatible implicit declaration of built-in function ‘strndup’
/usr/src/asterisk-1.6.1.6/include/asterisk/utils.h: In function ‘_ast_vasprintf’:
/usr/src/asterisk-1.6.1.6/include/asterisk/utils.h:588: warning: implicit declaration of function ‘vasprintf’
In file included from /usr/src/asterisk-1.6.1.6/include/asterisk/translate.h:36,
from app_txfax.c:34:
/usr/src/asterisk-1.6.1.6/include/asterisk/plc.h: At top level:
/usr/src/asterisk-1.6.1.6/include/asterisk/plc.h:119: error: conflicting types for ‘plc_state_t’
/usr/local/include/spandsp/plc.h:128: error: previous declaration of ‘plc_state_t’ was here
/usr/src/asterisk-1.6.1.6/include/asterisk/plc.h:132: error: conflicting types for ‘plc_rx’
/usr/local/include/spandsp/plc.h:142: error: previous declaration of ‘plc_rx’ was here
/usr/src/asterisk-1.6.1.6/include/asterisk/plc.h:140: error: conflicting types for ‘plc_fillin’
/usr/local/include/spandsp/plc.h:150: error: previous declaration of ‘plc_fillin’ was here
/usr/src/asterisk-1.6.1.6/include/asterisk/plc.h:146: error: conflicting types for ‘plc_init’
/usr/local/include/spandsp/plc.h:156: error: previous declaration of ‘plc_init’ was here
app_txfax.c:66: warning: data definition has no type or storage class
app_txfax.c:66: warning: type defaults to ‘int’ in declaration of ‘STANDARD_LOCAL_USER’
app_txfax.c:68: warning: data definition has no type or storage class
app_txfax.c:68: warning: type defaults to ‘int’ in declaration of ‘LOCAL_USER_DECL’
app_txfax.c: In function ‘phase_e_handler’:
app_txfax.c:92: warning: implicit declaration of function ‘fax_get_far_ident’
app_txfax.c: In function ‘txfax_exec’:
app_txfax.c:115: error: storage size of ‘fax’ isn’t known
app_txfax.c:163: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness
app_txfax.c:196: warning: implicit declaration of function ‘LOCAL_USER_ADD’
app_txfax.c:232: warning: implicit declaration of function ‘fax_init’
app_txfax.c:236: warning: assignment discards qualifiers from pointer target type
app_txfax.c:240: warning: implicit declaration of function ‘fax_set_local_ident’
app_txfax.c:243: warning: assignment discards qualifiers from pointer target type
app_txfax.c:246: warning: implicit declaration of function ‘fax_set_header_info’
app_txfax.c:249: warning: implicit declaration of function ‘fax_set_tx_file’
app_txfax.c:252: warning: implicit declaration of function ‘fax_set_phase_e_handler’
app_txfax.c:263: warning: implicit declaration of function ‘fax_rx_process’
app_txfax.c:266: warning: implicit declaration of function ‘fax_tx_process’
app_txfax.c:274: error: incompatible types in assignment
app_txfax.c:302: warning: implicit declaration of function ‘fax_release’
app_txfax.c:308: warning: implicit declaration of function ‘LOCAL_USER_REMOVE’
app_txfax.c:115: warning: unused variable ‘fax’
app_txfax.c: At top level:
app_txfax.c:351: warning: no previous prototype for ‘unload_module’
app_txfax.c: In function ‘unload_module’:
app_txfax.c:353: error: ‘STANDARD_HANGUP_LOCALUSERS’ undeclared (first use in this function)
app_txfax.c:353: error: (Each undeclared identifier is reported only once
app_txfax.c:353: error: for each function it appears in.)
app_txfax.c: At top level:
app_txfax.c:358: warning: no previous prototype for ‘load_module’
app_txfax.c:364: warning: no previous prototype for ‘description’
app_txfax.c:370: warning: no previous prototype for ‘usecount’
app_txfax.c: In function ‘usecount’:
app_txfax.c:374: warning: implicit declaration of function ‘STANDARD_USECOUNT’
app_txfax.c: At top level:
app_txfax.c:379: warning: no previous prototype for ‘key’
make[1]: *** [app_txfax.o] Error 1
make: *** [apps] Error 2
mkdir: cannot create directory `/usr/lib/asterfax/modules/backup': File exists
mv: cannot stat `/usr/lib/asterisk/modules/app_txfax.so': No such file or directory
mv: cannot stat `/usr/src/asterisk-1.6.1.6/apps/app_txfax.so': No such file or directoryjavascript:replaceText('%20:

',%20document.forms.postmodify.message);