antirek / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
5 stars 5 forks source link

error compiling chan_dongle-1.1.r14 for Asterisk 11.4.0 currently running on elastix2 #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 
I am trying to compile chan_Dongle for asterisk 11.4.0 (Elastix 2.4) but i get 
the following error.

is there any solution? Doeschan_dongle support asterisk 11.4???

Regards,

John.

[root@elastix2 chan_dongle-1.1.r14]# ./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 a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether asterisk.h in ../include... no
checking whether asterisk.h in /usr/include... yes
checking asterisk.h usability... yes
checking asterisk.h presence... yes
checking for asterisk.h... yes
checking whether iconv.h in /usr/include... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv use const inbuf... no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
#
#
#
[root@elastix2 chan_dongle-1.1.r14]# make
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o 
app.o -c app.c
In file included from app.c:21:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 
'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function βapp_status_execβ:
app.c:37: warning: missing initializer
app.c:37: warning: (near initialization for βargs.resourceβ)
app.c: In function βapp_send_sms_execβ:
app.c:82: warning: missing initializer
app.c:82: warning: (near initialization for βargs.deviceβ)
app.c: In function βapp_registerβ:
app.c:162: warning: passing argument 2 of βast_register_application2β from 
incompatible pointer type
make: *** [app.o] Error 1
[root@elastix2 chan_dongle-1.1.r14]#

Original issue reported on code.google.com by king...@gmail.com on 15 Jun 2013 at 2:52

GoogleCodeExporter commented 9 years ago
I not currenly support for 10 11 

external patch exists

Original comment by bg_...@mail.ru on 30 Jul 2013 at 7:22

GoogleCodeExporter commented 9 years ago
hello everybody,
thank you guys for the job,
i was able to make it working for elastix 2.4 asterisk 11 and it is working 
flawlessly good using the external patch.
i am using the huawei modem E156 and E173
there is still some issues with one way voice; i can hear a grugling robotic 
voice on one side.
can someone help with this?
thank you.
oubram.m

Original comment by oubra...@gmail.com on 7 Aug 2013 at 5:46