chan_capi lässt sich nicht übersetzen

HerrFuchs

Neuer User
Mitglied seit
14 Jun 2012
Beiträge
24
Punkte für Reaktionen
0
Punkte
0
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/).
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:
Hallo,

chan_capi-HEADD herunter laden und die Asterisk-Header-Datei version.h auf den Versionsstring 110000 ändern.
 
Hallo MuadDib01,

danke erstmal für die Antwort. Kannst Du das bitte etwas genauer erläutern? Das ist mein erster Versuch Asterisk selbst zu übersetzen. hi hi
Ich habe unter "/usr/include/asterisk" eine version.h gefunden. Die siht bei mir so aus...
#error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
In dieser ast_version.h ist aber keine Versionsnummer. Da ist nur eine Konstante definiert. Mit meinen eher dürftigen c Kenntnissen bin ich da etwas überfordert.

Code:
/
*
 * Asterisk -- An open source telephony toolkit.
 *
 * Copyright (C) 2008, Digium, Inc.
 *
 * Russell Bryant <[email protected]>
 *
 * See [url]http://www.asterisk.org[/url] for more information about
 * the Asterisk project. Please do not directly contact
 * any of the maintainers of this project for assistance;
 * the project provides a web site, mailing lists and IRC
 * channels for your use.
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License Version 2. See the LICENSE file
 * at the top of the source tree.
 */

/*!
 * \file
 * \brief Asterisk version information
 * \author Russell Bryant <[email protected]>
 */

#ifndef __AST_VERSION_H
#define __AST_VERSION_H

/*!
 * \brief Retrieve the Asterisk version string.
 */
const char *ast_get_version(void);

/*!
 * \brief Retrieve the numeric Asterisk version
 *
 * Format ABBCC
 * AABB - Major version (1.4 would be 104)
 * CC - Minor version
 *
 * 1.4.17 would be 10417.
 */
const char *ast_get_version_num(void);

#endif /* __AST_VERSION_H */

Wäre schön wenn du mir noch einen Tip geben könntest.

Gruß
 
Zuletzt bearbeitet von einem Moderator:
Hallo,

temporär um chan_capi zu kompilieren eine version.h mit folgendne Inhalt generieren

#define ASTERISK_VERSION "11.0.0"
#define ASTERISK_VERSION_NUM 110000
 
Hallo,

danke für die Hilfe. Ich hab die version.h angelegt, die Fehlermeldung hat sich geändert aber make bricht immernoch ab. Ich verwende aber auch Asterisk 11.2.1. Braucht das chan-capi-HEAD zwingend die Version 11.0.0 oder muss die Version passen?

Code:
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: error: dereferencing pointer to incomplete type
chan_capi.c:2488: error: dereferencing pointer to incomplete type
chan_capi.c:2489: error: dereferencing pointer to incomplete type
chan_capi.c:2490: error: dereferencing pointer to incomplete type
chan_capi.c:2491: error: dereferencing pointer to incomplete type
chan_capi.c:2499: error: dereferencing pointer to incomplete type
chan_capi.c:2500: error: dereferencing pointer to incomplete type
chan_capi.c:2507: 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:2671: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘clear_channel_fax_loop’:
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:4264: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_diva_signaling_manufacturer_infications’:
chan_capi.c:4928: error: dereferencing pointer to incomplete type
chan_capi.c:4929: error: dereferencing pointer to incomplete type
chan_capi.c:4930: 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:5450: error: dereferencing pointer to incomplete type
chan_capi.c:5453: error: dereferencing pointer to incomplete type
chan_capi.c:5459: error: dereferencing pointer to incomplete type
chan_capi.c:5460: error: dereferencing pointer to incomplete type
chan_capi.c:5461: error: dereferencing pointer to incomplete type
chan_capi.c:5463: error: dereferencing pointer to incomplete type
chan_capi.c:5464: error: dereferencing pointer to incomplete type
chan_capi.c:5465: 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: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 ‘pbx_capi_add_diva_protocol_independent_extension’:
chan_capi.c:9096: error: dereferencing pointer to incomplete type
chan_capi.c:9097: error: dereferencing pointer to incomplete type
chan_capi.c:9097: warning: type defaults to ‘int’ in declaration of ‘__x’
chan_capi.c:9097: error: dereferencing pointer to incomplete type
chan_capi.c:9097: error: dereferencing pointer to incomplete type
chan_capi.c:9097: warning: passing argument 1 of ‘ast_strlen_zero’ makes pointer from integer without a cast
/usr/include/asterisk/strings.h:63: note: expected ‘const char *’ but argument is of type ‘int’
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make: *** [chan_capi.o] Fehler 1
 
