<div dir="ltr"><div dir="ltr">On Fri, Mar 13, 2020 at 3:36 PM Administrator <<a href="mailto:admin@tootai.net">admin@tootai.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p><br>
    </p>
    <div>Le 13/03/2020 à 13:30, Joshua C. Colp a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">On Fri, Mar 13, 2020 at 9:27 AM Administrator
          <<a href="mailto:admin@tootai.net" target="_blank">admin@tootai.net</a>>
          wrote:<br>
        </div>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
            <br>
            2 asterisk servers 16.8.0 version running on Debian 10.3 On
            one of them, <br>
            I can't compile asterisk having error<br>
            <br>
                [CC] res_rtp_asterisk.c -> res_rtp_asterisk.o<br>
            res_rtp_asterisk.c:2674:3: error: ‘pj_ice_sess_cb’ {aka
            ‘struct <br>
            pj_ice_sess_cb’} has no member named ‘on_valid_pair’<br>
               .on_valid_pair = ast_rtp_on_valid_pair,<br>
                ^~~~~~~~~~~~~<br>
            res_rtp_asterisk.c:2674:19: warning: initialization of ‘void
            <br>
            (*)(pj_ice_sess *, pj_status_t)’ {aka ‘void (*)(struct
            pj_ice_sess *, <br>
            int)’} from incompatible pointer type ‘void (*)(pj_ice_sess
            *)’ {aka <br>
            ‘void (*)(struct pj_ice_sess *)’}
            [-Wincompatible-pointer-types]<br>
               .on_valid_pair = ast_rtp_on_valid_pair,<br>
                                ^~~~~~~~~~~~~~~~~~~~~<br>
            res_rtp_asterisk.c:2674:19: note: (near initialization for <br>
            ‘ast_rtp_ice_sess_cb.on_ice_complete’)<br>
            make[1]: *** [/usr/src/asterisk-16.9.0/Makefile.rules:164: <br>
            res_rtp_asterisk.o] Error 1<br>
            make: *** [Makefile:383: res] Error 2<br>
            <br>
            I applied the patch and did make clean &&
            ./configure <br>
            --with-pjproject-bundled && make which give this
            error. Openssl is <br>
            installed. On the other server there was no problem.<br>
            <br>
            Any clue ?<br>
          </blockquote>
          <div><br>
          </div>
          <div>If you do "make distclean" and then rebuild does it
            resolve the problem? Did you apply the patch to upgrade? </div>
        </div>
        <br>
      </div>
    </blockquote>
    <p>We a distclean it's OK despite the fact that we see error<br>
    </p>
    <p>   [CC] app_osplookup.c ->
      app_osplookup.o                                      <br>
      app_osplookup.c: In function
      ‘osp_convert_inout.constprop’:                   <br>
      app_osplookup.c:1011:35: warning: ‘]:’ directive output may be
      truncated writing 2 bytes into a region of size between 0 and 255
      [-Wformat-truncation=]<br>
            snprintf(dest, destsize, "[%s]:%s", buffer,
port);                                                                                                     
      <br>
                                        
^~                                                                                                                        
      <br>
      In file included from
/usr/include/stdio.h:873,                                                                                                              
      <br>
                       from
/usr/src/asterisk-16.9.0/include/asterisk/compat.h:49,                                                                                 
      <br>
                       from
/usr/src/asterisk-16.9.0/include/asterisk.h:22,                                                                                        
      <br>
                       from
app_osplookup.c:37:                                                                                                                    
      <br>
      /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note:
      ‘__builtin___snprintf_chk’ output 4 or more bytes (assuming 259)
      into a destination of size 256      <br>
         return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL
      -
1,                                                                                       
      <br>
               
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                       
      <br>
              __bos (__s), __fmt, __va_arg_pack
());                                                                                                               
      <br>
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                
      <br>
      app_osplookup.c:1013:35: warning: ‘]’ directive output may be
      truncated writing 1 byte into a region of size between 0 and 255
      [-Wformat-truncation=]         <br>
            snprintf(dest, destsize, "[%s]",
buffer);                                                                                                     
      <br>
                                        
^                                                                                                                         
      <br>
      In file included from
/usr/include/stdio.h:873,                                                                                                              
      <br>
                       from
/usr/src/asterisk-16.9.0/include/asterisk/compat.h:49,                                                                                 
      <br>
                       from
/usr/src/asterisk-16.9.0/include/asterisk.h:22,                                   
      <br>
                       from
      app_osplookup.c:37:                                 <br>
      /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note:
      ‘__builtin___snprintf_chk’ output between 3 and 258 bytes into a
      destination of size 256             <br>
         return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL
      -
1,                                                                                       
      <br>
               
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       
      <br>
              __bos (__s), __fmt, __va_arg_pack
      ());                                    <br>
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    <br>
    </p>
    <p>Does it mean that we should always use distclean with the newer
      versions?<br></p></div></blockquote><div><br></div><div>It's best to do a "make distclean" if you are reusing an existing copy of the source code to clean everything up so it builds from scratch. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>