Hallo Folks,
ich versuche hier eine geraume Zeit chan_capi zu kompiliern. Ich habe Asterisk-11.2.1 aus den Quellen übersetzt. Die FC ist im System installiert und funktioniert.Ich verwende Debian 6 mit dem Kernel 2.6.32.
Ich versuche chan-capi-1.1.6 zu übersetzen und bekomme folgende Ausgabe (ftp://ftp.chan-capi.org/chan-capi/).
Kann mir bitte jemand auf die Sprünge helfen.
Danke schonmal für alle Antworten
ich versuche hier eine geraume Zeit chan_capi zu kompiliern. Ich habe Asterisk-11.2.1 aus den Quellen übersetzt. Die FC ist im System installiert und funktioniert.Ich verwende Debian 6 mit dem Kernel 2.6.32.
Ich versuche chan-capi-1.1.6 zu übersetzen und bekomme folgende Ausgabe (ftp://ftp.chan-capi.org/chan-capi/).
Code:
[CC] chan_capi.c -> chan_capi.o
In file included from chan_capi.h:48,
from chan_capi.c:32:
chan_capi_fmt.h: In function ‘cc_set_best_codec’:
chan_capi_fmt.h:230: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:230: error: too few arguments to function ‘ast_best_codec’
chan_capi_fmt.h:232: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:233: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:234: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:235: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_channel_task’:
chan_capi.c:539: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_send_digit_begin’:
chan_capi.c:972: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_send_digit’:
chan_capi.c:1032: error: dereferencing pointer to incomplete type
chan_capi.c:1041: error: dereferencing pointer to incomplete type
chan_capi.c:1046: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_alert’:
chan_capi.c:1084: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_signal_proceeding’:
chan_capi.c:1123: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_activehangup’:
chan_capi.c:1328: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_hangup’:
chan_capi.c:1389: error: dereferencing pointer to incomplete type
chan_capi.c:1432: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call_build_calling_party_number’:
chan_capi.c:1457: error: dereferencing pointer to incomplete type
chan_capi.c:1477: error: dereferencing pointer to incomplete type
chan_capi.c:1478: error: dereferencing pointer to incomplete type
chan_capi.c:1480: error: dereferencing pointer to incomplete type
chan_capi.c:1481: error: dereferencing pointer to incomplete type
chan_capi.c:1505: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call’:
chan_capi.c:1515: error: dereferencing pointer to incomplete type
chan_capi.c:1598: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘diva_get_b1_conf’:
chan_capi.c:1822: warning: passing argument 1 of ‘ast_getformatname’ makes pointer from integer without a cast
/usr/include/asterisk/format.h:419: note: expected ‘const struct ast_format *’ but argument is of type ‘int’
chan_capi.c: In function ‘capi_send_answer’:
chan_capi.c:1836: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_answer’:
chan_capi.c:1949: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_read’:
chan_capi.c:1968: error: dereferencing pointer to incomplete type
chan_capi.c:1983: error: dereferencing pointer to incomplete type
chan_capi.c:1983: warning: type defaults to ‘int’ in declaration of ‘__p’
chan_capi.c:1983: error: dereferencing pointer to incomplete type
chan_capi.c:1983: warning: comparison of distinct pointer types lacks a cast
chan_capi.c:1983: error: dereferencing pointer to incomplete type
chan_capi.c:1984: error: dereferencing pointer to incomplete type
chan_capi.c:1984: warning: type defaults to ‘int’ in declaration of ‘__p’
chan_capi.c:1984: error: dereferencing pointer to incomplete type
chan_capi.c:1984: warning: comparison of distinct pointer types lacks a cast
chan_capi.c:1984: error: dereferencing pointer to incomplete type
chan_capi.c:1985: error: dereferencing pointer to incomplete type
chan_capi.c:1985: warning: type defaults to ‘int’ in declaration of ‘__p’
chan_capi.c:1985: error: dereferencing pointer to incomplete type
chan_capi.c:1985: warning: comparison of distinct pointer types lacks a cast
chan_capi.c:1985: error: dereferencing pointer to incomplete type
chan_capi.c:1986: error: dereferencing pointer to incomplete type
chan_capi.c:1986: warning: type defaults to ‘int’ in declaration of ‘__p’
chan_capi.c:1986: error: dereferencing pointer to incomplete type
chan_capi.c:1986: warning: comparison of distinct pointer types lacks a cast
chan_capi.c:1986: error: dereferencing pointer to incomplete type
chan_capi.c:1987: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_write’:
chan_capi.c:2003: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_fixup’:
chan_capi.c:2016: error: dereferencing pointer to incomplete type
chan_capi.c:2018: error: dereferencing pointer to incomplete type
chan_capi.c:2018: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_bridge_transfer’:
chan_capi.c:2126: error: dereferencing pointer to incomplete type
chan_capi.c:2126: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_bridge’:
chan_capi.c:2270: error: dereferencing pointer to incomplete type
chan_capi.c:2271: error: dereferencing pointer to incomplete type
chan_capi.c:2274: error: dereferencing pointer to incomplete type
chan_capi.c:2274: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_new’:
chan_capi.c:2443: error: dereferencing pointer to incomplete type
chan_capi.c:2445: error: dereferencing pointer to incomplete type
chan_capi.c:2446: error: dereferencing pointer to incomplete type
chan_capi.c:2468: error: dereferencing pointer to incomplete type
chan_capi.c:2471: error: dereferencing pointer to incomplete type
chan_capi.c:2477: error: dereferencing pointer to incomplete type
chan_capi.c:2480: warning: passing argument 1 of ‘ast_getformatname’ makes pointer from integer without a cast
/usr/include/asterisk/format.h:419: note: expected ‘const struct ast_format *’ but argument is of type ‘int’
chan_capi.c:2480: error: dereferencing pointer to incomplete type
chan_capi.c:2493: error: dereferencing pointer to incomplete type
chan_capi.c:2494: error: dereferencing pointer to incomplete type
chan_capi.c:2502: error: dereferencing pointer to incomplete type
chan_capi.c:2503: error: dereferencing pointer to incomplete type
chan_capi.c:2509: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c:2528: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_request’:
chan_capi.c:2582: warning: passing argument 3 of ‘ast_getformatname_multiple’ makes pointer from integer without a cast
/usr/include/asterisk/format_cap.h:306: note: expected ‘struct ast_format_cap *’ but argument is of type ‘int’
chan_capi.c:2671: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘clear_channel_fax_loop’:
chan_capi.c:3177: warning: passing argument 2 of ‘ast_set_read_format’ makes pointer from integer without a cast
/usr/include/asterisk/channel.h:1795: note: expected ‘struct ast_format *’ but argument is of type ‘int’
chan_capi.c:3178: warning: passing argument 2 of ‘ast_set_write_format’ makes pointer from integer without a cast
/usr/include/asterisk/channel.h:1820: note: expected ‘struct ast_format *’ but argument is of type ‘int’
chan_capi.c:3229: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_handle_dtmf_fax’:
chan_capi.c:3646: error: dereferencing pointer to incomplete type
chan_capi.c:3649: error: dereferencing pointer to incomplete type
chan_capi.c:3650: error: dereferencing pointer to incomplete type
chan_capi.c:3658: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: warning: left-hand operand of comma expression has no effect
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: warning: left-hand operand of comma expression has no effect
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3662: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: warning: left-hand operand of comma expression has no effect
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: warning: left-hand operand of comma expression has no effect
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3663: error: dereferencing pointer to incomplete type
chan_capi.c:3669: error: dereferencing pointer to incomplete type
chan_capi.c:3675: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘search_did’:
chan_capi.c:3694: error: dereferencing pointer to incomplete type
chan_capi.c:3699: error: dereferencing pointer to incomplete type
chan_capi.c:3699: error: dereferencing pointer to incomplete type
chan_capi.c:3707: error: dereferencing pointer to incomplete type
chan_capi.c:3708: error: dereferencing pointer to incomplete type
chan_capi.c:3709: error: dereferencing pointer to incomplete type
chan_capi.c:3709: error: dereferencing pointer to incomplete type
chan_capi.c:3710: error: dereferencing pointer to incomplete type
chan_capi.c:3710: error: dereferencing pointer to incomplete type
chan_capi.c:3715: error: dereferencing pointer to incomplete type
chan_capi.c:3716: error: dereferencing pointer to incomplete type
chan_capi.c:3716: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘start_pbx_on_match’:
chan_capi.c:3783: error: dereferencing pointer to incomplete type
chan_capi.c:3793: error: dereferencing pointer to incomplete type
chan_capi.c:3793: error: dereferencing pointer to incomplete type
chan_capi.c:3808: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_did_digits’:
chan_capi.c:3869: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_queue_cause_control’:
chan_capi.c:3895: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_sendback_info’:
chan_capi.c:4030: error: dereferencing pointer to incomplete type
chan_capi.c:4033: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_info_indication’:
chan_capi.c:4069: error: dereferencing pointer to incomplete type
chan_capi.c:4187: error: dereferencing pointer to incomplete type
chan_capi.c:4188: error: dereferencing pointer to incomplete type
chan_capi.c:4264: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_get_samples’:
chan_capi.c:4554: error: ‘CC_FORMAT_SLINEAR’ undeclared (first use in this function)
chan_capi.c:4554: error: (Each undeclared identifier is reported only once
chan_capi.c:4554: error: for each function it appears in.)
chan_capi.c: In function ‘capidev_handle_data_b3_indication’:
chan_capi.c:4706: error: ‘union ast_frame_subclass’ has no member named ‘codec’
chan_capi.c:4708: error: ‘union ast_frame_subclass’ has no member named ‘codec’
chan_capi.c:4719: error: ‘union ast_frame_subclass’ has no member named ‘codec’
chan_capi.c: In function ‘capidev_handle_diva_signaling_manufacturer_infications’:
chan_capi.c:4932: error: dereferencing pointer to incomplete type
chan_capi.c:4933: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_active_indication’:
chan_capi.c:5020: error: dereferencing pointer to incomplete type
chan_capi.c:5021: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_b3_active_indication’:
chan_capi.c:5103: error: dereferencing pointer to incomplete type
chan_capi.c:5105: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_disconnect_indication’:
chan_capi.c:5243: error: dereferencing pointer to incomplete type
chan_capi.c:5247: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_indication’:
chan_capi.c:5436: error: dereferencing pointer to incomplete type
chan_capi.c:5468: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_msg’:
chan_capi.c:5878: error: dereferencing pointer to incomplete type
chan_capi.c:5879: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘get_active_plci’:
chan_capi.c:6006: error: dereferencing pointer to incomplete type
chan_capi.c:6007: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call_deflect’:
chan_capi.c:6021: error: dereferencing pointer to incomplete type
chan_capi.c:6046: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_peer_link’:
chan_capi.c:6119: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_retrieve’:
chan_capi.c:6130: error: dereferencing pointer to incomplete type
chan_capi.c:6133: error: dereferencing pointer to incomplete type
chan_capi.c:6153: error: dereferencing pointer to incomplete type
chan_capi.c:6176: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_ect’:
chan_capi.c:6208: error: dereferencing pointer to incomplete type
chan_capi.c:6279: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_keypad’:
chan_capi.c:6326: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_hold’:
chan_capi.c:6358: error: dereferencing pointer to incomplete type
chan_capi.c:6364: error: dereferencing pointer to incomplete type
chan_capi.c:6370: error: dereferencing pointer to incomplete type
chan_capi.c:6375: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_malicious’:
chan_capi.c:6414: error: dereferencing pointer to incomplete type
chan_capi.c:6417: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_getplci’:
chan_capi.c:6732: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_echosquelch’:
chan_capi.c:7183: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_holdtype’:
chan_capi.c:7207: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_signal_progress’:
chan_capi.c:7274: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_3pty_begin’:
chan_capi.c:7318: error: dereferencing pointer to incomplete type
chan_capi.c:7358: error: dereferencing pointer to incomplete type
chan_capi.c:7363: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capicommand_exec’:
chan_capi.c:7530: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_indicate’:
chan_capi.c:7580: error: dereferencing pointer to incomplete type
chan_capi.c:7591: error: dereferencing pointer to incomplete type
chan_capi.c:7606: error: dereferencing pointer to incomplete type
chan_capi.c:7618: error: dereferencing pointer to incomplete type
chan_capi.c:7630: error: dereferencing pointer to incomplete type
chan_capi.c:7635: error: dereferencing pointer to incomplete type
chan_capi.c:7640: error: dereferencing pointer to incomplete type
chan_capi.c:7652: error: dereferencing pointer to incomplete type
chan_capi.c:7671: error: dereferencing pointer to incomplete type
chan_capi.c:7684: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_do_channel_task’:
chan_capi.c:7825: error: dereferencing pointer to incomplete type
chan_capi.c:7833: error: dereferencing pointer to incomplete type
chan_capi.c:7834: error: dereferencing pointer to incomplete type
chan_capi.c:7837: error: dereferencing pointer to incomplete type
chan_capi.c: At top level:
chan_capi.c:8218: warning: initialization makes pointer from integer without a cast
chan_capi.c:8220: warning: initialization from incompatible pointer type
chan_capi.c:8228: warning: initialization from incompatible pointer type
chan_capi.c:8238: warning: initialization from incompatible pointer type
chan_capi.c: In function ‘conf_interface’:
chan_capi.c:8690: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:515: note: expected ‘struct ast_format_cap *’ but argument is of type ‘int *’
chan_capi.c:8693: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
/usr/include/asterisk/frame.h:515: note: expected ‘struct ast_format_cap *’ but argument is of type ‘int *’
chan_capi.c: In function ‘pbx_capi_add_diva_protocol_independent_extension’:
chan_capi.c:9096: error: dereferencing pointer to incomplete type
chan_capi.c:9096: error: dereferencing pointer to incomplete type
chan_capi.c:9097: error: dereferencing pointer to incomplete type
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make: *** [chan_capi.o] Fehler 1
Kann mir bitte jemand auf die Sprünge helfen.
Danke schonmal für alle Antworten
Zuletzt bearbeitet von einem Moderator: