Cannot compile chan_dongle

2.6.32-431.el6.x86_64
chan_dongle-1.1.r14
Asterisk 13.1.0

command executed DESTDIR="/usr/lib64/asterisk/modules" ./configure
error: configure: error: Can’t find “asterisk.h”

yum install asterisk11-devel

1 Like

[root@localhost src]# yum install asterisk11-devel
Loaded plugins: fastestmirror, kmod
base | 2.0 kB 00:00
base/primary | 2.5 MB 00:37
base 6402/6402
extras | 1.3 kB 00:00
extras/primary | 6.8 kB 00:00
extras 15/15
http://yum.freepbxdistro.org/pbx/6.12.65/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn’t resolve host ‘yum.freepbxdist ro.org’"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: pbx. Please verify its path and try again

yum install asterisk13-devel

./configure = successful

[root@localhost chan_dongle-1.1.r14]# make
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
/usr/include/asterisk/module.h:516: note: expected ‘int (*)(struct ast_channel *, const char )’ but argument is of type ‘int ()(struct ast_chan nel *, void *)’
make: *** [app.o] Error 1

Not works with asterisk 13!

This fork seems to work with asterisk 13.


YMMV

Help for me
yum install asterisk16-devel