po-pbx:/usr/src/chan_capi-0.3.5 # make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
chan_capi.c:17:34: asterisk/channel_pvt.h: No such file or directory
In file included from /usr/include/linux/kernelcapi.h:13,
from /usr/include/linux/capi.h:18,
from chan_capi.c:35:
/usr/include/linux/list.h:563:2: warning: #warning "don't include kernel headers in userspace"
chan_capi.c: In function `capi_echo_canceller':
chan_capi.c:175: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_detect_dtmf':
chan_capi.c:225: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_send_digit':
chan_capi.c:272: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_alert':
chan_capi.c:356: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_activehangup':
chan_capi.c:521: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_hangup':
chan_capi.c:584: error: dereferencing pointer to incomplete type
chan_capi.c:619: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_call':
chan_capi.c:656: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_answer':
chan_capi.c:761: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_read':
chan_capi.c:807: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_write':
chan_capi.c:848: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_fixup':
chan_capi.c:989: error: dereferencing pointer to incomplete type
chan_capi.c: In function `capi_new':
chan_capi.c:1053: error: dereferencing pointer to incomplete type
chan_capi.c:1056: error: dereferencing pointer to incomplete type
chan_capi.c:1057: error: dereferencing pointer to incomplete type
chan_capi.c:1058: error: dereferencing pointer to incomplete type
chan_capi.c:1059: error: dereferencing pointer to incomplete type
chan_capi.c:1060: error: dereferencing pointer to incomplete type
chan_capi.c:1061: error: dereferencing pointer to incomplete type
chan_capi.c:1062: error: dereferencing pointer to incomplete type
chan_capi.c:1063: error: dereferencing pointer to incomplete type
chan_capi.c:1064: error: dereferencing pointer to incomplete type
chan_capi.c:1070: error: dereferencing pointer to incomplete type
chan_capi.c:1071: error: dereferencing pointer to incomplete type
chan_capi.c:1073: error: structure has no member named `callerid'
chan_capi.c:1074: error: structure has no member named `dnid'
chan_capi.c: In function `search_did':
chan_capi.c:1248: error: dereferencing pointer to incomplete type
chan_capi.c: In function `pipe_msg':
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c:1724: error: structure has no member named `dnid'
chan_capi.c: In function `load_module':
chan_capi.c:2793: warning: passing arg 1 of `ast_channel_register' from incompatible pointer type
chan_capi.c:2793: error: too many arguments to function `ast_channel_register'
chan_capi.c: In function `unload_module':
chan_capi.c:2813: warning: passing arg 1 of `ast_channel_unregister' from incompatible pointer type
make: *** [chan_capi.o] Error 1