Zuletzt bearbeitet von einem Moderator:
Hallo,

die aktuelle HEAD sollte funktionieren, vor dem make erst mal ein "make clean", damit eine neue config erstellt wird. Sollte dies nicht klappen, einfach ein paar Tage auf eine neue HEAD warten.
 
Ich habe ein vergleichbares Problem mit dem Head vom 26.2.2013 und Asterisk 11.2.1

ich kennen mich in der Materie nicht gut genug aus, um den Fehler zu beheben.

Code:
make
 [CC] chan_capi.c -> chan_capi.o
In file included from chan_capi.h:48:0,
                 from chan_capi.c:32:
chan_capi_fmt.h: In function 'cc_set_best_codec':
chan_capi_fmt.h:125:22: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:132:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:133:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:134:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:135:20: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_channel_task':
chan_capi.c:539:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_send_digit_begin':
chan_capi.c:972:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_send_digit':
chan_capi.c:1032:23: error: dereferencing pointer to incomplete type
chan_capi.c:1041:2: error: dereferencing pointer to incomplete type
chan_capi.c:1046:8: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_alert':
chan_capi.c:1084:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_signal_proceeding':
chan_capi.c:1123:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_activehangup':
chan_capi.c:1328:15: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_hangup':
chan_capi.c:1389:23: error: dereferencing pointer to incomplete type
chan_capi.c:1432:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_call_build_calling_party_number':
chan_capi.c:1457:23: error: dereferencing pointer to incomplete type
chan_capi.c:1464:7: error: dereferencing pointer to incomplete type
chan_capi.c:1465:11: error: dereferencing pointer to incomplete type
chan_capi.c:1466:18: error: dereferencing pointer to incomplete type
chan_capi.c:1471:7: error: dereferencing pointer to incomplete type
chan_capi.c:1471:56: error: dereferencing pointer to incomplete type
chan_capi.c:1472:30: error: dereferencing pointer to incomplete type
chan_capi.c:1505:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_call':
chan_capi.c:1515:23: error: dereferencing pointer to incomplete type
chan_capi.c:1598:27: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_send_answer':
chan_capi.c:1836:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_answer':
chan_capi.c:1949:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_read':
chan_capi.c:1968:23: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1987:6: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_write':
chan_capi.c:2003:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_fixup':
chan_capi.c:2016:23: error: dereferencing pointer to incomplete type
chan_capi.c:2018:2: error: dereferencing pointer to incomplete type
chan_capi.c:2018:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_bridge_transfer':
chan_capi.c:2126:4: error: dereferencing pointer to incomplete type
chan_capi.c:2126:4: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_bridge':
chan_capi.c:2270:24: error: dereferencing pointer to incomplete type
chan_capi.c:2271:24: error: dereferencing pointer to incomplete type
chan_capi.c:2274:2: error: dereferencing pointer to incomplete type
chan_capi.c:2274:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_new':
chan_capi.c:2443:2: error: dereferencing pointer to incomplete type
chan_capi.c:2445:5: error: dereferencing pointer to incomplete type
chan_capi.c:2446:5: error: dereferencing pointer to incomplete type
chan_capi.c:2468:21: error: dereferencing pointer to incomplete type
chan_capi.c:2471:21: error: dereferencing pointer to incomplete type
chan_capi.c:2477:5: error: dereferencing pointer to incomplete type
chan_capi.c:2480:2: error: dereferencing pointer to incomplete type
chan_capi.c:2488:16: error: dereferencing pointer to incomplete type
chan_capi.c:2489:6: error: dereferencing pointer to incomplete type
chan_capi.c:2490:6: error: dereferencing pointer to incomplete type
chan_capi.c:2491:6: error: dereferencing pointer to incomplete type
chan_capi.c:2499:16: error: dereferencing pointer to incomplete type
chan_capi.c:2500:6: error: dereferencing pointer to incomplete type
chan_capi.c:2507:5: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_request':
chan_capi.c:2671:25: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'clear_channel_fax_loop':
chan_capi.c:3229:5: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_handle_dtmf_fax':
chan_capi.c:3646:34: error: dereferencing pointer to incomplete type
chan_capi.c:3649:9: error: dereferencing pointer to incomplete type
chan_capi.c:3650:4: error: dereferencing pointer to incomplete type
chan_capi.c:3658:16: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3669:3: error: dereferencing pointer to incomplete type
chan_capi.c:3675:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'search_did':
chan_capi.c:3694:23: error: dereferencing pointer to incomplete type
chan_capi.c:3699:3: error: dereferencing pointer to incomplete type
chan_capi.c:3699:3: error: dereferencing pointer to incomplete type
chan_capi.c:3707:34: error: dereferencing pointer to incomplete type
chan_capi.c:3708:4: error: dereferencing pointer to incomplete type
chan_capi.c:3709:3: error: dereferencing pointer to incomplete type
chan_capi.c:3709:3: error: dereferencing pointer to incomplete type
chan_capi.c:3710:3: error: dereferencing pointer to incomplete type
chan_capi.c:3710:3: error: dereferencing pointer to incomplete type
chan_capi.c:3715:36: error: dereferencing pointer to incomplete type
chan_capi.c:3716:3: error: dereferencing pointer to incomplete type
chan_capi.c:3716:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'start_pbx_on_match':
chan_capi.c:3783:3: error: dereferencing pointer to incomplete type
chan_capi.c:3793:3: error: dereferencing pointer to incomplete type
chan_capi.c:3793:3: error: dereferencing pointer to incomplete type
chan_capi.c:3808:4: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_did_digits':
chan_capi.c:3869:14: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_queue_cause_control':
chan_capi.c:3895:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_sendback_info':
chan_capi.c:4030:13: error: dereferencing pointer to incomplete type
chan_capi.c:4033:7: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_info_indication':
chan_capi.c:4069:12: error: dereferencing pointer to incomplete type
chan_capi.c:4264:17: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_diva_signaling_manufacturer_infications':
chan_capi.c:4928:13: error: dereferencing pointer to incomplete type
chan_capi.c:4929:22: error: dereferencing pointer to incomplete type
chan_capi.c:4930:13: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_connect_active_indication':
chan_capi.c:5020:15: error: dereferencing pointer to incomplete type
chan_capi.c:5021:27: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_connect_b3_active_indication':
chan_capi.c:5103:36: error: dereferencing pointer to incomplete type
chan_capi.c:5105:9: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_disconnect_indication':
chan_capi.c:5243:15: error: dereferencing pointer to incomplete type
chan_capi.c:5247:12: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_connect_indication':
chan_capi.c:5436:13: error: dereferencing pointer to incomplete type
chan_capi.c:5450:14: error: dereferencing pointer to incomplete type
chan_capi.c:5453:13: error: dereferencing pointer to incomplete type
chan_capi.c:5459:13: error: dereferencing pointer to incomplete type
chan_capi.c:5460:22: error: dereferencing pointer to incomplete type
chan_capi.c:5461:13: error: dereferencing pointer to incomplete type
chan_capi.c:5463:13: error: dereferencing pointer to incomplete type
chan_capi.c:5464:22: error: dereferencing pointer to incomplete type
chan_capi.c:5465:13: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capidev_handle_msg':
chan_capi.c:5878:17: error: dereferencing pointer to incomplete type
chan_capi.c:5879:14: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'get_active_plci':
chan_capi.c:6006:7: error: dereferencing pointer to incomplete type
chan_capi.c:6007:7: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_call_deflect':
chan_capi.c:6021:23: error: dereferencing pointer to incomplete type
chan_capi.c:6046:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_peer_link':
chan_capi.c:6119:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_retrieve':
chan_capi.c:6130:23: error: dereferencing pointer to incomplete type
chan_capi.c:6133:7: error: dereferencing pointer to incomplete type
chan_capi.c:6153:3: error: dereferencing pointer to incomplete type
chan_capi.c:6176:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_ect':
chan_capi.c:6208:23: error: dereferencing pointer to incomplete type
chan_capi.c:6279:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_keypad':
chan_capi.c:6326:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_hold':
chan_capi.c:6358:23: error: dereferencing pointer to incomplete type
chan_capi.c:6364:3: error: dereferencing pointer to incomplete type
chan_capi.c:6370:3: error: dereferencing pointer to incomplete type
chan_capi.c:6375:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_malicious':
chan_capi.c:6414:23: error: dereferencing pointer to incomplete type
chan_capi.c:6417:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_getplci':
chan_capi.c:6732:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_echosquelch':
chan_capi.c:7183:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_holdtype':
chan_capi.c:7207:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_signal_progress':
chan_capi.c:7274:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_3pty_begin':
chan_capi.c:7318:23: error: dereferencing pointer to incomplete type
chan_capi.c:7358:3: error: dereferencing pointer to incomplete type
chan_capi.c:7363:10: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capicommand_exec':
chan_capi.c:7530:29: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'pbx_capi_indicate':
chan_capi.c:7580:23: error: dereferencing pointer to incomplete type
chan_capi.c:7591:3: error: dereferencing pointer to incomplete type
chan_capi.c:7606:3: error: dereferencing pointer to incomplete type
chan_capi.c:7618:3: error: dereferencing pointer to incomplete type
chan_capi.c:7630:3: error: dereferencing pointer to incomplete type
chan_capi.c:7635:3: error: dereferencing pointer to incomplete type
chan_capi.c:7640:3: error: dereferencing pointer to incomplete type
chan_capi.c:7652:3: error: dereferencing pointer to incomplete type
chan_capi.c:7671:3: error: dereferencing pointer to incomplete type
chan_capi.c:7684:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function 'capi_do_channel_task':
chan_capi.c:7825:4: error: dereferencing pointer to incomplete type
chan_capi.c:7833:69: error: dereferencing pointer to incomplete type
chan_capi.c:7834:7: error: dereferencing pointer to incomplete type
chan_capi.c:7837:5: error: dereferencing pointer to incomplete type
chan_capi.c: At top level:
chan_capi.c:8220:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8220:2: warning: (near initialization for 'capi_tech.requester') [enabled by default]
chan_capi.c:8228:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8228:2: warning: (near initialization for 'capi_tech.call') [enabled by default]
chan_capi.c:8238:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8238:2: warning: (near initialization for 'capi_tech.devicestate') [enabled by default]
chan_capi.c: In function 'pbx_capi_add_diva_protocol_independent_extension':
chan_capi.c:9096:31: error: dereferencing pointer to incomplete type
chan_capi.c:9097:14: error: dereferencing pointer to incomplete type
chan_capi.c:9097:14: error: dereferencing pointer to incomplete type
chan_capi.c:9097:14: error: dereferencing pointer to incomplete type
chan_capi.c:9097:3: warning: passing argument 1 of 'ast_strlen_zero' makes pointer from integer without a cast [enabled by default]
In file included from /usr/include/asterisk/utils.h:753:0,
                 from /usr/include/asterisk/config.h:30,
                 from /usr/include/asterisk/channel.h:143,
                 from chan_capi.h:25,
                 from chan_capi.c:32:
