Can’t Compile Asterisk On Ubuntu 16
All;
I am trying to build and install certified Asterisk 13.13 cert3 on a Ubuntu 16.04.2 LTS host without much success. I am getting the following errors when I try to compile.
[CC] res_pjsip/config_transport.c -> res_pjsip/config_transport.o
res_pjsip/config_transport.c: In function ‘transport_apply’:
res_pjsip/config_transport.c:572:6: error: ‘pjsip_tcp_transport_cfg {aka struct pjsip_tcp_transport_cfg}’ has no member named ‘sockopt_params’
cfg.sockopt_params.options[0].level = pj_SOL_TCP();
^
res_pjsip/config_transport.c:573:6: error: ‘pjsip_tcp_transport_cfg {aka struct pjsip_tcp_transport_cfg}’ has no member named ‘sockopt_params’
cfg.sockopt_params.options[0].optname = pj_TCP_NODELAY();
^
res_pjsip/config_transport.c:574:6: error: ‘pjsip_tcp_transport_cfg {aka struct pjsip_tcp_transport_cfg}’ has no member named ‘sockopt_params’
cfg.sockopt_params.options[0].optval = &option;
^
res_pjsip/config_transport.c:575:6: error: ‘pjsip_tcp_transport_cfg {aka struct pjsip_tcp_transport_cfg}’ has no member named ‘sockopt_params’
cfg.sockopt_params.options[0].optlen = sizeof(option);
^
res_pjsip/config_transport.c:576:6: error: ‘pjsip_tcp_transport_cfg {aka struct pjsip_tcp_transport_cfg}’ has no member named ‘sockopt_params’
cfg.sockopt_params.cnt = 1;
^
/usr/src/asterisk-certified-13.13-cert3/Makefile.rules:149: recipe for target ‘res_pjsip/config_transport.o’ failed
make[1]: *** [res_pjsip/config_transport.o] Error 1
Makefile:402: recipe for target ‘res’ failed
make: *** [res] Error 2
Has anyone seen this error before? Any insight at all would be greatly appreciated.
Thanks;
John V.
Tech Support
Tech Support
VoIP Business Solutions
240-215-3479 x325
4 thoughts on - Can’t Compile Asterisk On Ubuntu 16
Feel free to take a look at https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/Asterisk-14-on-Ubuntu.md
Ignore the bit about Voipfone and just skip to the “Install Asterisk” bit.
I’ve used this same script with Asterisk 12,13 and 14 on Ubuntu 15,16
and 17 so this should work!
Let me know how you get on.
Hey;
Thank you very much. I was able to install asterisk from your link.
I don’t – it just seems to.. work!
Try a reboot – it always comes up OK for me. Are you doing “make install”?
Yes. I did the usual configure ; make menuselect ; make ; make install ; make samples ; make progdocs.
Thanks;
John
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]