root@core:/kituri/voip/asterisk-1.4/add-on svn/trunk# ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for uname… /usr/bin/uname
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for a BSD-compatible install… /usr/bin/ginstall -c
checking whether ln -s works… yes
checking for GNU make… make
checking for grep… /usr/bin/grep
checking for basename… /usr/bin/basename
checking for dirname… /usr/bin/dirname
checking for sh… /bin/sh
checking for ln… /usr/bin/ln
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… (cached) /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for ba2str in -lbluetooth… yes
checking bluetooth/bluetooth.h usability… yes
checking bluetooth/bluetooth.h presence… yes
checking for bluetooth/bluetooth.h… yes
checking for initscr in -lcurses… yes
checking curses.h usability… yes
checking curses.h presence… yes
checking for curses.h… yes
checking for initscr in -lncurses… yes
checking for curses.h… (cached) yes
checking for -Wdeclaration-after-statement support… yes
checking for mysql_config… /usr/local/bin/mysql_config
checking for mysql_init in -lmysqlclient… yes
checking for asterisk.h… yes
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
Using Debian 4.0 asterisk 4.13 and Zaptel 1.4.5.1, I’ve applied the patch you mention, and the sed too, but it won’t compile yet.
Having this error
[CC] chan_mobile.c -> chan_mobile.o
chan_mobile.c:178: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:178: warning: its scope is only this definition or declaration, which is probably not what you want
chan_mobile.c:179: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:180: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:183: error: initializer element is not constant
chan_mobile.c:183: error: (near initialization for ‘mbl_cli[0].cmda[0]’)
chan_mobile.c:184: error: initializer element is not constant
chan_mobile.c:184: error: (near initialization for ‘mbl_cli[0].cmda[1]’)
chan_mobile.c:185: error: initializer element is not constant
chan_mobile.c:185: error: (near initialization for ‘mbl_cli[0].cmda[2]’)
chan_mobile.c:248: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:249: error: conflicting types for ‘handle_cli_mobile_show_devices’
chan_mobile.c:178: error: previous declaration of ‘handle_cli_mobile_show_devices’ was here
chan_mobile.c: In function ‘handle_cli_mobile_show_devices’:
chan_mobile.c:257: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_mobile.c:257: error: (Each undeclared identifier is reported only once
chan_mobile.c:257: error: for each function it appears in.)
chan_mobile.c:258: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_mobile.c:263: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_mobile.c:267: error: dereferencing pointer to incomplete type
chan_mobile.c:267: error: request for member ‘argc’ in something not a structure or union
chan_mobile.c:267: warning: comparison between pointer and integer
chan_mobile.c:268: error: ‘CLI_SHOWUSAGE’ undeclared (first use in this function)
chan_mobile.c:268: warning: return from incompatible pointer type
chan_mobile.c:270: error: dereferencing pointer to incomplete type
chan_mobile.c:270: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:270: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:274: error: dereferencing pointer to incomplete type
chan_mobile.c:274: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:276: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:281: error: ‘CLI_SUCCESS’ undeclared (first use in this function)
chan_mobile.c:281: warning: return from incompatible pointer type
chan_mobile.c: At top level:
chan_mobile.c:284: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:285: error: conflicting types for ‘handle_cli_mobile_search’
chan_mobile.c:179: error: previous declaration of ‘handle_cli_mobile_search’ was here
chan_mobile.c: In function ‘handle_cli_mobile_search’:
chan_mobile.c:298: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_mobile.c:299: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_mobile.c:304: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_mobile.c:308: error: dereferencing pointer to incomplete type
chan_mobile.c:308: error: request for member ‘argc’ in something not a structure or union
chan_mobile.c:308: warning: comparison between pointer and integer
chan_mobile.c:309: error: ‘CLI_SHOWUSAGE’ undeclared (first use in this function)
chan_mobile.c:309: warning: return from incompatible pointer type
chan_mobile.c:318: error: dereferencing pointer to incomplete type
chan_mobile.c:318: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:318: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:319: error: ‘CLI_SUCCESS’ undeclared (first use in this function)
chan_mobile.c:319: warning: return from incompatible pointer type
chan_mobile.c:329: error: dereferencing pointer to incomplete type
chan_mobile.c:329: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:329: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:340: error: dereferencing pointer to incomplete type
chan_mobile.c:340: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:341: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:344: error: dereferencing pointer to incomplete type
chan_mobile.c:344: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:344: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:349: warning: return from incompatible pointer type
chan_mobile.c: At top level:
chan_mobile.c:352: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_mobile.c:353: error: conflicting types for ‘handle_cli_mobile_rfcomm’
chan_mobile.c:180: error: previous declaration of ‘handle_cli_mobile_rfcomm’ was here
chan_mobile.c: In function ‘handle_cli_mobile_rfcomm’:
chan_mobile.c:358: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_mobile.c:359: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_mobile.c:365: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_mobile.c:369: error: dereferencing pointer to incomplete type
chan_mobile.c:369: error: request for member ‘argc’ in something not a structure or union
chan_mobile.c:369: warning: comparison between pointer and integer
chan_mobile.c:370: error: ‘CLI_SHOWUSAGE’ undeclared (first use in this function)
chan_mobile.c:370: warning: return from incompatible pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 1 of ‘strlen’
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: invalid operands to binary +
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 2 of ‘__builtin_strcmp’
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: invalid operands to binary +
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 2 of ‘__builtin_strcmp’
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: invalid operands to binary +
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 1 of ‘strlen’
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 2 of ‘__builtin_strcmp’
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: cannot convert to a pointer type
chan_mobile.c:373: error: dereferencing pointer to incomplete type
chan_mobile.c:373: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:373: error: incompatible type for argument 2 of ‘__builtin_strcmp’
chan_mobile.c:378: error: dereferencing pointer to incomplete type
chan_mobile.c:378: error: request for member ‘fd’ in something not a structure or union
chan_mobile.c:378: error: dereferencing pointer to incomplete type
chan_mobile.c:378: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:378: warning: passing argument 1 of ‘ast_cli’ makes integer from pointer without a cast
chan_mobile.c:379: error: ‘CLI_SUCCESS’ undeclared (first use in this function)
chan_mobile.c:379: warning: return from incompatible pointer type
chan_mobile.c:382: error: dereferencing pointer to incomplete type
chan_mobile.c:382: error: request for member ‘argv’ in something not a structure or union
chan_mobile.c:385: warning: return from incompatible pointer type
make[1]: *** [chan_mobile.o] Error 1
If you want the configure.log I can email it, no problem.
Hello,
it seems you do not have corresponding dev packages installed.
I installed asterisk from sources, which means all include files and headers are allready in place, but when you install from packages, it usually installs just bare program.
Do apt-get install asterisk-dev bluez-dev and retry.