root@rapid:/usr/src/asterisk/apps# make cc -fPIC -c -o app_rxfax.o app_rxfax.c In file included from app_rxfax.c:14: /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) /usr/include/asterisk/lock.h:300: error: (Each undeclared identifier is reported only once /usr/include/asterisk/lock.h:300: error: for each function it appears in.) app_rxfax.c: In function `phase_e_handler': app_rxfax.c:86: error: structure has no member named `cid' make: *** [app_rxfax.o] Error 1