Technical Support
2005-Oct-04 08:32 UTC
[Asterisk-Users] Can't compile ast_rxfax with Asterisk 1.2.1b
I'm trying to get ast_rxfax and ast_txfax compiling with Asterisk 1.2.1 beta. The two ast_?xfax files don't compile: gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -fomit-frame-pointer -fPIC -D_GNU_SOURCE -c -o app_rxfax.o app_rxfax.c app_rxfax.c: In function 'phase_e_handler': app_rxfax.c:77: warning: implicit declaration of function 'fax_get_transfer_statistics' app_rxfax.c:78: warning: implicit declaration of function 'fax_get_far_ident' app_rxfax.c:79: warning: implicit declaration of function 'fax_get_local_ident' app_rxfax.c: In function 'rxfax_exec': app_rxfax.c:189: warning: pointer targets in passing argument 1 of '__builtin_strncpy' differ in signedness app_rxfax.c:259: warning: passing argument 1 of 'fax_init' from incompatible pointer type app_rxfax.c:260: error: 't30_state_t' has no member named 'verbose' app_rxfax.c:263: warning: implicit declaration of function 'fax_set_local_ident' app_rxfax.c:266: warning: implicit declaration of function 'fax_set_header_info' app_rxfax.c:267: warning: implicit declaration of function 'fax_set_rx_file' app_rxfax.c:269: warning: implicit declaration of function 'fax_set_phase_d_handler' app_rxfax.c:270: warning: implicit declaration of function 'fax_set_phase_e_handler' app_rxfax.c:281: warning: implicit declaration of function 'fax_rx_process' app_rxfax.c:284: warning: implicit declaration of function 'fax_tx_process' app_rxfax.c:321: warning: passing argument 1 of 'fax_release' from incompatible pointer type make[1]: *** [app_rxfax.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk-1.2.0-beta1/apps' make: *** [subdirs] Error 1 Does the latest asterisk break the fax apps? Any ideas anyone? Thanks, MD -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051004/8c312ce3/attachment.htm
I already asked this and I get no answer, but may be is the same issue that others already have on this app. I tried to compile app_rxfax.c & app_txfax.c, and always fails. Even if I put this on a different directory and I do gcc -pipe app_rxfax.c I get the same /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:300: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) /usr/include/asterisk/lock.h:300: (Each undeclared identifier is reported only once /usr/include/asterisk/lock.h:300: for each function it appears in.) Of course, checking the lock.h file, doesn't show anything wrong ( Or I cannot see that) Has somebody any idea about this? Carlos Alperin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051017/ab60f9ce/attachment.htm