cannot find libsangoma gcc -Werror -I/usr/local/freeswitch/include -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/local/freeswitch/include/apr-1 -I/usr/local/freeswitch/include/srtp -I/usr/local/freeswitch/include/apr-1 -fPIC -Wall -I/home/karl/projects/freeswitch-trunk/src/sqlite -I/home/karl/projects/freeswitch-trunk -I/home/karl/projects/freeswitch-trunk/src/include -I/usr/local/freeswitch/include -DSWITCH_MOD_DIR=/usr/local/freeswitch/mod -DSWITCH_PREFIX_DIR=/usr/local/freeswitch -DSWITCH_CONF_DIR=/usr/local/freeswitch/conf -DSWITCH_DB_DIR=/usr/local/freeswitch/db -DSWITCH_LOG_DIR=/usr/local/freeswitch/log -DSWITCH_SCRIPT_DIR=/usr/local/freeswitch/scripts -DSWITCH_HTDOCS_DIR=/usr/local/freeswitch/htdocs -I/usr/local/include -I/usr/src/libpri -I/usr/src/linux/include -I. -I/usr/include -D__LINUX__ -D_REENTRANT -D_GNU_SOURCE -DAFT_A104 -fPIC -c mod_wanpipe.c -o mod_wanpipe.o mod_wanpipe.c:34:24: error: libsangoma.h: No such file or directory mod_wanpipe.c:35:25: error: sangoma_pri.h: No such file or directory mod_wanpipe.c:92: error: field ‘spri’ has incomplete type mod_wanpipe.c:107: error: syntax error before ‘sangoma_api_hdr_t’ cc1: warnings being treated as errors mod_wanpipe.c:107: warning: no semicolon at end of struct or union mod_wanpipe.c:109: error: ‘socket’ redeclared as different kind of symbol /usr/include/sys/socket.h:100: error: previous declaration of ‘socket’ was here mod_wanpipe.c:113: error: syntax error before ‘*’ token mod_wanpipe.c:113: warning: type defaults to ‘int’ in declaration of ‘call’ mod_wanpipe.c:113: warning: data definition has no type or storage class mod_wanpipe.c:123: error: syntax error before ‘}’ token mod_wanpipe.c: In function ‘str2node’: mod_wanpipe.c:144: error: ‘PRI_CPE’ undeclared (first use in this function) mod_wanpipe.c:144: error: (Each undeclared identifier is reported only once mod_wanpipe.c:144: error: for each function it appears in.) mod_wanpipe.c:146: error: ‘PRI_NETWORK’ undeclared (first use in this function) mod_wanpipe.c: In function ‘str2switch’: mod_wanpipe.c:153: error: ‘PRI_SWITCH_NI2’ undeclared (first use in this function) mod_wanpipe.c:155: error: ‘PRI_SWITCH_DMS100’ undeclared (first use in this function) mod_wanpipe.c:157: error: ‘PRI_SWITCH_LUCENT5E’ undeclared (first use in this function) mod_wanpipe.c:159: error: ‘PRI_SWITCH_ATT4ESS’ undeclared (first use in this function) mod_wanpipe.c:161: error: ‘PRI_SWITCH_EUROISDN_E1’ undeclared (first use in this function) mod_wanpipe.c:163: error: ‘PRI_SWITCH_GR303_EOC’ undeclared (first use in this function) mod_wanpipe.c:165: error: ‘PRI_SWITCH_GR303_TMC’ undeclared (first use in this function) mod_wanpipe.c: In function ‘str2l1’: mod_wanpipe.c:173: error: ‘PRI_LAYER_1_ALAW’ undeclared (first use in this function) mod_wanpipe.c:175: error: ‘PRI_LAYER_1_ULAW’ undeclared (first use in this function) mod_wanpipe.c: In function ‘str2dp’: mod_wanpipe.c:181: error: ‘PRI_INTERNATIONAL_ISDN’ undeclared (first use in this function) mod_wanpipe.c:183: error: ‘PRI_NATIONAL_ISDN’ undeclared (first use in this function) mod_wanpipe.c:185: error: ‘PRI_LOCAL_ISDN’ undeclared (first use in this function) mod_wanpipe.c:187: error: ‘PRI_PRIVATE’ undeclared (first use in this function) mod_wanpipe.c:189: error: ‘PRI_UNKNOWN’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:209: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c:210: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c:211: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c:213: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c:214: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘wanpipe_on_init’: mod_wanpipe.c:228: error: ‘wanpipe_tdm_api_t’ undeclared (first use in this function) mod_wanpipe.c:228: error: syntax error before ‘tdm_api’ mod_wanpipe.c:227: warning: unused variable ‘channel’ mod_wanpipe.c:226: warning: unused variable ‘tech_pvt’ mod_wanpipe.c: At top level: mod_wanpipe.c:232: error: initializer element is not constant mod_wanpipe.c:234: warning: type defaults to ‘int’ in declaration of ‘channel’ mod_wanpipe.c:234: error: ‘session’ undeclared here (not in a function) mod_wanpipe.c:234: warning: initialization makes integer from pointer without a cast mod_wanpipe.c:234: error: initializer element is not constant mod_wanpipe.c:234: warning: data definition has no type or storage class mod_wanpipe.c:235: error: syntax error before ‘void’ mod_wanpipe.c:237: warning: type defaults to ‘int’ in declaration of ‘tech_pvt’ mod_wanpipe.c:237: warning: initialization makes integer from pointer without a cast mod_wanpipe.c:237: error: initializer element is not constant mod_wanpipe.c:237: warning: data definition has no type or storage class mod_wanpipe.c:238: error: syntax error before ‘void’ mod_wanpipe.c:242: warning: type defaults to ‘int’ in declaration of ‘err’ mod_wanpipe.c:242: error: redefinition of ‘err’ mod_wanpipe.c:229: error: previous definition of ‘err’ was here mod_wanpipe.c:242: warning: implicit declaration of function ‘sangoma_tdm_set_codec’ mod_wanpipe.c:242: error: invalid type argument of ‘->’ mod_wanpipe.c:242: error: ‘tdm_api’ undeclared here (not in a function) mod_wanpipe.c:242: error: ‘WP_SLINEAR’ undeclared here (not in a function) mod_wanpipe.c:242: error: initializer element is not constant mod_wanpipe.c:242: warning: data definition has no type or storage class mod_wanpipe.c:244: warning: type defaults to ‘int’ in declaration of ‘mtu_mru’ mod_wanpipe.c:244: warning: implicit declaration of function ‘sangoma_tdm_get_usr_mtu_mru’ mod_wanpipe.c:244: error: invalid type argument of ‘->’ mod_wanpipe.c:244: error: initializer element is not constant mod_wanpipe.c:244: warning: data definition has no type or storage class mod_wanpipe.c:245: error: syntax error before string constant mod_wanpipe.c:245: warning: type defaults to ‘int’ in declaration of ‘switch_log_printf’ mod_wanpipe.c:245: error: conflicting types for ‘switch_log_printf’ /usr/local/freeswitch/include/switch_log.h:97: error: previous declaration of ‘switch_log_printf’ was here mod_wanpipe.c:245: warning: data definition has no type or storage class mod_wanpipe.c:249: warning: type defaults to ‘int’ in declaration of ‘err’ mod_wanpipe.c:249: error: redefinition of ‘err’ mod_wanpipe.c:229: error: previous definition of ‘err’ was here mod_wanpipe.c:249: warning: implicit declaration of function ‘sangoma_tdm_set_usr_period’ mod_wanpipe.c:249: error: invalid type argument of ‘->’ mod_wanpipe.c:249: error: initializer element is not constant mod_wanpipe.c:249: warning: data definition has no type or storage class mod_wanpipe.c:250: warning: type defaults to ‘int’ in declaration of ‘mtu_mru’ mod_wanpipe.c:250: error: redefinition of ‘mtu_mru’ mod_wanpipe.c:244: error: previous definition of ‘mtu_mru’ was here mod_wanpipe.c:250: error: invalid type argument of ‘->’ mod_wanpipe.c:250: error: initializer element is not constant mod_wanpipe.c:250: warning: data definition has no type or storage class mod_wanpipe.c:251: error: syntax error before string constant mod_wanpipe.c:254: error: syntax error before string constant mod_wanpipe.c:254: warning: type defaults to ‘int’ in declaration of ‘switch_channel_perform_hangup’ mod_wanpipe.c:254: error: conflicting types for ‘switch_channel_perform_hangup’ /usr/local/freeswitch/include/switch_channel.h:324: error: previous declaration of ‘switch_channel_perform_hangup’ was here mod_wanpipe.c:254: warning: data definition has no type or storage class mod_wanpipe.c:263: error: syntax error before string constant mod_wanpipe.c:263: warning: type defaults to ‘int’ in declaration of ‘switch_channel_perform_hangup’ mod_wanpipe.c:263: error: conflicting types for ‘switch_channel_perform_hangup’ /usr/local/freeswitch/include/switch_channel.h:324: error: previous declaration of ‘switch_channel_perform_hangup’ was here mod_wanpipe.c:263: warning: data definition has no type or storage class mod_wanpipe.c:271: error: syntax error before string constant mod_wanpipe.c:271: warning: type defaults to ‘int’ in declaration of ‘switch_channel_perform_hangup’ mod_wanpipe.c:271: error: conflicting types for ‘switch_channel_perform_hangup’ /usr/local/freeswitch/include/switch_channel.h:324: error: previous declaration of ‘switch_channel_perform_hangup’ was here mod_wanpipe.c:271: warning: data definition has no type or storage class mod_wanpipe.c:276: error: syntax error before ‘&’ token mod_wanpipe.c:276: warning: type defaults to ‘int’ in declaration of ‘switch_core_session_set_read_codec’ mod_wanpipe.c:276: error: conflicting types for ‘switch_core_session_set_read_codec’ /usr/local/freeswitch/include/switch_core.h:730: error: previous declaration of ‘switch_core_session_set_read_codec’ was here mod_wanpipe.c:276: warning: data definition has no type or storage class mod_wanpipe.c:277: error: syntax error before ‘&’ token mod_wanpipe.c:277: warning: type defaults to ‘int’ in declaration of ‘switch_core_session_set_write_codec’ mod_wanpipe.c:277: error: conflicting types for ‘switch_core_session_set_write_codec’ /usr/local/freeswitch/include/switch_core.h:745: error: previous declaration of ‘switch_core_session_set_write_codec’ was here mod_wanpipe.c:277: warning: data definition has no type or storage class mod_wanpipe.c:285: error: syntax error before ‘&’ token mod_wanpipe.c:286: error: syntax error before ‘&’ token mod_wanpipe.c:297: error: syntax error before ‘&’ token mod_wanpipe.c:297: warning: type defaults to ‘int’ in declaration of ‘teletone_dtmf_detect_init’ mod_wanpipe.c:297: error: conflicting types for ‘teletone_dtmf_detect_init’ /usr/local/freeswitch/include/libteletone_detect.h:181: error: previous declaration of ‘teletone_dtmf_detect_init’ was here mod_wanpipe.c:297: warning: data definition has no type or storage class mod_wanpipe.c:305: error: syntax error before string constant mod_wanpipe.c:305: warning: type defaults to ‘int’ in declaration of ‘switch_channel_perform_set_state’ mod_wanpipe.c:305: error: conflicting types for ‘switch_channel_perform_set_state’ /usr/local/freeswitch/include/switch_channel.h:81: error: previous declaration of ‘switch_channel_perform_set_state’ was here mod_wanpipe.c:305: warning: data definition has no type or storage class mod_wanpipe.c: In function ‘wanpipe_on_hangup’: mod_wanpipe.c:340: error: dereferencing pointer to incomplete type mod_wanpipe.c:342: error: dereferencing pointer to incomplete type mod_wanpipe.c:343: error: dereferencing pointer to incomplete type mod_wanpipe.c:346: warning: implicit declaration of function ‘sangoma_socket_close’ mod_wanpipe.c:346: error: dereferencing pointer to incomplete type mod_wanpipe.c:348: error: dereferencing pointer to incomplete type mod_wanpipe.c:349: error: dereferencing pointer to incomplete type mod_wanpipe.c:354: error: dereferencing pointer to incomplete type mod_wanpipe.c:355: warning: implicit declaration of function ‘pri_hangup’ mod_wanpipe.c:355: error: dereferencing pointer to incomplete type mod_wanpipe.c:355: error: dereferencing pointer to incomplete type mod_wanpipe.c:355: error: dereferencing pointer to incomplete type mod_wanpipe.c:356: warning: implicit declaration of function ‘pri_destroycall’ mod_wanpipe.c:356: error: dereferencing pointer to incomplete type mod_wanpipe.c:356: error: dereferencing pointer to incomplete type mod_wanpipe.c:358: error: dereferencing pointer to incomplete type mod_wanpipe.c:359: error: dereferencing pointer to incomplete type mod_wanpipe.c:370: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_answer_channel’: mod_wanpipe.c:410: error: dereferencing pointer to incomplete type mod_wanpipe.c:410: error: dereferencing pointer to incomplete type mod_wanpipe.c:411: warning: implicit declaration of function ‘pri_answer’ mod_wanpipe.c:411: error: dereferencing pointer to incomplete type mod_wanpipe.c:411: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_read_frame’: mod_wanpipe.c:434: error: dereferencing pointer to incomplete type mod_wanpipe.c:434: error: dereferencing pointer to incomplete type mod_wanpipe.c:438: error: dereferencing pointer to incomplete type mod_wanpipe.c:441: error: dereferencing pointer to incomplete type mod_wanpipe.c:441: error: dereferencing pointer to incomplete type mod_wanpipe.c:444: error: dereferencing pointer to incomplete type mod_wanpipe.c:444: error: dereferencing pointer to incomplete type mod_wanpipe.c:449: warning: implicit declaration of function ‘sangoma_socket_waitfor’ mod_wanpipe.c:449: error: dereferencing pointer to incomplete type mod_wanpipe.c:449: error: ‘POLLIN’ undeclared (first use in this function) mod_wanpipe.c:449: error: ‘POLLERR’ undeclared (first use in this function) mod_wanpipe.c:449: error: ‘POLLHUP’ undeclared (first use in this function) mod_wanpipe.c:453: warning: implicit declaration of function ‘sangoma_readmsg_socket’ mod_wanpipe.c:453: error: dereferencing pointer to incomplete type mod_wanpipe.c:454: error: dereferencing pointer to incomplete type mod_wanpipe.c:455: error: dereferencing pointer to incomplete type mod_wanpipe.c:455: error: dereferencing pointer to incomplete type mod_wanpipe.c:467: error: dereferencing pointer to incomplete type mod_wanpipe.c:467: error: dereferencing pointer to incomplete type mod_wanpipe.c:471: error: dereferencing pointer to incomplete type mod_wanpipe.c:472: error: dereferencing pointer to incomplete type mod_wanpipe.c:474: error: dereferencing pointer to incomplete type mod_wanpipe.c:474: error: dereferencing pointer to incomplete type mod_wanpipe.c:474: error: dereferencing pointer to incomplete type mod_wanpipe.c:475: error: dereferencing pointer to incomplete type mod_wanpipe.c:483: error: dereferencing pointer to incomplete type mod_wanpipe.c:483: error: dereferencing pointer to incomplete type mod_wanpipe.c:487: error: dereferencing pointer to incomplete type mod_wanpipe.c:488: error: dereferencing pointer to incomplete type mod_wanpipe.c:488: error: dereferencing pointer to incomplete type mod_wanpipe.c:489: error: dereferencing pointer to incomplete type mod_wanpipe.c:496: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_write_frame’: mod_wanpipe.c:519: error: dereferencing pointer to incomplete type mod_wanpipe.c:519: error: dereferencing pointer to incomplete type mod_wanpipe.c:520: error: dereferencing pointer to incomplete type mod_wanpipe.c:520: error: dereferencing pointer to incomplete type mod_wanpipe.c:524: error: dereferencing pointer to incomplete type mod_wanpipe.c:530: error: dereferencing pointer to incomplete type mod_wanpipe.c:530: error: ‘POLLOUT’ undeclared (first use in this function) mod_wanpipe.c:530: error: ‘POLLERR’ undeclared (first use in this function) mod_wanpipe.c:530: error: ‘POLLHUP’ undeclared (first use in this function) mod_wanpipe.c:537: warning: implicit declaration of function ‘sangoma_sendmsg_socket’ mod_wanpipe.c:537: error: dereferencing pointer to incomplete type mod_wanpipe.c:538: error: dereferencing pointer to incomplete type mod_wanpipe.c:538: error: dereferencing pointer to incomplete type mod_wanpipe.c:557: error: dereferencing pointer to incomplete type mod_wanpipe.c:557: error: dereferencing pointer to incomplete type mod_wanpipe.c:561: error: dereferencing pointer to incomplete type mod_wanpipe.c:562: error: dereferencing pointer to incomplete type mod_wanpipe.c:580: error: dereferencing pointer to incomplete type mod_wanpipe.c:581: error: dereferencing pointer to incomplete type mod_wanpipe.c:581: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_send_dtmf’: mod_wanpipe.c:617: error: dereferencing pointer to incomplete type mod_wanpipe.c:619: error: dereferencing pointer to incomplete type mod_wanpipe.c:627: error: dereferencing pointer to incomplete type mod_wanpipe.c:627: error: dereferencing pointer to incomplete type mod_wanpipe.c:628: error: dereferencing pointer to incomplete type mod_wanpipe.c:628: error: dereferencing pointer to incomplete type mod_wanpipe.c:632: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_kill_channel’: mod_wanpipe.c:654: error: dereferencing pointer to incomplete type mod_wanpipe.c:655: error: dereferencing pointer to incomplete type mod_wanpipe.c:656: error: dereferencing pointer to incomplete type mod_wanpipe.c: In function ‘wanpipe_outgoing_channel’: mod_wanpipe.c:732: error: invalid application of ‘sizeof’ to incomplete type ‘struct private_object’ mod_wanpipe.c:733: error: dereferencing pointer to incomplete type mod_wanpipe.c:736: error: dereferencing pointer to incomplete type mod_wanpipe.c:792: error: dereferencing pointer to incomplete type mod_wanpipe.c:797: warning: implicit declaration of function ‘sangoma_span_chan_fromif’ mod_wanpipe.c:798: error: dereferencing pointer to incomplete type mod_wanpipe.c:798: warning: implicit declaration of function ‘sangoma_open_tdmapi_span_chan’ mod_wanpipe.c:803: error: dereferencing pointer to incomplete type mod_wanpipe.c:817: error: dereferencing pointer to incomplete type mod_wanpipe.c:817: error: ‘SANGOMA_PRI_READY’ undeclared (first use in this function) mod_wanpipe.c:818: error: dereferencing pointer to incomplete type mod_wanpipe.c:821: error: ‘SANGOMA_MAX_CHAN_PER_SPAN’ undeclared (first use in this function) mod_wanpipe.c:853: error: dereferencing pointer to incomplete type mod_wanpipe.c:853: warning: implicit declaration of function ‘pri_new_call’ mod_wanpipe.c:853: error: dereferencing pointer to incomplete type mod_wanpipe.c:856: error: dereferencing pointer to incomplete type mod_wanpipe.c:859: warning: implicit declaration of function ‘pri_sr_new’ mod_wanpipe.c:859: warning: assignment makes pointer from integer without a cast mod_wanpipe.c:860: warning: implicit declaration of function ‘pri_sr_set_channel’ mod_wanpipe.c:861: warning: implicit declaration of function ‘pri_sr_set_bearer’ mod_wanpipe.c:862: warning: implicit declaration of function ‘pri_sr_set_called’ mod_wanpipe.c:863: warning: implicit declaration of function ‘pri_sr_set_caller’ mod_wanpipe.c:867: error: ‘PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN’ undeclared (first use in this function) mod_wanpipe.c:868: warning: implicit declaration of function ‘pri_sr_set_redirecting’ mod_wanpipe.c:872: error: ‘PRI_REDIR_UNCONDITIONAL’ undeclared (first use in this function) mod_wanpipe.c:874: warning: implicit declaration of function ‘pri_setup’ mod_wanpipe.c:874: error: dereferencing pointer to incomplete type mod_wanpipe.c:874: error: dereferencing pointer to incomplete type mod_wanpipe.c:876: warning: implicit declaration of function ‘pri_sr_free’ mod_wanpipe.c:880: error: dereferencing pointer to incomplete type mod_wanpipe.c:880: error: dereferencing pointer to incomplete type mod_wanpipe.c:888: error: dereferencing pointer to incomplete type mod_wanpipe.c:898: error: dereferencing pointer to incomplete type mod_wanpipe.c: At top level: mod_wanpipe.c:908: warning: ‘struct pri’ declared inside parameter list mod_wanpipe.c:908: warning: its scope is only this definition or declaration, which is probably not what you want mod_wanpipe.c:915: warning: ‘struct pri’ declared inside parameter list mod_wanpipe.c: In function ‘s_pri_message’: mod_wanpipe.c:917: warning: passing argument 1 of ‘s_pri_error’ from incompatible pointer type mod_wanpipe.c: In function ‘switch_module_load’: mod_wanpipe.c:926: warning: implicit declaration of function ‘pri_set_error’ mod_wanpipe.c:927: warning: implicit declaration of function ‘pri_set_message’ mod_wanpipe.c: At top level: mod_wanpipe.c:952: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_info’: mod_wanpipe.c:954: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c:957: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:962: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_hangup’: mod_wanpipe.c:968: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:969: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c:978: error: dereferencing pointer to incomplete type mod_wanpipe.c:979: error: dereferencing pointer to incomplete type mod_wanpipe.c:982: error: dereferencing pointer to incomplete type mod_wanpipe.c: At top level: mod_wanpipe.c:992: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_answer’: mod_wanpipe.c:999: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1001: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:1014: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_proceed’: mod_wanpipe.c:1020: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1022: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:1082: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_ring’: mod_wanpipe.c:1091: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1092: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c:1102: warning: implicit declaration of function ‘pri_proceeding’ mod_wanpipe.c:1103: warning: implicit declaration of function ‘pri_acknowledge’ mod_wanpipe.c:1112: error: invalid application of ‘sizeof’ to incomplete type ‘struct private_object’ mod_wanpipe.c:1113: error: dereferencing pointer to incomplete type mod_wanpipe.c:1129: error: dereferencing pointer to incomplete type mod_wanpipe.c:1140: error: dereferencing pointer to incomplete type mod_wanpipe.c:1143: error: dereferencing pointer to incomplete type mod_wanpipe.c:1144: error: dereferencing pointer to incomplete type mod_wanpipe.c:1145: error: dereferencing pointer to incomplete type mod_wanpipe.c:1147: error: dereferencing pointer to incomplete type mod_wanpipe.c:1148: error: dereferencing pointer to incomplete type mod_wanpipe.c:1151: error: dereferencing pointer to incomplete type mod_wanpipe.c:1152: error: dereferencing pointer to incomplete type mod_wanpipe.c:1159: error: dereferencing pointer to incomplete type mod_wanpipe.c: At top level: mod_wanpipe.c:1178: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_restart’: mod_wanpipe.c:1185: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1185: error: ‘event’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:1209: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_dchan_up’: mod_wanpipe.c:1212: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1212: error: ‘SANGOMA_PRI_READY’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:1220: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_dchan_down’: mod_wanpipe.c:1223: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1223: error: ‘SANGOMA_PRI_READY’ undeclared (first use in this function) mod_wanpipe.c: At top level: mod_wanpipe.c:1231: error: syntax error before ‘sangoma_pri_event_t’ mod_wanpipe.c: In function ‘on_anything’: mod_wanpipe.c:1234: error: ‘spri’ undeclared (first use in this function) mod_wanpipe.c:1234: error: ‘event_type’ undeclared (first use in this function) mod_wanpipe.c:1235: warning: implicit declaration of function ‘sangoma_pri_event_str’ mod_wanpipe.c: In function ‘pri_thread_run’: mod_wanpipe.c:1246: warning: implicit declaration of function ‘SANGOMA_MAP_PRI_EVENT’ mod_wanpipe.c:1246: error: dereferencing pointer to incomplete type mod_wanpipe.c:1246: error: ‘SANGOMA_PRI_EVENT_ANY’ undeclared (first use in this function) mod_wanpipe.c:1247: error: dereferencing pointer to incomplete type mod_wanpipe.c:1247: error: ‘SANGOMA_PRI_EVENT_RING’ undeclared (first use in this function) mod_wanpipe.c:1250: error: dereferencing pointer to incomplete type mod_wanpipe.c:1250: error: ‘SANGOMA_PRI_EVENT_PROCEEDING’ undeclared (first use in this function) mod_wanpipe.c:1251: error: dereferencing pointer to incomplete type mod_wanpipe.c:1251: error: ‘SANGOMA_PRI_EVENT_ANSWER’ undeclared (first use in this function) mod_wanpipe.c:1252: error: dereferencing pointer to incomplete type mod_wanpipe.c:1252: error: ‘SANGOMA_PRI_EVENT_DCHAN_UP’ undeclared (first use in this function) mod_wanpipe.c:1253: error: dereferencing pointer to incomplete type mod_wanpipe.c:1253: error: ‘SANGOMA_PRI_EVENT_DCHAN_DOWN’ undeclared (first use in this function) mod_wanpipe.c:1254: error: dereferencing pointer to incomplete type mod_wanpipe.c:1254: error: ‘SANGOMA_PRI_EVENT_HANGUP_REQ’ undeclared (first use in this function) mod_wanpipe.c:1255: error: dereferencing pointer to incomplete type mod_wanpipe.c:1255: error: ‘SANGOMA_PRI_EVENT_HANGUP’ undeclared (first use in this function) mod_wanpipe.c:1256: error: dereferencing pointer to incomplete type mod_wanpipe.c:1256: error: ‘SANGOMA_PRI_EVENT_INFO_RECEIVED’ undeclared (first use in this function) mod_wanpipe.c:1257: error: dereferencing pointer to incomplete type mod_wanpipe.c:1257: error: ‘SANGOMA_PRI_EVENT_RESTART’ undeclared (first use in this function) mod_wanpipe.c:1259: error: dereferencing pointer to incomplete type mod_wanpipe.c:1260: error: dereferencing pointer to incomplete type mod_wanpipe.c:1267: warning: implicit declaration of function ‘sangoma_run_pri’ mod_wanpipe.c: In function ‘config_wanpipe’: mod_wanpipe.c:1408: error: ‘PRI_LAYER_1_ULAW’ undeclared (first use in this function) mod_wanpipe.c:1410: warning: implicit declaration of function ‘sangoma_init_pri’ gmake[1]: *** [mod_wanpipe.so] Error 1 gmake[1]: Leaving directory `/home/karl/projects/freeswitch-trunk/src/mod/endpoints/mod_wanpipe' make: *** [modules] Error 1