Compiling mod_spandsp_modem.c ...<br>cc1: warnings being treated as errors<br>mod_spandsp_modem.c: In function &#39;modem_init&#39;:<br>mod_spandsp_modem.c:380: warning: ISO C90 forbids mixed declarations and code<br>mod_spandsp_modem.c:398: error: invalid storage class for function &#39;channel_on_init&#39;<br>
mod_spandsp_modem.c:399: error: invalid storage class for function &#39;channel_on_hangup&#39;<br>mod_spandsp_modem.c:400: error: invalid storage class for function &#39;channel_on_destroy&#39;<br>mod_spandsp_modem.c:401: error: invalid storage class for function &#39;channel_on_routing&#39;<br>
mod_spandsp_modem.c:402: error: invalid storage class for function &#39;channel_on_exchange_media&#39;<br>mod_spandsp_modem.c:403: error: invalid storage class for function &#39;channel_on_soft_execute&#39;<br>mod_spandsp_modem.c:407: error: invalid storage class for function &#39;channel_outgoing_channel&#39;<br>
mod_spandsp_modem.c:408: error: invalid storage class for function &#39;channel_read_frame&#39;<br>mod_spandsp_modem.c:409: error: invalid storage class for function &#39;channel_write_frame&#39;<br>mod_spandsp_modem.c:410: error: invalid storage class for function &#39;channel_kill_channel&#39;<br>
mod_spandsp_modem.c:419: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:419: error: invalid storage class for function &#39;channel_on_init&#39;<br>mod_spandsp_modem.c: In function &#39;channel_on_init&#39;:<br>
mod_spandsp_modem.c:445: warning: implicit declaration of function &#39;ioctl&#39;<br>mod_spandsp_modem.c: In function &#39;modem_init&#39;:<br>mod_spandsp_modem.c:489: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:489: error: invalid storage class for function &#39;channel_on_routing&#39;<br>
mod_spandsp_modem.c:503: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:503: error: invalid storage class for function &#39;channel_on_execute&#39;<br>mod_spandsp_modem.c:519: warning: ISO C forbids nested functions<br>
mod_spandsp_modem.c:519: error: invalid storage class for function &#39;channel_on_destroy&#39;<br>mod_spandsp_modem.c:543: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:543: error: invalid storage class for function &#39;channel_on_hangup&#39;<br>
mod_spandsp_modem.c:560: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:560: error: invalid storage class for function &#39;channel_kill_channel&#39;<br>mod_spandsp_modem.c:586: warning: ISO C forbids nested functions<br>
mod_spandsp_modem.c:586: error: invalid storage class for function &#39;channel_on_soft_execute&#39;<br>mod_spandsp_modem.c:592: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:592: error: invalid storage class for function &#39;channel_on_exchange_media&#39;<br>
mod_spandsp_modem.c:608: warning: ISO C forbids nested functions<br>mod_spandsp_modem.c:608: error: invalid storage class for function &#39;channel_on_reset&#39;<br><br>It looks to me like the error is here:<br><br>#if USE_OPENPTY<br>
    if (openpty(&amp;modem-&gt;master, &amp;modem-&gt;slave, NULL, NULL, NULL)) {<br><br>        if (modem-&gt;master &lt; 0) {<br>                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, &quot;Fatal error: failed to initialize pty\n&quot;);<br>
                status = SWITCH_STATUS_FALSE;<br>                goto end;<br>    }<br><br>        modem-&gt;stty = ttyname(modem-&gt;slave);<br>#else<br><br><br>I traced to the bottom of the function, and didn&#39;t see a matching close brace.  I believe it is the if(modem-&gt;master &lt; 0){ statement that is missing the closing } after the goto end; statement.<br>
<br>Can a more knowledgeable developer confirm that this is correct.<br><br>Ted<br>