=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for asterisk-11.4.0nb6
Building Documentation For: CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/scratch/comms/asterisk/work/asterisk-11.4.0/menuselect'
make[1]: `makeopts' is up to date.
make[1]: Leaving directory `/scratch/comms/asterisk/work/asterisk-11.4.0/menuselect'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" menuselect
channels make[1]: Entering directory `/scratch/comms/asterisk/work/asterisk-11.4.0/menuselect'
make[1]: `menuselect' is up to date.
make[1]: Leaving directory `/scratch/comms/asterisk/work/asterisk-11.4.0/menuselect'
menuselect/menuselect --check-deps menuselect.makeopts
menuselect/menuselect --check-deps menuselect.makeopts /scratch/comms/asterisk/work/asterisk-11.4.0/pkgsrc.makeopts 
Generating embedded module rules ...
pbx apps codecs formats cdr cel bridges funcs tests main res    [CC] astcanary.c -> astcanary.o
   [CC] chan_sip.c -> chan_sip.o
addons    [CC] eagi-test.c -> eagi-test.o

   [CC] sip/utils.c -> sip/utils.o
   [CC] astdb2sqlite3.c -> astdb2sqlite3.o
chan_sip.c:2391:11: warning: comparison of unsigned enum expression >= 0 is always true [-Wtautological-compare]
        if (code >= 0 && code < ARRAY_LEN(sip_reason_table)) {
            ~~~~ ^  ~
   [CC] hash/hash.c -> hash/hash.o
   [CC] eagi-sphinx-test.c -> eagi-sphinx-test.o
   [CC] strcompat.c -> strcompat.o
   [LD] eagi-sphinx-test.o -> eagi-sphinx-test
   [LD] eagi-test.o strcompat.o -> eagi-test
   [CC] astdb2bdb.c -> astdb2bdb.o
   [CC] hash/hash_bigkey.c -> hash/hash_bigkey.o
   [CC] pbx_config.c -> pbx_config.o
chan_sip.c:11189:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                *pos = tolower(*pos);
                       ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
pbx_config.c:176:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isblank(*p) /* XXX order is important */ && !in_blank) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:71:44: note: expanded from macro 'isblank'
#define isblank(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_BL))
                                                ^~~~
pbx_config.c:383:17: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while (*c && isdigit(*c))
                                     ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
   [CC] app_externalivr.c -> app_externalivr.o
chan_sip.c:19915:74: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion]
                ast_cli(fd, "  Sess-Refresh : %s\n", strefresherparam2str(peer->stimer.st_ref));
                                                     ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
chan_sip.c:19984:82: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion]
                astman_append(s, "SIP-Sess-Refresh: %s\r\n", strefresherparam2str(peer->stimer.st_ref));
                                                             ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
chan_sip.c:20130:78: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion]
                ast_cli(a->fd, "  Sess-Refresh : %s\n", strefresherparam2str(user->stimer.st_ref));
                                                        ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~
chan_sip.c:20586:72: warning: implicit conversion from enumeration type 'enum st_refresher_param' to different enumeration type 'enum st_refresher' [-Wenum-conversion]
        ast_cli(a->fd, "  Session Refresher:      %s\n", strefresherparam2str(global_st_refresher));
                                                         ~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
   [CC] hash/hash_buf.c -> hash/hash_buf.o
   [CC] hash/hash_func.c -> hash/hash_func.o
   [CC] hash/hash_log2.c -> hash/hash_log2.o
   [CC] app_macro.c -> app_macro.o
   [CC] hash/hash_page.c -> hash/hash_page.o
   [CC] hash/ndbm.c -> hash/ndbm.o
2 warnings generated.
   [CC] pbx_loopback.c -> pbx_loopback.o
   [CC] btree/bt_close.c -> btree/bt_close.o
   [CC] app_sendtext.c -> app_sendtext.o
   [CC] btree/bt_conv.c -> btree/bt_conv.o
   [CC] pbx_dundi.c -> pbx_dundi.o
   [CC] app_db.c -> app_db.o
   [CC] btree/bt_debug.c -> btree/bt_debug.o
   [CC] btree/bt_delete.c -> btree/bt_delete.o
   [CC] app_amd.c -> app_amd.o
   [CC] btree/bt_get.c -> btree/bt_get.o
   [CC] btree/bt_open.c -> btree/bt_open.o
   [CC] btree/bt_overflow.c -> btree/bt_overflow.o
   [CC] app_parkandannounce.c -> app_parkandannounce.o
   [CC] btree/bt_page.c -> btree/bt_page.o
   [CC] btree/bt_put.c -> btree/bt_put.o
   [CC] btree/bt_search.c -> btree/bt_search.o
   [CC] btree/bt_seq.c -> btree/bt_seq.o
   [CC] app_adsiprog.c -> app_adsiprog.o
   [CC] btree/bt_split.c -> btree/bt_split.o
app_adsiprog.c:211:54: warning: array subscript is of type 'char' [-Wchar-subscripts]
        } else if ((strlen(src) > 2) && (src[0] == '0') && (tolower(src[1]) == 'x')) {
                                                            ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
app_adsiprog.c:221:39: warning: array subscript is of type 'char' [-Wchar-subscripts]
        } else if ((!ast_strlen_zero(src) && isdigit(src[0]))) {
                                             ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
   [CC] btree/bt_utils.c -> btree/bt_utils.o
   [CC] db/db.c -> db/db.o
   [CC] mpool/mpool.c -> mpool/mpool.o
   [CC] dundi-parser.c -> dundi-parser.o
   [CC] recno/rec_close.c -> recno/rec_close.o
   [CC] recno/rec_delete.c -> recno/rec_delete.o
   [CC] recno/rec_get.c -> recno/rec_get.o
2 warnings generated.
   [CC] app_playtones.c -> app_playtones.o
   [CC] recno/rec_open.c -> recno/rec_open.o
   [CC] app_url.c -> app_url.o
   [CC] recno/rec_put.c -> recno/rec_put.o
   [CC] pbx_ael.c -> pbx_ael.o
   [CC] recno/rec_search.c -> recno/rec_search.o
   [CC] app_transfer.c -> app_transfer.o
   [CC] pbx_realtime.c -> pbx_realtime.o
   [CC] recno/rec_seq.c -> recno/rec_seq.o
   [CC] recno/rec_utils.c -> recno/rec_utils.o
   [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
   [LD] astcanary.o -> astcanary
   [CC] app_zapateller.c -> app_zapateller.o
   [LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3
   [LD] astdb2bdb.o db1-ast/libdb1.a -> astdb2bdb
   [CC] pbx_spool.c -> pbx_spool.o
   [CC] sip/config_parser.c -> sip/config_parser.o
pbx_spool.c:681:2: warning: incompatible pointer to integer conversion assigning to '__intptr_t' (aka 'long') from 'void *' [-Wint-conversion]
        EV_SET(&kev, dirfd(dir), EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, NOTE_WRITE, 0, NULL);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/event.h:55:16: note: expanded from macro 'EV_SET'
        (kevp)->udata = (f);                                            \
                      ^ ~~~
   [CC] anaFilter.c -> anaFilter.o
   [CC] constants.c -> constants.o
1 warning generated.
   [CC] app_celgenuserevent.c -> app_celgenuserevent.o
   [LD] pbx_config.o -> pbx_config.so
   [CC] createCB.c -> createCB.o
   [CC] doCPLC.c -> doCPLC.o
   [CC] app_channelredirect.c -> app_channelredirect.o
   [LD] pbx_loopback.o -> pbx_loopback.so
   [CC] enhancer.c -> enhancer.o
   [LD] pbx_dundi.o dundi-parser.o -> pbx_dundi.so
   [LD] pbx_ael.o -> pbx_ael.so
   [CC] app_disa.c -> app_disa.o
   [CC] filter.c -> filter.o
   [CC] FrameClassify.c -> FrameClassify.o
   [LD] pbx_realtime.o -> pbx_realtime.so
   [LD] pbx_spool.o -> pbx_spool.so
   [CC] gainquant.c -> gainquant.o
   [CC] sip/srtp.c -> sip/srtp.o
   [CC] app_mp3.c -> app_mp3.o
   [CC] app_senddtmf.c -> app_senddtmf.o
   [CC] getCBvec.c -> getCBvec.o
   [CC] helpfun.c -> helpfun.o
   [CC] sip/reqresp_parser.c -> sip/reqresp_parser.o
   [CC] app_while.c -> app_while.o
   [CC] hpInput.c -> hpInput.o
   [CC] hpOutput.c -> hpOutput.o
   [CC] app_echo.c -> app_echo.o
   [CC] iCBConstruct.c -> iCBConstruct.o
   [CC] iCBSearch.c -> iCBSearch.o
   [CC] app_readexten.c -> app_readexten.o
   [CC] format_wav.c -> format_wav.o
   [CC] iLBC_decode.c -> iLBC_decode.o
   [CC] iLBC_encode.c -> iLBC_encode.o
   [CC] format_gsm.c -> format_gsm.o
   [CC] app_stack.c -> app_stack.o
   [CC] iLBC_test.c -> iLBC_test.o
   [CC] format_vox.c -> format_vox.o
   [CC] LPCdecode.c -> LPCdecode.o
   [CC] app_confbridge.c -> app_confbridge.o
   [CC] LPCencode.c -> LPCencode.o
   [CC] format_ilbc.c -> format_ilbc.o
   [CC] lsf.c -> lsf.o
   [CC] format_siren14.c -> format_siren14.o
   [CC] packing.c -> packing.o
   [CC] StateConstructW.c -> StateConstructW.o
   [CC] format_h263.c -> format_h263.o
   [CC] StateSearchW.c -> StateSearchW.o
   [CC] syntFilter.c -> syntFilter.o
   [CC] format_siren7.c -> format_siren7.o
   [AR] anaFilter.o constants.o createCB.o doCPLC.o enhancer.o filter.o FrameClassify.o gainquant.o getCBvec.o helpfun.o hpInput.o hpOutput.o iCBConstruct.o iCBSearch.o iLBC_decode.o iLBC_encode.o iLBC_test.o LPCdecode.o LPCencode.o lsf.o packing.o StateConstructW.o StateSearchW.o syntFilter.o -> libilbc.a
   [CC] f2clib.c -> f2clib.o
   [CC] analys.c -> analys.o
   [CC] format_g729.c -> format_g729.o
   [CC] bsynz.c -> bsynz.o
   [CC] confbridge/conf_state_inactive.c -> confbridge/conf_state_inactive.o
   [CC] chanwr.c -> chanwr.o
   [CC] confbridge/conf_config_parser.c -> confbridge/conf_config_parser.o
   [CC] format_pcm.c -> format_pcm.o
   [CC] dcbias.c -> dcbias.o
   [CC] decode.c -> decode.o
   [CC] deemp.c -> deemp.o
   [CC] format_wav_gsm.c -> format_wav_gsm.o
   [CC] difmag.c -> difmag.o
   [CC] dyptrk.c -> dyptrk.o
   [CC] encode.c -> encode.o
   [CC] energy.c -> energy.o
   [CC] ham84.c -> ham84.o
   [CC] hp100.c -> hp100.o
   [CC] invert.c -> invert.o
   [CC] irc2pc.c -> irc2pc.o
   [CC] ivfilt.c -> ivfilt.o
   [CC] lpcdec.c -> lpcdec.o
   [CC] lpcenc.c -> lpcenc.o
   [CC] confbridge/conf_state_empty.c -> confbridge/conf_state_empty.o
   [CC] lpcini.c -> lpcini.o
   [CC] lpfilt.c -> lpfilt.o
   [CC] format_jpeg.c -> format_jpeg.o
   [CC] median.c -> median.o
   [CC] confbridge/conf_state_multi.c -> confbridge/conf_state_multi.o
   [CC] format_g723.c -> format_g723.o
   [CC] format_g719.c -> format_g719.o
   [CC] confbridge/conf_state_multi_marked.c -> confbridge/conf_state_multi_marked.o
   [CC] mload.c -> mload.o
   [CC] confbridge/conf_state_single.c -> confbridge/conf_state_single.o
   [CC] onset.c -> onset.o
   [CC] format_g726.c -> format_g726.o
   [CC] confbridge/conf_state.c -> confbridge/conf_state.o
   [CC] pitsyn.c -> pitsyn.o
   [CC] format_sln.c -> format_sln.o
   [CC] confbridge/conf_state_single_marked.c -> confbridge/conf_state_single_marked.o
   [CC] placea.c -> placea.o
   [CC] placev.c -> placev.o
   [CC] app_userevent.c -> app_userevent.o
   [CC] preemp.c -> preemp.o
   [CC] prepro.c -> prepro.o
   [CC] app_chanisavail.c -> app_chanisavail.o
   [CC] random.c -> random.o
   [CC] rcchk.c -> rcchk.o
   [CC] format_h264.c -> format_h264.o
   [CC] synths.c -> synths.o
   [CC] tbdm.c -> tbdm.o
   [LD] format_wav.o -> format_wav.so
   [LD] format_gsm.o -> format_gsm.so
   [CC] app_dumpchan.c -> app_dumpchan.o
   [LD] format_vox.o -> format_vox.so
   [LD] format_ilbc.o -> format_ilbc.so
   [LD] format_siren14.o -> format_siren14.so
   [LD] format_h263.o -> format_h263.so
   [LD] format_siren7.o -> format_siren7.so
   [LD] format_g729.o -> format_g729.so
   [CC] voicin.c -> voicin.o
   [LD] format_pcm.o -> format_pcm.so
   [CC] vparms.c -> vparms.o
   [LD] format_wav_gsm.o -> format_wav_gsm.so
   [LD] format_jpeg.o -> format_jpeg.so
   [AR] f2clib.o analys.o bsynz.o chanwr.o dcbias.o decode.o deemp.o difmag.o dyptrk.o encode.o energy.o ham84.o hp100.o invert.o irc2pc.o ivfilt.o lpcdec.o lpcenc.o lpcini.o lpfilt.o median.o mload.o onset.o pitsyn.o placea.o placev.o preemp.o prepro.o random.o rcchk.o synths.o tbdm.o voicin.o vparms.o -> liblpc10.a
   [LD] format_g723.o -> format_g723.so
   [CC] src/add.c -> src/add.o
   [LD] format_g719.o -> format_g719.so
   [CC] app_talkdetect.c -> app_talkdetect.o
   [CC] src/code.c -> src/code.o
   [LD] format_g726.o -> format_g726.so
   [LD] format_sln.o -> format_sln.so
   [CC] app_image.c -> app_image.o
   [LD] format_h264.o -> format_h264.so
   [CC] src/debug.c -> src/debug.o
   [CC] codec_ulaw.c -> codec_ulaw.o
   [CC] app_minivm.c -> app_minivm.o
app_minivm.c:1563:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isdigit(*i)) {
                             ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
   [CC] src/decode.c -> src/decode.o
   [CC] sip/sdp_crypto.c -> sip/sdp_crypto.o
   [CC] src/long_term.c -> src/long_term.o
   [CC] cdr_manager.c -> cdr_manager.o
   [CC] src/lpc.c -> src/lpc.o
   [CC] cdr_custom.c -> cdr_custom.o
   [CC] src/preprocess.c -> src/preprocess.o
   [CC] src/rpe.c -> src/rpe.o
   [CC] cdr_syslog.c -> cdr_syslog.o
   [CC] src/gsm_destroy.c -> src/gsm_destroy.o
   [CC] cdr_sqlite3_custom.c -> cdr_sqlite3_custom.o
1 warning generated.
   [CC] app_voicemail.c -> app_voicemail.o
   [CC] src/gsm_decode.c -> src/gsm_decode.o
app_voicemail.c:8898:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        if ((vms->newmessages == 1)) {
                             ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:8898:26: note: remove extraneous parentheses around the comparison to silence this warning
                        if ((vms->newmessages == 1)) {
                            ~                 ^   ~
app_voicemail.c:8898:26: note: use '=' to turn this equality comparison into an assignment
                        if ((vms->newmessages == 1)) {
                                              ^~
                                              =
app_voicemail.c:8912:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((vms->oldmessages == 1)){
                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:8912:25: note: remove extraneous parentheses around the comparison to silence this warning
                if ((vms->oldmessages == 1)){
                    ~                 ^   ~
app_voicemail.c:8912:25: note: use '=' to turn this equality comparison into an assignment
                if ((vms->oldmessages == 1)){
                                      ^~
                                      =
app_voicemail.c:9104:30: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->urgentmessages == 1))
                                     ~~~~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9104:30: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->urgentmessages == 1))
                                    ~                    ^   ~
app_voicemail.c:9104:30: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->urgentmessages == 1))
                                                         ^~
                                                         =
app_voicemail.c:9117:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9117:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9117:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9269:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((vms->newmessages == 1)) {
                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9269:25: note: remove extraneous parentheses around the comparison to silence this warning
                if ((vms->newmessages == 1)) {
                    ~                 ^   ~
app_voicemail.c:9269:25: note: use '=' to turn this equality comparison into an assignment
                if ((vms->newmessages == 1)) {
                                      ^~
                                      =
app_voicemail.c:9313:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((vms->newmessages == 1)) {
                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9313:25: note: remove extraneous parentheses around the comparison to silence this warning
                if ((vms->newmessages == 1)) {
                    ~                 ^   ~
app_voicemail.c:9313:25: note: use '=' to turn this equality comparison into an assignment
                if ((vms->newmessages == 1)) {
                                      ^~
                                      =
app_voicemail.c:9348:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        if ((vms->newmessages == 1))
                             ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9348:26: note: remove extraneous parentheses around the comparison to silence this warning
                        if ((vms->newmessages == 1))
                            ~                 ^   ~
app_voicemail.c:9348:26: note: use '=' to turn this equality comparison into an assignment
                        if ((vms->newmessages == 1))
                                              ^~
                                              =
app_voicemail.c:9357:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9357:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9357:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9404:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1)) {
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9404:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1)) {
                                    ~                 ^   ~
app_voicemail.c:9404:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1)) {
                                                      ^~
                                                      =
app_voicemail.c:9455:25: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((vms->newmessages == 1)) {
                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9455:25: note: remove extraneous parentheses around the comparison to silence this warning
                if ((vms->newmessages == 1)) {
                    ~                 ^   ~
app_voicemail.c:9455:25: note: use '=' to turn this equality comparison into an assignment
                if ((vms->newmessages == 1)) {
                                      ^~
                                      =
app_voicemail.c:9501:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9501:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9501:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9548:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9548:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9548:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9591:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1)) {
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9591:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1)) {
                                    ~                 ^   ~
app_voicemail.c:9591:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1)) {
                                                      ^~
                                                      =
app_voicemail.c:9657:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9657:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9657:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9667:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->newmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9667:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->newmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9667:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->newmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9678:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->oldmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9678:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->oldmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9678:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->oldmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:9686:27: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                                if ((vms->oldmessages == 1))
                                     ~~~~~~~~~~~~~~~~~^~~~
app_voicemail.c:9686:27: note: remove extraneous parentheses around the comparison to silence this warning
                                if ((vms->oldmessages == 1))
                                    ~                 ^   ~
app_voicemail.c:9686:27: note: use '=' to turn this equality comparison into an assignment
                                if ((vms->oldmessages == 1))
                                                      ^~
                                                      =
app_voicemail.c:10846:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        if (isdigit(opts[OPT_ARG_PLAYFOLDER][0])) {
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
   [CC] cdr_csv.c -> cdr_csv.o
   [CC] src/gsm_encode.c -> src/gsm_encode.o
   [CC] src/gsm_explode.c -> src/gsm_explode.o
   [CC] src/gsm_implode.c -> src/gsm_implode.o
   [LD] cdr_manager.o -> cdr_manager.so
   [LD] cdr_custom.o -> cdr_custom.so
   [LD] cdr_syslog.o -> cdr_syslog.so
6 warnings generated.
   [CC] sip/dialplan_functions.c -> sip/dialplan_functions.o
   [CC] src/gsm_create.c -> src/gsm_create.o
   [CC] src/gsm_print.c -> src/gsm_print.o
   [LD] cdr_sqlite3_custom.o -> cdr_sqlite3_custom.so
   [LD] cdr_csv.o -> cdr_csv.so
   [CC] src/gsm_option.c -> src/gsm_option.o
   [CC] app_morsecode.c -> app_morsecode.o
   [CC] src/short_term.c -> src/short_term.o
   [CC] codec_g722.c -> codec_g722.o
   [CC] src/table.c -> src/table.o
   [CC] cel_manager.c -> cel_manager.o
   [AR] src/add.o src/code.o src/debug.o src/decode.o src/long_term.o src/lpc.o src/preprocess.o src/rpe.o src/gsm_destroy.o src/gsm_decode.o src/gsm_encode.o src/gsm_explode.o src/gsm_implode.o src/gsm_create.o src/gsm_print.o src/gsm_option.o src/short_term.o src/table.o -> lib/libgsm.a
   [CC] g722/g722_encode.c -> g722/g722_encode.o
   [CC] sip/security_events.c -> sip/security_events.o
   [CC] cel_custom.c -> cel_custom.o
   [CC] g722/g722_decode.c -> g722/g722_decode.o
   [CC] cel_sqlite3_custom.c -> cel_sqlite3_custom.o
   [CC] codec_adpcm.c -> codec_adpcm.o
   [CC] codec_resample.c -> codec_resample.o
   [LD] cel_manager.o -> cel_manager.so
   [LD] cel_custom.o -> cel_custom.so
   [LD] cel_sqlite3_custom.o -> cel_sqlite3_custom.so
   [CC] speex/resample.c -> speex/resample.o
   [CC] chan_bridge.c -> chan_bridge.o
   [CC] chan_agent.c -> chan_agent.o
   [CC] bridge_builtin_features.c -> bridge_builtin_features.o
   [CC] codec_ilbc.c -> codec_ilbc.o
   [CC] bridge_simple.c -> bridge_simple.o
   [CC] codec_g726.c -> codec_g726.o
   [CC] bridge_softmix.c -> bridge_softmix.o
   [CC] codec_a_mu.c -> codec_a_mu.o
   [CC] chan_skinny.c -> chan_skinny.o
   [CC] bridge_multiplexed.c -> bridge_multiplexed.o
18 warnings generated.
   [CC] codec_lpc10.c -> codec_lpc10.o
   [CC] app_system.c -> app_system.o
   [CC] app_privacy.c -> app_privacy.o
   [CC] codec_alaw.c -> codec_alaw.o
   [LD] bridge_builtin_features.o -> bridge_builtin_features.so
   [LD] bridge_simple.o -> bridge_simple.so
   [LD] bridge_softmix.o -> bridge_softmix.so
   [CC] codec_gsm.c -> codec_gsm.o
   [LD] bridge_multiplexed.o -> bridge_multiplexed.so
   [CC] app_directed_pickup.c -> app_directed_pickup.o
   [CC] chan_mgcp.c -> chan_mgcp.o
   [CC] app_waituntil.c -> app_waituntil.o
chan_mgcp.c:2126:1: warning: expression result unused [-Wunused-value]
+               snprintf(req->header[req->headers], sizeof(req->data) - req->len, "%s %d %s@%s MGCP 1.0%s\r\n", verb, oseq, p->name, p->parent->name, p->ncs ? " NCS 1.0" : "");
^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   [CC] codec_speex.c -> codec_speex.o
   [CC] app_sms.c -> app_sms.o
app_sms.c:290:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isdigit(*s)) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
app_sms.c:752:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isdigit(*i)) {                 /* ignore non-digits */
                     ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
app_sms.c:842:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while (isalnum(*p)) {
                               ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum'
#define isalnum(c)      ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D)))
                                                ^~~~
app_sms.c:843:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                *p = tolower (*p);
                                     ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
app_sms.c:846:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while (isspace (*p)) {
                               ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_sms.c:862:13: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        while (isspace (*p)) {
                                               ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_sms.c:910:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) {
                                                            ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:910:28: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) {
                                                                            ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:910:46: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) {
                                                                                              ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:910:64: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        if (isxdigit(*p) && isxdigit(p[1]) && isxdigit(p[2]) && isxdigit(p[3])) {
                                                                                                                ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:912:13: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                                        (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 12) +
                                                                           ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:913:13: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                                        (((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF)) << 8) +
                                                                           ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:914:13: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                                        (((isalpha(p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha(p[3]) ? 9 : 0) + (p[3] & 0xF));
                                                                           ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:914:62: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                                        (((isalpha(p[2]) ? 9 : 0) + (p[2] & 0xF)) << 4) + ((isalpha(p[3]) ? 9 : 0) + (p[3] & 0xF));
                                                                                                                            ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:927:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                if (isxdigit(*p) && isxdigit(p[1])) {
                                                    ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:927:27: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                if (isxdigit(*p) && isxdigit(p[1])) {
                                                                    ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:928:24: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        h->ud[o++] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
                                                                        ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:928:69: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        h->ud[o++] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
                                                                                                                     ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:942:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                if (isxdigit(*p) && isxdigit(p[1])) {
                                                    ^~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:942:27: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                if (isxdigit(*p) && isxdigit(p[1])) {
                                                                    ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
app_sms.c:943:23: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        h->udh[o] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
                                                                       ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:943:68: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                        h->udh[o] = (((isalpha(*p) ? 9 : 0) + (*p & 0xF)) << 4) + ((isalpha(p[1]) ? 9 : 0) + (p[1] & 0xF));
                                                                                                                    ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
app_sms.c:1912:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isalnum(*p)) {
                     ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum'
#define isalnum(c)      ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D)))
                                                ^~~~
   [LD] codec_ulaw.o -> codec_ulaw.so
   [LD] codec_g722.o g722/g722_encode.o g722/g722_decode.o -> codec_g722.so
   [LD] codec_adpcm.o -> codec_adpcm.so
   [LD] codec_resample.o speex/resample.o -> codec_resample.so
   [LD] codec_ilbc.o ilbc/libilbc.a -> codec_ilbc.so
   [LD] codec_g726.o -> codec_g726.so
   [LD] codec_a_mu.o -> codec_a_mu.so
23 warnings generated.
   [CC] app_nbscat.c -> app_nbscat.o
1 warning generated.
   [CC] func_global.c -> func_global.o
   [LD] codec_lpc10.o lpc10/liblpc10.a -> codec_lpc10.so
   [CC] func_aes.c -> func_aes.o
   [CC] app_dictate.c -> app_dictate.o
app_dictate.c:177:22: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                        if ((f->frametype == AST_FRAME_DTMF)) {
                             ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
app_dictate.c:177:22: note: remove extraneous parentheses around the comparison to silence this warning
                        if ((f->frametype == AST_FRAME_DTMF)) {
                            ~             ^                ~
app_dictate.c:177:22: note: use '=' to turn this equality comparison into an assignment
                        if ((f->frametype == AST_FRAME_DTMF)) {
                                          ^~
                                          =
   [LD] codec_alaw.o -> codec_alaw.so
1 warning generated.
   [CC] app_record.c -> app_record.o
   [LD] codec_gsm.o gsm/lib/libgsm.a -> codec_gsm.so
   [CC] func_devstate.c -> func_devstate.o
   [CC] app_waitforring.c -> app_waitforring.o
   [LD] codec_speex.o -> codec_speex.so
   [CC] chan_oss.c -> chan_oss.o
   [CC] func_sprintf.c -> func_sprintf.o
   [CC] app_forkcdr.c -> app_forkcdr.o
   [CC] app_read.c -> app_read.o
chan_oss.c:1314:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isalnum(s[i]) && strchr(" \t-/", s[i]) == NULL) {
                     ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:48:44: note: expanded from macro 'isalnum'
#define isalnum(c)      ((int)((_ctype_tab_ + 1)[(c)] & (_CTYPE_A|_CTYPE_D)))
                                                ^~~~
   [CC] func_sysinfo.c -> func_sysinfo.o
   [CC] console_video.c -> console_video.o
   [CC] app_waitforsilence.c -> app_waitforsilence.o
   [CC] func_jitterbuffer.c -> func_jitterbuffer.o
   [CC] func_pitchshift.c -> func_pitchshift.o
   [CC] app_controlplayback.c -> app_controlplayback.o
1 warning generated.
   [CC] vgrabbers.c -> vgrabbers.o
   [CC] app_page.c -> app_page.o
   [CC] func_curl.c -> func_curl.o
   [CC] console_board.c -> console_board.o
   [CC] chan_motif.c -> chan_motif.o
   [CC] app_originate.c -> app_originate.o
func_curl.c:369:19: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare]
                        } else if (key == CURLOPT_SPECIAL_HASHCOMPAT) {
                                   ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
func_curl.c:490:20: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare]
                                } else if (key == CURLOPT_SPECIAL_HASHCOMPAT) {
                                           ~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
func_curl.c:619:16: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare]
                if (cur->key == CURLOPT_SPECIAL_HASHCOMPAT) {
                    ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
func_curl.c:630:17: warning: comparison of constant -500 with expression of type 'CURLoption' is always false [-Wtautological-constant-out-of-range-compare]
                        if (cur->key == CURLOPT_SPECIAL_HASHCOMPAT) {
                            ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~
checking build system type...    [CC] app_authenticate.c -> app_authenticate.o
4 warnings generated.
   [CC] func_strings.c -> func_strings.o
x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for x86_64--netbsd-gcc... gcc
   [CC] app_cdr.c -> app_cdr.o
checking whether the C compiler works... func_strings.c:1471:53: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while ((bufptr < buf + buflen - 1) && (*bufptr++ = toupper(*dataptr++)));
                                                           ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
func_strings.c:1484:82: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = toupper(*dataptr++)));
                                                                                        ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
func_strings.c:1500:53: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while ((bufptr < buf + buflen - 1) && (*bufptr++ = tolower(*dataptr++)));
                                                           ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_strings.c:1513:82: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while ((bufptr < ast_str_buffer(*buf) + ast_str_size(*buf) - 1) && (*bufptr++ = tolower(*dataptr++)));
                                                                                        ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling...    [CC] app_queue.c -> app_queue.o
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 whether we are using the GNU C++ compiler...    [CC] chan_iax2.c -> chan_iax2.o
yes
checking whether c++ accepts -g... yes
checking for x86_64--netbsd-ranlib... ranlib
checking for x86_64--netbsd-ar... ar
checking for pthread_create in -lpthread... yes
checking for puts in -lwsock32... no
checking for puts in -lws2_32... chan_iax2.c:5651:21: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
                if ((f->frametype == AST_FRAME_CONTROL)) {
                     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
chan_iax2.c:5651:21: note: remove extraneous parentheses around the comparison to silence this warning
                if ((f->frametype == AST_FRAME_CONTROL)) {
                    ~             ^                   ~
chan_iax2.c:5651:21: note: use '=' to turn this equality comparison into an assignment
                if ((f->frametype == AST_FRAME_CONTROL)) {
                                  ^~
                                  =
no
checking for puts in -lole32... 4 warnings generated.
   [CC] func_module.c -> func_module.o
no
checking for puts in -lwinmm... app_queue.c:8355:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while(isspace(*list)) {
              ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_queue.c:8364:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while(!isspace(*list) && *list != '\0') {
                               ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_queue.c:8368:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while(isspace(*list)) {
                              ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_queue.c:8381:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while(!isspace(*list) && *list != '\0') {
                               ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
app_queue.c:8385:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        while(isspace(*list)) {
                              ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
no
checking for puts in -lsocket... no
checking for puts in -lrt...    [CC] func_shell.c -> func_shell.o
chan_iax2.c:11781:18: warning: implicit truncation from 'int' to bitfield changes value from -1 to 1 [-Wbitfield-constant-conversion]
                fr->outoforder = -1;
                               ^ ~~
yes
checking for puts in -lnsl... no
checking for sin in -lm... yes
checking for uuid_generate in -luuid...    [CC] func_speex.c -> func_speex.o
no
checking for uuid_generate in -luuid... (cached) no
Setting PJ_M_NAME to x86_64
checking memory alignment... 8 bytes
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files...    [CC] func_env.c -> func_env.o
yes
checking for sys/types.h... yes
checking for sys/stat.h... func_env.c:393:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(args.format[0]) == 'd') {
                    ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:395:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (tolower(args.format[0]) == 'm') {
                           ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:397:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (tolower(args.format[0]) == 'u') {
                           ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:555:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(args.fileformat[0]) == 'd') {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:557:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (tolower(args.fileformat[0]) == 'm') {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:559:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (tolower(args.fileformat[0]) == 'u') {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:708:113: warning: expression result unused [-Wunused-value]
                        ast_str_append_substr(buf, len, fbuf, length_offset >= 0 ? length_offset - i : flength > i + sizeof(fbuf)) ? sizeof(fbuf) : flength - i;
                                                                                                                                     ^~~~~~~~~~~~             ~
func_env.c:920:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (tolower(args.format[0]) == 'u') {
                            ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:922:15: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        } else if (tolower(args.format[0]) == 'm') {
                                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
func_env.c:924:15: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        } else if (tolower(args.format[0]) == 'd') {
                                   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
yes
checking for stdlib.h... yes
checking for string.h... yes
10 warnings generated.
   [CC] func_srv.c -> func_srv.o
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h...    [CC] func_base64.c -> func_base64.o
yes
checking for unistd.h... yes
checking whether byte ordering is bigendian...    [CC] func_md5.c -> func_md5.o
no
Checking if floating point is disabled... yes
checking arpa/inet.h usability...    [CC] func_audiohookinherit.c -> func_audiohookinherit.o
yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking assert.h usability...    [CC] func_callcompletion.c -> func_callcompletion.o
yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability...    [CC] func_callerid.c -> func_callerid.o
yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking linux/socket.h usability... no
checking linux/socket.h presence... no
checking for linux/socket.h... no
checking limits.h usability... yes
checking limits.h presence...    [CC] func_dialplan.c -> func_dialplan.o
yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in.h usability...    [CC] func_frame_trace.c -> func_frame_trace.o
yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for netinet/ip.h... no
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking ifaddrs.h usability... 5 warnings generated.
   [CC] app_dial.c -> app_dial.o
   [CC] func_lock.c -> func_lock.o
yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking for getifaddrs... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence...    [CC] func_db.c -> func_db.o
yes
checking for setjmp.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability...    [CC] func_blacklist.c -> func_blacklist.o
yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability...    [CC] func_presencestate.c -> func_presencestate.o
yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/filio.h usability...    [CC] func_channel.c -> func_channel.o
yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking sys/sockio.h usability... yes
checking sys/sockio.h presence... yes
checking for sys/sockio.h... yes
checking sys/utsname.h usability... func_channel.c:507:6: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if(isdigit(*value)) {
                   ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking time.h usability... 1 warning generated.
   [CC] func_sha1.c -> func_sha1.o
yes
checking time.h presence...    [CC] app_speech_utils.c -> app_speech_utils.o
yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for mswsock.h... no
checking ws2tcpip.h usability...    [CC] func_hangupcause.c -> func_hangupcause.o
no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
checking for net/if.h...    [CC] func_enum.c -> func_enum.o
yes
Setting PJ_OS_NAME to x86_64--netbsd
Setting PJ_HAS_ERRNO_VAR to 1
Setting PJ_HAS_HIGH_RES_TIMER to 1
Setting PJ_HAS_MALLOC to 1
Setting PJ_NATIVE_STRING_IS_UNICODE to 0
Setting PJ_ATOMIC_VALUE_TYPE to long
checking if inet_aton() is available... yes
checking if inet_pton() is available... yes
checking if inet_ntop() is available... yes
checking if getaddrinfo() is available... yes
checking if sockaddr_in has sin_len member... yes
checking if socklen_t is available...    [CC] func_version.c -> func_version.o
   [CC] app_test.c -> app_test.o
yes
checking if SO_ERROR is available... yes
2 warnings generated.
checking if pthread_rwlock_t is available...    [CC] iax2-parser.c -> iax2-parser.o
   [CC] func_cut.c -> func_cut.o
yes
   [CC] app_ices.c -> app_ices.o
checking if pthread_mutexattr_settype() is available... no
checking if pthread_mutexattr_t has recursive member... no
checking ioqueue backend... select()
Checking if sound is disabled... yes
checking sys/soundcard.h usability...    [CC] app_chanspy.c -> app_chanspy.o
   [CC] func_groupcount.c -> func_groupcount.o
yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/soundcard.h usability... no
checking linux/soundcard.h presence... no
checking for linux/soundcard.h... no
checking machine/soundcard.h usability... app_chanspy.c:970:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                *s = tolower(*s);
                                                     ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
Checking if small filter is disabled... no
Checking if large filter is disabled... no
Checking if Speex AEC is disabled...yes
Checking if G.711 codec is disabled...yes
Checking if L16 codecs are disabled...yes
Checking if GSM codec is disabled...yes
Checking if G.722 codec is disabled...yes
Checking if G.722.1 codec is disabled...yes
Checking if Speex codec is disabled...yes
Checking if iLBC codec is disabled...yes
Skipping libsamplerate detection
Building libresample as shared library... no
checking SDL availability..... sdl-config: not found
   [CC] func_dialgroup.c -> func_dialgroup.o
   [CC] iax2-provision.c -> iax2-provision.o
Unsupported SDL version
checking for pkg-config... /scratch/comms/asterisk/work/.tools/bin/pkg-config
checking ffmpeg packages... none detected (check the prefix)! **
Must specify package names on the command line
Must specify package names on the command line
checking for v4l2_open in -lv4l2... 1 warning generated.
   [CC] app_verbose.c -> app_verbose.o
no
Skipping Intel IPP settings (not wanted)
checking for OpenSSL installations..
checking openssl/ssl.h usability...    [CC] func_uri.c -> func_uri.o
yes
checking openssl/ssl.h presence...    [CC] app_playback.c -> app_playback.o
yes
checking for openssl/ssl.h... yes
checking for ERR_load_BIO_strings in -lcrypto... yes
checking for SSL_library_init in -lssl... yes
OpenSSL library found, SSL support enabled
checking for OpenCORE AMR-NB installations..
checking opencore-amrnb/interf_enc.h usability... no
checking opencore-amrnb/interf_enc.h presence... no
checking for opencore-amrnb/interf_enc.h... no
checking for Encoder_Interface_init in -lopencore-amrnb...    [CC] app_directory.c -> app_directory.o
   [CC] chan_multicast_rtp.c -> chan_multicast_rtp.o
   [CC] func_cdr.c -> func_cdr.o
app_directory.c:178:11: warning: array subscript is of type 'char' [-Wchar-subscripts]
                digit = toupper(*text++);
                        ^~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
no
checking if select() needs correct nfds... no (default)
** Decided that select() doesn't need correct nfds (please check)
checking if pj_thread_create() should enforce stack size... no (default)
checking if pj_thread_create() should allocate stack... no (default)
** Setting non-blocking recv() retval to EAGAIN (please check)
** Setting non-blocking connect() retval to EINPROGRESS (please check)
aconfigure: creating ./config.status
   [CC] chan_local.c -> chan_local.o
config.status: creating build.mak
config.status: creating build/os-auto.mak
config.status: creating build/cc-auto.mak
config.status: creating pjlib/build/os-auto.mak
config.status: creating pjlib-util/build/os-auto.mak
1 warning generated.
   [CC] app_exec.c -> app_exec.o
config.status: creating pjmedia/build/os-auto.mak
config.status: creating pjsip/build/os-auto.mak
   [CC] func_extstate.c -> func_extstate.o
config.status: creating third_party/build/os-auto.mak
config.status: creating third_party/build/portaudio/os-auto.mak
config.status: creating pjlib/include/pj/compat/os_auto.h
config.status: creating pjlib/include/pj/compat/m_auto.h
config.status: creating pjmedia/include/pjmedia/config_auto.h
config.status: creating pjmedia/include/pjmedia-codec/config_auto.h
config.status: creating pjsip/include/pjsip/sip_autoconf.h


Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.

Further customizations can be put in:
  - 'user.mak'
  - 'pjlib/include/pj/config_site.h'

The next step now is to run 'make dep' and 'make'.

   [CC] res_timing_kqueue.c -> res_timing_kqueue.o
   [CC] app_sayunixtime.c -> app_sayunixtime.o
res_timing_kqueue.c:161:2: warning: incompatible pointer to integer conversion assigning to '__intptr_t' (aka 'long') from 'void *' [-Wint-conversion]
        EV_SET(&kev, our_timer->handle, EVFILT_TIMER, EV_ADD | EV_ENABLE,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/event.h:55:16: note: expanded from macro 'EV_SET'
        (kevp)->udata = (f);                                            \
                      ^ ~~~
   [CC] func_timeout.c -> func_timeout.o
1 warning generated.
   [CC] res_smdi.c -> res_smdi.o
   [CC] chan_unistim.c -> chan_unistim.o
res_smdi.c:731:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                if (!isdigit((c = fgetc(iface->file)))) {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:88:24: warning: unused function 'ast_smdi_interface_unref' [-Wunused-function]
   [CC] func_rand.c -> func_rand.o
AST_OPTIONAL_API(void, ast_smdi_interface_unref,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:102:48: warning: unused function 'ast_smdi_md_message_pop' [-Wunused-function]
AST_OPTIONAL_API(struct ast_smdi_md_message *, ast_smdi_md_message_pop,
                                               ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:118:48: warning: unused function 'ast_smdi_md_message_wait' [-Wunused-function]
AST_OPTIONAL_API(struct ast_smdi_md_message *, ast_smdi_md_message_wait,
                                               ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:131:24: warning: unused function 'ast_smdi_md_message_putback' [-Wunused-function]
AST_OPTIONAL_API(void, ast_smdi_md_message_putback,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:145:49: warning: unused function 'ast_smdi_mwi_message_pop' [-Wunused-function]
AST_OPTIONAL_API(struct ast_smdi_mwi_message *, ast_smdi_mwi_message_pop,
                                                ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:161:49: warning: unused function 'ast_smdi_mwi_message_wait' [-Wunused-function]
AST_OPTIONAL_API(struct ast_smdi_mwi_message *, ast_smdi_mwi_message_wait,
                                                ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:165:49: warning: unused function 'ast_smdi_mwi_message_wait_station' [-Wunused-function]
AST_OPTIONAL_API(struct ast_smdi_mwi_message *, ast_smdi_mwi_message_wait_station,
                                                ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:178:24: warning: unused function 'ast_smdi_mwi_message_putback' [-Wunused-function]
AST_OPTIONAL_API(void, ast_smdi_mwi_message_putback,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:213:24: warning: function 'ast_smdi_md_message_destroy' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(void, ast_smdi_md_message_destroy,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_smdi.c:243:44: note: used here
        ASTOBJ_CONTAINER_DESTROYALL(&iface->md_q, ast_smdi_md_message_destroy);
                                                  ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/astobj.h:459:26: note: expanded from macro 'ASTOBJ_CONTAINER_DESTROYALL'
                        ASTOBJ_UNREF(iterator,destructor); \
                                              ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/astobj.h:229:4: note: expanded from macro 'ASTOBJ_UNREF'
                        destructor((object)); \
                        ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:218:24: warning: function 'ast_smdi_mwi_message_destroy' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(void, ast_smdi_mwi_message_destroy,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_smdi.c:244:45: note: used here
        ASTOBJ_CONTAINER_DESTROYALL(&iface->mwi_q, ast_smdi_mwi_message_destroy);
                                                   ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/astobj.h:459:26: note: expanded from macro 'ASTOBJ_CONTAINER_DESTROYALL'
                        ASTOBJ_UNREF(iterator,destructor); \
                                              ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/astobj.h:229:4: note: expanded from macro 'ASTOBJ_UNREF'
                        destructor((object)); \
                        ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:199:23: warning: function 'ast_smdi_mwi_set' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_smdi_mwi_set,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_smdi.c:890:4: note: used here
                        ast_smdi_mwi_set(mm->iface, mm->smdi);
                        ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:208:23: warning: function 'ast_smdi_mwi_unset' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_smdi_mwi_unset,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_smdi.c:892:4: note: used here
                        ast_smdi_mwi_unset(mm->iface, mm->smdi);
                        ^
In file included from res_smdi.c:51:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/smdi.h:190:47: warning: function 'ast_smdi_interface_find' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(struct ast_smdi_interface *, ast_smdi_interface_find,
                                              ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_smdi.c:1256:16: note: used here
        if (!(iface = ast_smdi_interface_find(args.port))) {
                      ^
chan_unistim.c:891:7: error: no member named 'ipi_spec_dst' in 'struct in_pktinfo'
        pki->ipi_spec_dst.s_addr = addr_ourip->sin_addr.s_addr; /* Local address */
        ~~~  ^
   [CC] app_alarmreceiver.c -> app_alarmreceiver.o
chan_unistim.c:2617:5: warning: format specifies type 'short' but the argument has type 'int' [-Wformat]
                         htons(us.sin_port), ast_getformatname(ast_channel_readformat(sub->owner)));
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/endian.h:128:18: note: expanded from macro 'htons'
#define htons(x)        bswap16(__CAST(uint16_t, (x)))
                        ^
/usr/include/sys/bswap.h:73:2: note: expanded from macro 'bswap16'
        (__builtin_constant_p((x)) ? \
        ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/logger.h:362:92: note: expanded from macro 'ast_verb'
#define ast_verb(level, ...) __ast_verbose(__FILE__, __LINE__, __PRETTY_FUNCTION__, level, __VA_ARGS__)
                                                                                           ^
1 warning and 1 error generated.
make[1]: *** [chan_unistim.o] Error 1
gmake: *** [channels] Error 2
gmake: *** Waiting for unfinished jobs....
   [CC] res_realtime.c -> res_realtime.o
   [CC] func_logic.c -> func_logic.o
   [CC] func_iconv.c -> func_iconv.o
   [CC] app_followme.c -> app_followme.o
14 warnings generated.
   [CC] res_mutestream.c -> res_mutestream.o
   [CC] res_xmpp.c -> res_xmpp.o
   [CC] func_volume.c -> func_volume.o
   [CC] app_getcpeid.c -> app_getcpeid.o
   [CC] res_config_ldap.c -> res_config_ldap.o
   [CC] func_realtime.c -> func_realtime.o
res_xmpp.c:3504:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                while (isspace(buf[pos+1])) {
                                       ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
   [CC] func_vmcount.c -> func_vmcount.o
   [CC] app_festival.c -> app_festival.o
   [CC] func_math.c -> func_math.o
   [CC] func_config.c -> func_config.o
   [CC] app_milliwatt.c -> app_milliwatt.o
   [LD] func_global.o -> func_global.so
   [CC] app_mixmonitor.c -> app_mixmonitor.o
   [LD] func_aes.o -> func_aes.so
   [CC] res_convert.c -> res_convert.o
   [LD] func_devstate.o -> func_devstate.so
   [CC] app_softhangup.c -> app_softhangup.o
   [LD] func_sprintf.o -> func_sprintf.so
   [LD] func_sysinfo.o -> func_sysinfo.so
   [LD] func_jitterbuffer.o -> func_jitterbuffer.so
   [LD] func_pitchshift.o -> func_pitchshift.so
   [LD] app_externalivr.o -> app_externalivr.so
   [LD] func_curl.o -> func_curl.so
   [LD] func_strings.o -> func_strings.so
   [LD] app_macro.o -> app_macro.so
   [CC] res_adsi.c -> res_adsi.o
   [LD] func_module.o -> func_module.so
1 warning generated.
   [LD] func_shell.o -> func_shell.so
   [CC] res_stun_monitor.c -> res_stun_monitor.o
   [LD] app_sendtext.o -> app_sendtext.so
   [LD] func_speex.o -> func_speex.so
   [LD] app_db.o -> app_db.so
   [LD] func_env.o -> func_env.so
   [LD] app_amd.o -> app_amd.so
   [LD] app_parkandannounce.o -> app_parkandannounce.so
   [LD] func_srv.o -> func_srv.so
   [LD] app_adsiprog.o -> app_adsiprog.so
   [LD] func_base64.o -> func_base64.so
   [LD] func_md5.o -> func_md5.so
   [LD] func_audiohookinherit.o -> func_audiohookinherit.so
   [LD] app_playtones.o -> app_playtones.so
   [LD] func_callcompletion.o -> func_callcompletion.so
   [CC] res_crypto.c -> res_crypto.o
   [LD] func_callerid.o -> func_callerid.so
   [LD] app_url.o -> app_url.so
   [LD] app_transfer.o -> app_transfer.so
   [LD] func_dialplan.o -> func_dialplan.so
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:55:36: warning: unused function 'ast_key_get' [-Wunused-function]
AST_OPTIONAL_API(struct ast_key *, ast_key_get, (const char *key, int type), { return NULL; });
                                   ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:67:23: warning: unused function 'ast_check_signature' [-Wunused-function]
AST_OPTIONAL_API(int, ast_check_signature, (struct ast_key *key, const char *msg, const char *sig), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:92:23: warning: unused function 'ast_sign' [-Wunused-function]
AST_OPTIONAL_API(int, ast_sign, (struct ast_key *key, char *msg, char *sig), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:119:23: warning: unused function 'ast_encrypt_bin' [-Wunused-function]
AST_OPTIONAL_API(int, ast_encrypt_bin, (unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:133:23: warning: unused function 'ast_decrypt_bin' [-Wunused-function]
AST_OPTIONAL_API(int, ast_decrypt_bin, (unsigned char *dst, const unsigned char *src, int srclen, struct ast_key *key), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:143:23: warning: unused function 'ast_aes_set_encrypt_key' [-Wunused-function]
AST_OPTIONAL_API(int, ast_aes_set_encrypt_key,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:155:23: warning: unused function 'ast_aes_set_decrypt_key' [-Wunused-function]
AST_OPTIONAL_API(int, ast_aes_set_decrypt_key,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:165:24: warning: unused function 'ast_aes_encrypt' [-Wunused-function]
AST_OPTIONAL_API(void, ast_aes_encrypt,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:175:24: warning: unused function 'ast_aes_decrypt' [-Wunused-function]
AST_OPTIONAL_API(void, ast_aes_decrypt,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:179:23: warning: unused function 'ast_crypto_loaded' [-Wunused-function]
AST_OPTIONAL_API(int, ast_crypto_loaded, (void), { return 0; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:105:23: warning: function 'ast_sign_bin' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_sign_bin, (struct ast_key *key, const char *msg, int msglen, unsigned char *sig), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_crypto.c:399:14: note: used here
        if (!(res = ast_sign_bin(key, msg, strlen(msg), dsig))) {
                    ^
In file included from res_crypto.c:52:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/crypto.h:79:23: warning: function 'ast_check_signature_bin' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_check_signature_bin, (struct ast_key *key, const char *msg, int msglen, const unsigned char *sig), { return -1; });
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_crypto.c:451:8: note: used here
        res = ast_check_signature_bin(key, msg, strlen(msg), dsig);
              ^
   [LD] func_frame_trace.o -> func_frame_trace.so
12 warnings generated.
   [LD] func_lock.o -> func_lock.so
   [LD] app_zapateller.o -> app_zapateller.so
   [LD] app_celgenuserevent.o -> app_celgenuserevent.so
   [LD] func_db.o -> func_db.so
   [LD] func_blacklist.o -> func_blacklist.so
   [LD] app_channelredirect.o -> app_channelredirect.so
   [CC] res_phoneprov.c -> res_phoneprov.o
   [LD] app_disa.o -> app_disa.so
   [LD] app_mp3.o -> app_mp3.so
   [LD] func_presencestate.o -> func_presencestate.so
   [LD] app_senddtmf.o -> app_senddtmf.so
   [LD] func_channel.o -> func_channel.so
   [LD] app_while.o -> app_while.so
   [LD] app_echo.o -> app_echo.so
   [LD] func_sha1.o -> func_sha1.so
   [LD] func_hangupcause.o -> func_hangupcause.so
   [LD] app_readexten.o -> app_readexten.so
   [CC] res_config_sqlite3.c -> res_config_sqlite3.o
   [LD] app_stack.o -> app_stack.so
   [LD] func_enum.o -> func_enum.so
   [LD] app_confbridge.o confbridge/conf_state_inactive.o confbridge/conf_config_parser.o confbridge/conf_state_empty.o confbridge/conf_state_multi.o confbridge/conf_state_multi_marked.o confbridge/conf_state_single.o confbridge/conf_state.o confbridge/conf_state_single_marked.o -> app_confbridge.so
   [LD] func_version.o -> func_version.so
   [LD] app_userevent.o -> app_userevent.so
   [LD] app_chanisavail.o -> app_chanisavail.so
   [LD] app_dumpchan.o -> app_dumpchan.so
   [LD] func_cut.o -> func_cut.so
   [LD] app_talkdetect.o -> app_talkdetect.so
   [LD] func_groupcount.o -> func_groupcount.so
   [LD] func_dialgroup.o -> func_dialgroup.so
   [LD] app_image.o -> app_image.so
   [LD] func_uri.o -> func_uri.so
   [LD] app_minivm.o -> app_minivm.so
   [LD] app_voicemail.o -> app_voicemail.so
   [LD] app_morsecode.o -> app_morsecode.so
   [LD] app_system.o -> app_system.so
   [LD] func_cdr.o -> func_cdr.so
   [LD] app_privacy.o -> app_privacy.so
   [CC] res_config_curl.c -> res_config_curl.o
   [LD] func_extstate.o -> func_extstate.so
   [LD] func_timeout.o -> func_timeout.so
   [LD] app_directed_pickup.o -> app_directed_pickup.so
   [LD] app_waituntil.o -> app_waituntil.so
   [CC] res_speech.c -> res_speech.o
   [CC] res_fax.c -> res_fax.o
   [LD] func_rand.o -> func_rand.so
   [LD] app_sms.o -> app_sms.so
   [LD] func_logic.o -> func_logic.so
   [LD] app_nbscat.o -> app_nbscat.so
   [LD] func_iconv.o -> func_iconv.so
   [LD] app_dictate.o -> app_dictate.so
   [LD] func_volume.o -> func_volume.so
   [LD] app_record.o -> app_record.so
   [LD] func_realtime.o -> func_realtime.so
   [LD] func_vmcount.o -> func_vmcount.so
   [LD] app_waitforring.o -> app_waitforring.so
   [LD] func_math.o -> func_math.so
   [CC] res_curl.c -> res_curl.o
   [LD] func_config.o -> func_config.so
   [LD] app_forkcdr.o -> app_forkcdr.so
   [LD] app_read.o -> app_read.so
   [LD] app_waitforsilence.o -> app_waitforsilence.so
   [CC] res_format_attr_silk.c -> res_format_attr_silk.o
   [LD] app_controlplayback.o -> app_controlplayback.so
   [CC] res_agi.c -> res_agi.o
In file included from res_agi.c:71:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/agi.h:142:50: warning: function 'ast_agi_send' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API_ATTR(int, format(printf, 3, 4), ast_agi_send,
                                                 ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:190:110: note: expanded from macro 'AST_OPTIONAL_API_ATTR'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_agi.c:1565:6: note: used here
        if (ast_agi_send(s, NULL, "agi_network: yes\n") < 0) {
            ^
In file included from res_agi.c:71:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/agi.h:76:23: warning: function 'ast_agi_register' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_agi_register,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_agi.c:3288:7: note: used here
                if (ast_agi_register(mod, cmd + i) == 1) {
                    ^
In file included from res_agi.c:71:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/agi.h:90:23: warning: function 'ast_agi_unregister' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_agi_unregister,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_agi.c:3305:11: note: used here
                        (void) ast_agi_unregister(mod, cmd + x - 1);
                               ^
In file included from res_agi.c:71:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/agi.h:127:23: warning: function 'ast_agi_unregister_multiple' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_agi_unregister_multiple,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_agi.c:4069:9: note: used here
        (void) ast_agi_unregister_multiple(ast_module_info->self, commands, ARRAY_LEN(commands));
               ^
In file included from res_agi.c:71:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/agi.h:109:23: warning: function 'ast_agi_register_multiple' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_agi_register_multiple,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_agi.c:4083:9: note: used here
        (void) ast_agi_register_multiple(ast_module_info->self, commands, ARRAY_LEN(commands));
               ^
   [LD] app_page.o -> app_page.so
res_format_attr_silk.c:125:7: warning: comparison of constant -1 with expression of type 'enum silk_attr_keys' is always true [-Wtautological-constant-out-of-range-compare]
                key != AST_FORMAT_ATTR_END;
                ~~~ ^  ~~~~~~~~~~~~~~~~~~~
res_format_attr_silk.c:196:7: warning: comparison of constant -1 with expression of type 'enum silk_attr_keys' is always true [-Wtautological-constant-out-of-range-compare]
                key != AST_FORMAT_ATTR_END;
                ~~~ ^  ~~~~~~~~~~~~~~~~~~~
   [LD] app_originate.o -> app_originate.so
2 warnings generated.
   [LD] app_authenticate.o -> app_authenticate.so
   [CC] res_rtp_multicast.c -> res_rtp_multicast.o
   [LD] app_cdr.o -> app_cdr.so
   [LD] app_queue.o -> app_queue.so
5 warnings generated.
   [LD] app_dial.o -> app_dial.so
   [CC] res_format_attr_h263.c -> res_format_attr_h263.o
   [LD] app_speech_utils.o -> app_speech_utils.so
   [CC] res_monitor.c -> res_monitor.o
   [LD] app_test.o -> app_test.so
   [LD] app_ices.o -> app_ices.so
   [LD] app_chanspy.o -> app_chanspy.so
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:60:23: warning: function 'ast_monitor_stop' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_monitor_stop,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:347:19: note: used here
                monitor->stop = ast_monitor_stop;
                                ^
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:75:23: warning: function 'ast_monitor_pause' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_monitor_pause,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:549:9: note: used here
        return ast_monitor_pause(chan);
               ^
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:80:23: warning: function 'ast_monitor_unpause' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_monitor_unpause,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:555:9: note: used here
        return ast_monitor_unpause(chan);
               ^
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:54:23: warning: function 'ast_monitor_start' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_monitor_start,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:725:8: note: used here
        res = ast_monitor_start(chan, args.format, args.fname_base, 1, stream_action);
              ^
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:65:23: warning: function 'ast_monitor_change_fname' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_monitor_change_fname,
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:727:9: note: used here
                res = ast_monitor_change_fname(chan, args.fname_base, 1);
                      ^
In file included from res_monitor.c:46:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/monitor.h:70:24: warning: function 'ast_monitor_setjoinfiles' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(void, ast_monitor_setjoinfiles,
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_monitor.c:735:2: note: used here
        ast_monitor_setjoinfiles(chan, joinfiles);
        ^
   [CC] res_musiconhold.c -> res_musiconhold.o
   [LD] app_verbose.o -> app_verbose.so
   [LD] app_playback.o -> app_playback.so
   [LD] app_directory.o -> app_directory.so
6 warnings generated.
   [LD] app_exec.o -> app_exec.so
   [CC] res_format_attr_celt.c -> res_format_attr_celt.o
   [CC] res_http_websocket.c -> res_http_websocket.o
res_musiconhold.c:1426:50: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                else if (!strcasecmp(tmp->name, "digit") && (isdigit(*tmp->value) || strchr("*#", *tmp->value)))
                                                                             ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
res_musiconhold.c:1772:51: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        } else if (!strcasecmp(var->name, "digit") && (isdigit(*var->value) || strchr("*#", *var->value))) {
                                                                       ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
res_format_attr_celt.c:110:7: warning: comparison of constant -1 with expression of type 'enum celt_attr_keys' is always true [-Wtautological-constant-out-of-range-compare]
                key != AST_FORMAT_ATTR_END;
                ~~~ ^  ~~~~~~~~~~~~~~~~~~~
res_format_attr_celt.c:161:7: warning: comparison of constant -1 with expression of type 'enum celt_attr_keys' is always true [-Wtautological-constant-out-of-range-compare]
                key != AST_FORMAT_ATTR_END;
                ~~~ ^  ~~~~~~~~~~~~~~~~~~~
2 warnings generated.
   [LD] app_sayunixtime.o -> app_sayunixtime.so
   [LD] app_alarmreceiver.o -> app_alarmreceiver.so
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:129:24: warning: unused function 'ast_websocket_reconstruct_enable' [-Wunused-function]
AST_OPTIONAL_API(void, ast_websocket_reconstruct_enable, (struct ast_websocket *session, size_t bytes), {return;});
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:139:24: warning: unused function 'ast_websocket_reconstruct_disable' [-Wunused-function]
AST_OPTIONAL_API(void, ast_websocket_reconstruct_disable, (struct ast_websocket *session), {return;});
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:146:24: warning: unused function 'ast_websocket_ref' [-Wunused-function]
AST_OPTIONAL_API(void, ast_websocket_ref, (struct ast_websocket *session), {return;});
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:169:41: warning: unused function 'ast_websocket_remote_address' [-Wunused-function]
AST_OPTIONAL_API(struct ast_sockaddr *, ast_websocket_remote_address, (struct ast_websocket *session), {return NULL;});
                                        ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:177:23: warning: unused function 'ast_websocket_is_secure' [-Wunused-function]
AST_OPTIONAL_API(int, ast_websocket_is_secure, (struct ast_websocket *session), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:185:23: warning: unused function 'ast_websocket_set_nonblock' [-Wunused-function]
AST_OPTIONAL_API(int, ast_websocket_set_nonblock, (struct ast_websocket *session), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:120:23: warning: function 'ast_websocket_close' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_close, (struct ast_websocket *session, uint16_t reason), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:323:5: note: used here
                                ast_websocket_close(session, 1009);
                                ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:109:23: warning: function 'ast_websocket_write' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_write, (struct ast_websocket *session, enum ast_websocket_opcode opcode, char *payload, uint64_t actual_length), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:412:4: note: used here
                        ast_websocket_write(session, AST_WEBSOCKET_OPCODE_PONG, *payload, *payload_len);
                        ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:162:23: warning: function 'ast_websocket_fd' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_fd, (struct ast_websocket *session), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:627:21: note: used here
        if ((flags = fcntl(ast_websocket_fd(session), F_GETFL)) == -1) {
                           ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:96:23: warning: function 'ast_websocket_read' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_read, (struct ast_websocket *session, char **payload, uint64_t *payload_len, enum ast_websocket_opcode *opcode, int *fragmented), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:643:7: note: used here
                if (ast_websocket_read(session, &payload, &payload_len, &opcode, &fragmented)) {
                    ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:153:24: warning: function 'ast_websocket_unref' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(void, ast_websocket_unref, (struct ast_websocket *session), {return;});
                       ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:656:2: note: used here
        ast_websocket_unref(session);
        ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:69:23: warning: function 'ast_websocket_add_protocol' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_add_protocol, (const char *name, ast_websocket_callback callback), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:663:2: note: used here
        ast_websocket_add_protocol("echo", websocket_echo_callback);
        ^
In file included from res_http_websocket.c:42:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/http_websocket.h:80:23: warning: function 'ast_websocket_remove_protocol' has internal linkage but is not defined [-Wundefined-internal]
AST_OPTIONAL_API(int, ast_websocket_remove_protocol, (const char *name, ast_websocket_callback callback), {return -1;});
                      ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
res_http_websocket.c:670:2: note: used here
        ast_websocket_remove_protocol("echo", websocket_echo_callback);
        ^
   [LD] app_followme.o -> app_followme.so
   [LD] app_getcpeid.o -> app_getcpeid.so
13 warnings generated.
   [LD] app_festival.o -> app_festival.so
../src/pjnath/ice_session.c:533:58: warning: sizeof on array function parameter will return size of 'const pj_uint8_t *' (aka 'const unsigned char *') instead of 'const pj_uint8_t [4]' [-Wsizeof-array-argument]
    ice->prefs = (pj_uint8_t*) pj_pool_calloc(ice->pool, PJ_ARRAY_SIZE(prefs),
                                                         ^
../../pjlib/include/pj/types.h:272:36: note: expanded from macro 'PJ_ARRAY_SIZE'
#define PJ_ARRAY_SIZE(a)    (sizeof(a)/sizeof(a[0]))
                                   ^
../src/pjnath/ice_session.c:529:25: note: declared here
                                          const pj_uint8_t prefs[4])
                                                           ^
2 warnings generated.
../src/pjnath/ice_strans.c:850:39: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
    if (ice_st->comp[0]->default_cand >= 0 &&
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~
   [LD] app_milliwatt.o -> app_milliwatt.so
   [LD] app_mixmonitor.o -> app_mixmonitor.so
   [LD] app_softhangup.o -> app_softhangup.so
1 warning generated.
In file included from ../src/pj/ioqueue_select.c:136:
../src/pj/ioqueue_common_abs.c:489:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        if ((read_op->op == PJ_IOQUEUE_OP_RECV_FROM)) {
             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/pj/ioqueue_common_abs.c:489:19: note: remove extraneous parentheses around the comparison to silence this warning
        if ((read_op->op == PJ_IOQUEUE_OP_RECV_FROM)) {
            ~            ^                         ~
../src/pj/ioqueue_common_abs.c:489:19: note: use '=' to turn this equality comparison into an assignment
        if ((read_op->op == PJ_IOQUEUE_OP_RECV_FROM)) {
                         ^~
                         =
../src/pj/ioqueue_common_abs.c:495:26: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
        } else if ((read_op->op == PJ_IOQUEUE_OP_RECV)) {
                    ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../src/pj/ioqueue_common_abs.c:495:26: note: remove extraneous parentheses around the comparison to silence this warning
        } else if ((read_op->op == PJ_IOQUEUE_OP_RECV)) {
                   ~            ^                    ~
../src/pj/ioqueue_common_abs.c:495:26: note: use '=' to turn this equality comparison into an assignment
        } else if ((read_op->op == PJ_IOQUEUE_OP_RECV)) {
                                ^~
                                =
../src/pj/ioqueue_common_abs.c:1004:13: warning: explicitly assigning a variable of type 'pj_status_t' (aka 'int') to itself [-Wself-assign]
            status = status;
            ~~~~~~ ^ ~~~~~~
1 warning generated.
   [CC] res_calendar.c -> res_calendar.o
3 warnings generated.
   [CC] res_ael_share.c -> res_ael_share.o
   [CC] ael/ael_lex.c -> ael/ael_lex.o
ar: creating ../lib/libpjnath-x86_64--netbsd.a
a - output/pjnath-x86_64--netbsd/errno.o
a - output/pjnath-x86_64--netbsd/ice_session.o
a - output/pjnath-x86_64--netbsd/ice_strans.o
a - output/pjnath-x86_64--netbsd/nat_detect.o
a - output/pjnath-x86_64--netbsd/stun_auth.o
a - output/pjnath-x86_64--netbsd/stun_msg.o
a - output/pjnath-x86_64--netbsd/stun_msg_dump.o
a - output/pjnath-x86_64--netbsd/stun_session.o
a - output/pjnath-x86_64--netbsd/stun_sock.o
a - output/pjnath-x86_64--netbsd/stun_transaction.o
a - output/pjnath-x86_64--netbsd/turn_session.o
a - output/pjnath-x86_64--netbsd/turn_sock.o
   [CC] ael/ael.tab.c -> ael/ael.tab.o
   [CC] ael/pval.c -> ael/pval.o
ael/pval.c:861:16: warning: array subscript is of type 'char' [-Wchar-subscripts]
        while (*e && !isdigit(*e)) 
                      ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
ael/pval.c:3557:22: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                while (*strp2 && isspace(*strp2))
                                                 ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
ael/pval.c:3561:23: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        while (*strp3 && isspace(*strp3))
                                                         ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
ael/pval.c:3611:22: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                while (*strp2 && isspace(*strp2))
                                                 ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
ael/pval.c:3615:23: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        while (*strp3 && isspace(*strp3))
                                                         ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
ar: creating ../lib/libpjlib-util-x86_64--netbsd.a
a - output/pjlib-util-x86_64--netbsd/base64.o
a - output/pjlib-util-x86_64--netbsd/crc32.o
a - output/pjlib-util-x86_64--netbsd/errno.o
a - output/pjlib-util-x86_64--netbsd/dns.o
a - output/pjlib-util-x86_64--netbsd/dns_dump.o
a - output/pjlib-util-x86_64--netbsd/dns_server.o
a - output/pjlib-util-x86_64--netbsd/getopt.o
a - output/pjlib-util-x86_64--netbsd/hmac_md5.o
a - output/pjlib-util-x86_64--netbsd/hmac_sha1.o
a - output/pjlib-util-x86_64--netbsd/http_client.o
a - output/pjlib-util-x86_64--netbsd/md5.o
a - output/pjlib-util-x86_64--netbsd/pcap.o
a - output/pjlib-util-x86_64--netbsd/resolver.o
a - output/pjlib-util-x86_64--netbsd/scanner.o
a - output/pjlib-util-x86_64--netbsd/sha1.o
a - output/pjlib-util-x86_64--netbsd/srv_resolver.o
a - output/pjlib-util-x86_64--netbsd/string.o
a - output/pjlib-util-x86_64--netbsd/stun_simple.o
a - output/pjlib-util-x86_64--netbsd/stun_simple_client.o
a - output/pjlib-util-x86_64--netbsd/xml.o
   [CC] res_limit.c -> res_limit.o
res_limit.c:196:42: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                ast_cli(a->fd, "%c%s (%s) is %s.\n", toupper(desc[0]), desc + 1, a->argv[1], printlimit);
                                                                     ^~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
1 warning generated.
   [CC] res_clioriginate.c -> res_clioriginate.o
../src/pj/pool.c:146:4: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
        p = p;
        ~ ^ ~
1 warning generated.
   [CC] res_security_log.c -> res_security_log.o
   [CC] res_pktccops.c -> res_pktccops.o
res_pktccops.c:1350:42: warning: 'strncmp' call operates on objects of type 'const char' while the size is based on a different type 'const char *const' [-Wsizeof-pointer-memaccess]
        if (!strncmp(a->argv[2], "null", sizeof(a->argv[2]))) {
                     ~~~~~~~~~~                 ^~~~~~~~~~
res_pktccops.c:1350:42: note: did you mean to provide an explicit length?
        if (!strncmp(a->argv[2], "null", sizeof(a->argv[2]))) {
                                                ^~~~~~~~~~
In file included from res_pktccops.c:65:
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/pktccops.h:71:38: warning: unused function 'ast_pktccops_gate_alloc' [-Wunused-function]
AST_OPTIONAL_API(struct cops_gate *, ast_pktccops_gate_alloc,
                                     ^
/scratch/comms/asterisk/work/asterisk-11.4.0/include/asterisk/optional_api.h:186:110: note: expanded from macro 'AST_OPTIONAL_API'
        static __attribute__((alias(__stringify(AST_OPTIONAL_API_NAME(name))))) typeof(AST_OPTIONAL_API_NAME(name)) name;
                                                                                                                    ^
2 warnings generated.
5 warnings generated.
   [CC] res_timing_pthread.c -> res_timing_pthread.o
   [CC] res_clialiases.c -> res_clialiases.o
   [CC] res_format_attr_h264.c -> res_format_attr_h264.o
   [LD] res_timing_kqueue.o -> res_timing_kqueue.so
   [LD] res_smdi.o -> res_smdi.so
   [LD] res_realtime.o -> res_realtime.so
   [LD] res_mutestream.o -> res_mutestream.so
   [LD] res_xmpp.o -> res_xmpp.so
   [LD] res_config_ldap.o -> res_config_ldap.so
   [LD] res_convert.o -> res_convert.so
   [LD] res_adsi.o -> res_adsi.so
   [LD] res_stun_monitor.o -> res_stun_monitor.so
   [LD] res_crypto.o -> res_crypto.so
   [LD] res_phoneprov.o -> res_phoneprov.so
   [LD] res_config_sqlite3.o -> res_config_sqlite3.so
   [LD] res_config_curl.o -> res_config_curl.so
   [LD] res_speech.o -> res_speech.so
ar: creating ../lib/libpj-x86_64--netbsd.a
a - output/pjlib-x86_64--netbsd/ioqueue_select.o
a - output/pjlib-x86_64--netbsd/file_access_unistd.o
a - output/pjlib-x86_64--netbsd/file_io_ansi.o
a - output/pjlib-x86_64--netbsd/os_core_unix.o
a - output/pjlib-x86_64--netbsd/os_error_unix.o
a - output/pjlib-x86_64--netbsd/os_time_unix.o
a - output/pjlib-x86_64--netbsd/os_timestamp_posix.o
a - output/pjlib-x86_64--netbsd/guid_simple.o
a - output/pjlib-x86_64--netbsd/addr_resolv_sock.o
a - output/pjlib-x86_64--netbsd/log_writer_stdout.o
a - output/pjlib-x86_64--netbsd/os_timestamp_common.o
a - output/pjlib-x86_64--netbsd/pool_policy_malloc.o
a - output/pjlib-x86_64--netbsd/sock_bsd.o
a - output/pjlib-x86_64--netbsd/sock_select.o
a - output/pjlib-x86_64--netbsd/activesock.o
a - output/pjlib-x86_64--netbsd/array.o
a - output/pjlib-x86_64--netbsd/config.o
a - output/pjlib-x86_64--netbsd/ctype.o
a - output/pjlib-x86_64--netbsd/errno.o
a - output/pjlib-x86_64--netbsd/except.o
a - output/pjlib-x86_64--netbsd/fifobuf.o
a - output/pjlib-x86_64--netbsd/guid.o
a - output/pjlib-x86_64--netbsd/hash.o
a - output/pjlib-x86_64--netbsd/ip_helper_generic.o
a - output/pjlib-x86_64--netbsd/list.o
a - output/pjlib-x86_64--netbsd/lock.o
a - output/pjlib-x86_64--netbsd/log.o
a - output/pjlib-x86_64--netbsd/os_time_common.o
a - output/pjlib-x86_64--netbsd/os_info.o
a - output/pjlib-x86_64--netbsd/pool.o
a - output/pjlib-x86_64--netbsd/pool_buf.o
a - output/pjlib-x86_64--netbsd/pool_caching.o
a - output/pjlib-x86_64--netbsd/pool_dbg.o
a - output/pjlib-x86_64--netbsd/rand.o
a - output/pjlib-x86_64--netbsd/rbtree.o
a - output/pjlib-x86_64--netbsd/sock_common.o
a - output/pjlib-x86_64--netbsd/sock_qos_common.o
a - output/pjlib-x86_64--netbsd/sock_qos_bsd.o
a - output/pjlib-x86_64--netbsd/ssl_sock_common.o
a - output/pjlib-x86_64--netbsd/ssl_sock_ossl.o
a - output/pjlib-x86_64--netbsd/ssl_sock_dump.o
a - output/pjlib-x86_64--netbsd/string.o
a - output/pjlib-x86_64--netbsd/timer.o
a - output/pjlib-x86_64--netbsd/types.o
   [LD] res_fax.o -> res_fax.so
   [LD] res_curl.o -> res_curl.so
   [LD] res_format_attr_silk.o -> res_format_attr_silk.so
   [LD] res_agi.o -> res_agi.so
   [LD] res_rtp_multicast.o -> res_rtp_multicast.so
   [LD] res_format_attr_h263.o -> res_format_attr_h263.so
   [LD] res_monitor.o -> res_monitor.so
   [LD] res_musiconhold.o -> res_musiconhold.so
   [LD] res_format_attr_celt.o -> res_format_attr_celt.so
   [LD] res_http_websocket.o -> res_http_websocket.so
   [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o
   [LD] res_calendar.o -> res_calendar.so
   [LD] res_ael_share.o ael/ael_lex.o ael/ael.tab.o ael/pval.o -> res_ael_share.so
   [LD] res_limit.o -> res_limit.so
   [LD] res_security_log.o -> res_security_log.so
   [LD] res_pktccops.o -> res_pktccops.so
   [LD] res_clioriginate.o -> res_clioriginate.so
   [LD] res_timing_pthread.o -> res_timing_pthread.so
   [LD] res_clialiases.o -> res_clialiases.so
   [LD] res_format_attr_h264.o -> res_format_attr_h264.so
   [LD] res_rtp_asterisk.o -> res_rtp_asterisk.so
*** Error code 2

Stop.
make: stopped in /data/pkgsrc/comms/asterisk
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/comms/asterisk