/usr/include/asterisk/strings.h:63:40: note: expected 'const char *' but argument is of type 'int'
make: *** [chan_capi.o] Fehler 1
wb:/home/wobremer/chan-capi-HEAD #
 
Hallo, bin auch auf das Problem gestoßen. chan_capi lässt sich mit asterisk-11.2.2 nicht übersetzten.

Grund scheint eine Änderung in Asterisk zu sein: auf Komponenten von ast_channel darf nur noch mit entsprechenden Funktionen zugegriffen werden.
In chan_capi wird an sehr vielen Stellen direkt auf die struct Komponenten von ast_channel zugegriffen.

Es sind also recht umfangreiche Änderungen in chan_capi erforderlich.

Jochen
 
Vermutlich viel zu spät, aber vermutlich werden solche Probleme immer wieder auftauchen, also:

Für Debian/Ubuntu Systeme

- alle(!) nötigen -dev Pakete installieren.
Tip: Im Zweifel die Ausgabe von configure durchgucken.

- Auf die "richtige" Kernel - chan_capi - asterisk Kombination achten.
Eine Kombi, die bei mir gut funktioniert hat ist kernel 2.6.32 bis 2.6.38, aktuelle chan_capi und asterisk 1.8.4.1.
Eine andere Kombi, für 3er kernel wäre: kernel 3.2.0 (wie in debian 7/wheezy), aktuelle chan_capi 1.6 und asterisk 1.8.12.2.
Vorsicht: Die "mitgelieferte" asterisk 1.8.13 geht *nicht*, das gibt Fehler beim chan_capi Bauen!

- Weitere Einschränkungen durch Hersteller beachten. Dialogic z.B. lässt sich nicht mit jedem kernel Build-en.

- *Nicht* den neusten kernel und die aktuellste asterisk Version "jagen". Der Trick meiner (leider aufwendigen und eher unerfreulichen) Erfahrung nach scheint zu sein, eine gute Kombination zu finden.

Was Debian (und bedingt Ubuntu) Systeme mit ISDN angeht, kann ich in gewissem Umfang Hilfe anbieten.
 
chan_capi mit Asterisk 11

Für chan_capi mit Asterisk 11 gibt es mitlerweile zwei Patches von Mihai Moldovan:
http://lists.melware.net/pipermail/chan-capi-users/2013-July/001361.html
http://lists.melware.net/pipermail/chan-capi-users/2013-July/001362.html

Das funktioniert bei mir mit Fedora 19:
  • kernel-3.11.6-200.fc19.x86_64
  • asterisk-11.5.1-2.fc19.x86_64
  • chan_capi Rev. 958 aus SVN mit Patches von Mihai Moldovan

ISDN Karte Eicon Diva Server. Der Divas V3 Treiber musste gepatcht werden, um mit Kernel > 3.8 kompiliert zu werden.

Jochen
 
Hallo zusammen,
wie aloish es angedeutet hat, bewahrheitet sich die Beständigkeit dieses Problems.

Aktuelle Installation:
Ubuntu 12.04 LTS 32bit
Asterisk 11.8.1
chan_capi-HEAD heute frisch geladen (ftp://ftp.chan-capi.org/chan-capi/)
Fehler, ähnlich, wie oben.
Den Versuch mit der version.h habe ich bereits gemacht: negativ.
output bei "make":

Code:
root@derdvoip:/home/voipadmin/chan-capi-HEAD# make
./create_config.sh "/usr/include"
Checking Asterisk version... 11.0.0
 * found Asterisk version 11
Using Asterisk 11.0 API
 * found new 'ast_dsp_set_digitmode' function
 * found new union data in ast_frame structure
 * found new union subclass in ast_frame structure
 * found ast_channel_release function
 * found new ast_devstate2str function
 * found ast_devstate_cache in ast_devstate_changed function
 * found requestor in ast_request
 * no format_t in ast_request
 * found const char in ast_register_application
 * found linkedid in ast_channel_alloc
 * no format_t in frame_defs
 * found rtp_engine.h
 * found ast_sockaddr structure
config.h complete.

 [CC] chan_capi.c -> chan_capi.o
In file included from chan_capi.h:48:0,
                 from chan_capi.c:32:
chan_capi_fmt.h: In function ‘cc_set_best_codec’:
chan_capi_fmt.h:125:22: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:132:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:133:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:134:20: error: dereferencing pointer to incomplete type
chan_capi_fmt.h:135:20: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_channel_task’:
chan_capi.c:539:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_send_digit_begin’:
chan_capi.c:972:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_send_digit’:
chan_capi.c:1032:23: error: dereferencing pointer to incomplete type
chan_capi.c:1041:2: error: dereferencing pointer to incomplete type
chan_capi.c:1046:8: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_alert’:
chan_capi.c:1084:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_signal_proceeding’:
chan_capi.c:1123:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_activehangup’:
chan_capi.c:1328:15: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_hangup’:
chan_capi.c:1389:23: error: dereferencing pointer to incomplete type
chan_capi.c:1432:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call_build_calling_party_number’:
chan_capi.c:1457:23: error: dereferencing pointer to incomplete type
chan_capi.c:1464:7: error: dereferencing pointer to incomplete type
chan_capi.c:1465:11: error: dereferencing pointer to incomplete type
chan_capi.c:1466:18: error: dereferencing pointer to incomplete type
chan_capi.c:1471:7: error: dereferencing pointer to incomplete type
chan_capi.c:1471:56: error: dereferencing pointer to incomplete type
chan_capi.c:1472:30: error: dereferencing pointer to incomplete type
chan_capi.c:1505:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call’:
chan_capi.c:1515:23: error: dereferencing pointer to incomplete type
chan_capi.c:1598:27: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_send_answer’:
chan_capi.c:1836:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_answer’:
chan_capi.c:1949:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_read’:
chan_capi.c:1968:23: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1983:10: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1983:10: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1984:7: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1984:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1985:7: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1985:7: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1986:5: warning: comparison of distinct pointer types lacks a cast [enabled by default]
chan_capi.c:1986:5: error: dereferencing pointer to incomplete type
chan_capi.c:1987:6: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_write’:
chan_capi.c:2003:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_fixup’:
chan_capi.c:2016:23: error: dereferencing pointer to incomplete type
chan_capi.c:2018:2: error: dereferencing pointer to incomplete type
chan_capi.c:2018:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_bridge_transfer’:
chan_capi.c:2126:4: error: dereferencing pointer to incomplete type
chan_capi.c:2126:4: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_bridge’:
chan_capi.c:2270:24: error: dereferencing pointer to incomplete type
chan_capi.c:2271:24: error: dereferencing pointer to incomplete type
chan_capi.c:2274:2: error: dereferencing pointer to incomplete type
chan_capi.c:2274:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_new’:
chan_capi.c:2443:2: error: dereferencing pointer to incomplete type
chan_capi.c:2445:5: error: dereferencing pointer to incomplete type
chan_capi.c:2446:5: error: dereferencing pointer to incomplete type
chan_capi.c:2468:21: error: dereferencing pointer to incomplete type
chan_capi.c:2471:21: error: dereferencing pointer to incomplete type
chan_capi.c:2477:5: error: dereferencing pointer to incomplete type
chan_capi.c:2480:2: error: dereferencing pointer to incomplete type
chan_capi.c:2488:16: error: dereferencing pointer to incomplete type
chan_capi.c:2489:6: error: dereferencing pointer to incomplete type
chan_capi.c:2490:6: error: dereferencing pointer to incomplete type
chan_capi.c:2491:6: error: dereferencing pointer to incomplete type
chan_capi.c:2499:16: error: dereferencing pointer to incomplete type
chan_capi.c:2500:6: error: dereferencing pointer to incomplete type
chan_capi.c:2507:5: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c:2528:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_request’:
chan_capi.c:2671:25: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘clear_channel_fax_loop’:
chan_capi.c:3229:5: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_handle_dtmf_fax’:
chan_capi.c:3646:34: error: dereferencing pointer to incomplete type
chan_capi.c:3649:9: error: dereferencing pointer to incomplete type
chan_capi.c:3650:4: error: dereferencing pointer to incomplete type
chan_capi.c:3658:16: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3662:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3663:8: error: dereferencing pointer to incomplete type
chan_capi.c:3669:3: error: dereferencing pointer to incomplete type
chan_capi.c:3675:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘search_did’:
chan_capi.c:3694:23: error: dereferencing pointer to incomplete type
chan_capi.c:3699:3: error: dereferencing pointer to incomplete type
chan_capi.c:3699:3: error: dereferencing pointer to incomplete type
chan_capi.c:3707:34: error: dereferencing pointer to incomplete type
chan_capi.c:3708:4: error: dereferencing pointer to incomplete type
chan_capi.c:3709:3: error: dereferencing pointer to incomplete type
chan_capi.c:3709:3: error: dereferencing pointer to incomplete type
chan_capi.c:3710:3: error: dereferencing pointer to incomplete type
chan_capi.c:3710:3: error: dereferencing pointer to incomplete type
chan_capi.c:3715:36: error: dereferencing pointer to incomplete type
chan_capi.c:3716:3: error: dereferencing pointer to incomplete type
chan_capi.c:3716:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘start_pbx_on_match’:
chan_capi.c:3783:3: error: dereferencing pointer to incomplete type
chan_capi.c:3793:3: error: dereferencing pointer to incomplete type
chan_capi.c:3793:3: error: dereferencing pointer to incomplete type
chan_capi.c:3808:4: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_did_digits’:
chan_capi.c:3869:14: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_queue_cause_control’:
chan_capi.c:3895:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_sendback_info’:
chan_capi.c:4030:13: error: dereferencing pointer to incomplete type
chan_capi.c:4033:7: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_info_indication’:
chan_capi.c:4069:12: error: dereferencing pointer to incomplete type
chan_capi.c:4268:17: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_diva_signaling_manufacturer_infications’:
chan_capi.c:4932:13: error: dereferencing pointer to incomplete type
chan_capi.c:4933:22: error: dereferencing pointer to incomplete type
chan_capi.c:4934:13: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_active_indication’:
chan_capi.c:5024:15: error: dereferencing pointer to incomplete type
chan_capi.c:5025:27: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_b3_active_indication’:
chan_capi.c:5107:36: error: dereferencing pointer to incomplete type
chan_capi.c:5109:9: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_disconnect_indication’:
chan_capi.c:5247:15: error: dereferencing pointer to incomplete type
chan_capi.c:5251:12: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_connect_indication’:
chan_capi.c:5447:13: error: dereferencing pointer to incomplete type
chan_capi.c:5461:14: error: dereferencing pointer to incomplete type
chan_capi.c:5464:13: error: dereferencing pointer to incomplete type
chan_capi.c:5470:13: error: dereferencing pointer to incomplete type
chan_capi.c:5471:22: error: dereferencing pointer to incomplete type
chan_capi.c:5472:13: error: dereferencing pointer to incomplete type
chan_capi.c:5474:13: error: dereferencing pointer to incomplete type
chan_capi.c:5475:22: error: dereferencing pointer to incomplete type
chan_capi.c:5476:13: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capidev_handle_msg’:
chan_capi.c:5889:17: error: dereferencing pointer to incomplete type
chan_capi.c:5890:14: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘get_active_plci’:
chan_capi.c:6017:7: error: dereferencing pointer to incomplete type
chan_capi.c:6018:7: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_call_deflect’:
chan_capi.c:6032:23: error: dereferencing pointer to incomplete type
chan_capi.c:6057:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_peer_link’:
chan_capi.c:6130:2: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_retrieve’:
chan_capi.c:6141:23: error: dereferencing pointer to incomplete type
chan_capi.c:6144:7: error: dereferencing pointer to incomplete type
chan_capi.c:6164:3: error: dereferencing pointer to incomplete type
chan_capi.c:6187:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_ect’:
chan_capi.c:6219:23: error: dereferencing pointer to incomplete type
chan_capi.c:6290:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_keypad’:
chan_capi.c:6337:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_hold’:
chan_capi.c:6369:23: error: dereferencing pointer to incomplete type
chan_capi.c:6375:3: error: dereferencing pointer to incomplete type
chan_capi.c:6381:3: error: dereferencing pointer to incomplete type
chan_capi.c:6386:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_malicious’:
chan_capi.c:6425:23: error: dereferencing pointer to incomplete type
chan_capi.c:6428:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_getplci’:
chan_capi.c:6743:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_echosquelch’:
chan_capi.c:7194:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_holdtype’:
chan_capi.c:7218:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_signal_progress’:
chan_capi.c:7285:23: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_3pty_begin’:
chan_capi.c:7329:23: error: dereferencing pointer to incomplete type
chan_capi.c:7369:3: error: dereferencing pointer to incomplete type
chan_capi.c:7374:10: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capicommand_exec’:
chan_capi.c:7541:29: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘pbx_capi_indicate’:
chan_capi.c:7591:23: error: dereferencing pointer to incomplete type
chan_capi.c:7602:3: error: dereferencing pointer to incomplete type
chan_capi.c:7617:3: error: dereferencing pointer to incomplete type
chan_capi.c:7629:3: error: dereferencing pointer to incomplete type
chan_capi.c:7641:3: error: dereferencing pointer to incomplete type
chan_capi.c:7646:3: error: dereferencing pointer to incomplete type
chan_capi.c:7651:3: error: dereferencing pointer to incomplete type
chan_capi.c:7663:3: error: dereferencing pointer to incomplete type
chan_capi.c:7682:3: error: dereferencing pointer to incomplete type
chan_capi.c:7695:3: error: dereferencing pointer to incomplete type
chan_capi.c: In function ‘capi_do_channel_task’:
chan_capi.c:7836:4: error: dereferencing pointer to incomplete type
chan_capi.c:7844:69: error: dereferencing pointer to incomplete type
chan_capi.c:7845:7: error: dereferencing pointer to incomplete type
chan_capi.c:7848:5: error: dereferencing pointer to incomplete type
chan_capi.c: At top level:
chan_capi.c:8231:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8231:2: warning: (near initialization for ‘capi_tech.requester’) [enabled by default]
chan_capi.c:8239:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8239:2: warning: (near initialization for ‘capi_tech.call’) [enabled by default]
chan_capi.c:8249:2: warning: initialization from incompatible pointer type [enabled by default]
chan_capi.c:8249:2: warning: (near initialization for ‘capi_tech.devicestate’) [enabled by default]
chan_capi.c: In function ‘pbx_capi_add_diva_protocol_independent_extension’:
chan_capi.c:9107:31: error: dereferencing pointer to incomplete type
chan_capi.c:9108:14: error: dereferencing pointer to incomplete type
chan_capi.c:9108:14: error: dereferencing pointer to incomplete type
chan_capi.c:9108:14: error: dereferencing pointer to incomplete type
chan_capi.c:9108:3: warning: passing argument 1 of ‘ast_strlen_zero’ makes pointer from integer without a cast [enabled by default]
/usr/include/asterisk/strings.h:63:40: note: expected ‘const char *’ but argument is of type ‘int’
make: *** [chan_capi.o] Error 1
root@derdvoip:/home/voipadmin/chan-capi-HEAD#

Kernel: 3.2.0-29-generic-pae

Irgendwelche Ideen oder Lösungen?

Nebenfrage:
Ich habe mir die beiden Links zu Mihai Moldovan angeschaut.
Als Anlage zur der Mailingliste finde ich zwei *.bin Dateien.
Ist das der Patch? Wie gehe ich mit der Datei um?

Dank und Gruss

Carsten
 
Ich habe mir die beiden Links zu Mihai Moldovan angeschaut.
Als Anlage zur der Mailingliste finde ich zwei *.bin Dateien.
Ist das der Patch? Wie gehe ich mit der Datei um?

Ja, das ist einer der Patche. Die Software des Mailinglisten-Archivs nennt anscheinend vieles ".bin".

Code:
17 Jul 2013:    Port to Asterisk 11 and minor whitespace fixes
18 Jul 2013:    Fix detection of Asterisk version 11 and up.
19 Mar 2014:    Fix BASHisms
23 Mar 2014:    Don't ever try to set chan->exten directly with Asterisk 11.x
 
@jj458:

Der Divas V3 Treiber musste gepatcht werden, um mit Kernel > 3.8 kompiliert zu werden

Hast Du zu diesem Patch einen Link?
 
Einfache Installationsanleitung :)

# mkdir src
# cd src
# curl -O ftp://ftp.chan-capi.org/chan-capi/chan_capi-HEAD.tgz
# curl -O http://lists.melware.net/pipermail/chan-capi-users/attachments/20130717/2df1a23e/attachment-0001.bin

# tar xzf chan_capi-HEAD.tgz
# cd chan-capi-HEAD

# patch -p1 < ../attachment-0001.bin

Bei 64-Bit OS muss das Makefile angepasst werden.
"MODULES_DIR=$(INSTALL_PREFIX)/usr/lib64/asterisk/modules"
statt
"MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules"
# vi Makefile

# make -j 2

Installieren
# make install
# make install_config



Gruß Heiko
 
Guten Abend zusammen,

sehr schöne Installationsanleitung, vielen Dank dafür! Aber leider bekomme ich dann folgenden Fehler:

Code:
[Jun 29 19:39:10] WARNING[12372]: loader.c:460 load_dynamic_module: Error loading module 'chan_capi.so': /usr/lib/asterisk/modules/chan_capi.so: undefined symbol: ast_channel_exten
[Jun 29 19:39:10] WARNING[12372]: loader.c:850 load_resource: Module 'chan_capi.so' could not be loaded.

Hat jemand hierfür noch einen weiteren Tip?

Code:
# asterisk -V
Asterisk 1.8.13.1~dfsg1-3+deb7u3
und das ganze auf einem Debian, das gerade eben von squeeze auf wheezy aktualisiert wurde.

Danke und Gruß,
Sir Twist
 
Schick mal nen den Output von
"$ ldd /usr/lib/asterisk/modules/chan_capi.so"

[Beitrag 2:]

Achso und Du bist Dir sicher das Du mit einem 32-Bit debian arbeitest ? Bitte noch den Output von
"$ uname -a"
schicken
 
Code:
# ldd /usr/lib/asterisk/modules/chan_capi.so
        linux-vdso.so.1 =>  (0x00007fff8e1b8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd059d64000)

Tja, das mit dem 32/64bit....
Code:
# uname -a
Linux hostname 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux

Ich hatte die Installation erst auf das Verzeichnis /usr/lib64/.... losgelassen, dann kommt aber die Fehlermeldung, dass Asterisk die so-Datei nicht findet. Er sucht anscheinend auch nur unter /usr/lib/asterisk/modules/ . Ich habe zwar die Variable "astmoddir" in 'asterisk.conf' geändert auf /usr/lib64/asterisk/modules, dennoch kommt weiterhin die Meldung:

Code:
[Jun 29 21:05:14] WARNING[7112]: loader.c:398 load_dynamic_module: Error loading module 'chan_capi.so': /usr/lib/asterisk/modules/chan_capi.so: cannot open shared object file: No such file or directory
 
Wo liegen denn deine sonstigen asterisk modules (*.so) ?
Anschließend den Pfad für MODULES_DIR im Makefile anpassen.
$ vi Makefile
$ make clean; make -j 2
# make install
# make install_config
 
guter Hinweis, ich hatte direkt ein "make install" gemacht, nachdem ich die "MODULES_DIR" Variable von /lib64/ auf /lib/ geändert hatte. Hab nun ein clean/make/install/install_config durchgeführt, bekomme aber weiterhin nur die Meldung, dass das Symbol "ast_channel_exten" nicht gefunden werden kann.

Alle Module liegen unter /usr/lib/asterisk/modules/*.so
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.