iprohc can not be built with newer rohc API

Bug #1767019 reported by Bi-Ruei, Chiu on 2018-04-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rohc
Undecided
Unassigned

Bug Description

With current rohc source code on https://github.com/didier-barvaux/rohc
(commit:8daa188f08cf2a09780c8158af93b7c226b2d30c),
iprohc source code on https://github.com/didier-barvaux/iprohc (commit:8378bd3ca75eac9b72ed769a12a1cfd4e1a6c952) can not be built due to incompatible API

Here's the compile error:

-----

make[3]: Entering directory '/home/brchiu/projects/iprohc/src/common'
  CC libiprohc_common_la-rohc_tunnel.lo
In file included from rohc_tunnel.c:21:0:
session.h:103:25: warning: ‘gnutls_connection_end_t’ is deprecated [-Wdeprecated-declarations]
                         const gnutls_connection_end_t tls_type,
                         ^~~~~
rohc_tunnel.c: In function ‘iprohc_tunnel_new’:
rohc_tunnel.c:178:17: warning: implicit declaration of function ‘rohc_comp_new’; did you mean ‘rohc_comp_new2’? [-Wimplicit-function-declaration]
  tunnel->comp = rohc_comp_new(ROHC_SMALL_CID, tunnel->params.max_cid);
                 ^~~~~~~~~~~~~
                 rohc_comp_new2
rohc_tunnel.c:178:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  tunnel->comp = rohc_comp_new(ROHC_SMALL_CID, tunnel->params.max_cid);
               ^
rohc_tunnel.c:186:10: warning: implicit declaration of function ‘rohc_comp_set_traces_cb’; did you mean ‘rohc_comp_set_traces_cb2’? [-Wimplicit-function-declaration]
  is_ok = rohc_comp_set_traces_cb(tunnel->comp, print_rohc_traces);
          ^~~~~~~~~~~~~~~~~~~~~~~
          rohc_comp_set_traces_cb2
rohc_tunnel.c:227:19: warning: implicit declaration of function ‘rohc_decomp_new’; did you mean ‘rohc_decomp_new2’? [-Wimplicit-function-declaration]
  tunnel->decomp = rohc_decomp_new(ROHC_SMALL_CID, tunnel->params.max_cid,
                   ^~~~~~~~~~~~~~~
                   rohc_decomp_new2
rohc_tunnel.c:227:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  tunnel->decomp = rohc_decomp_new(ROHC_SMALL_CID, tunnel->params.max_cid,
                 ^
rohc_tunnel.c:236:10: warning: implicit declaration of function ‘rohc_decomp_set_traces_cb’; did you mean ‘rohc_decomp_set_traces_cb2’? [-Wimplicit-function-declaration]
  is_ok = rohc_decomp_set_traces_cb(tunnel->decomp, print_rohc_traces);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
          rohc_decomp_set_traces_cb2
rohc_tunnel.c: In function ‘tun2raw’:
rohc_tunnel.c:977:8: warning: implicit declaration of function ‘rohc_compress3’; did you mean ‘rohc_compress4’? [-Wimplicit-function-declaration]
  ret = rohc_compress3(comp, arrival_time, packet, packet_len,
        ^~~~~~~~~~~~~~
        rohc_compress4
rohc_tunnel.c:979:12: error: ‘ROHC_OK’ undeclared (first use in this function); did you mean ‘ROHC_H’?
  if(ret != ROHC_OK)
            ^~~~~~~
            ROHC_H
rohc_tunnel.c:979:12: note: each undeclared identifier is reported only once for each function it appears in
rohc_tunnel.c: In function ‘raw2tun’:
rohc_tunnel.c:1209:9: warning: implicit declaration of function ‘rohc_decompress2’; did you mean ‘rohc_decompress3’? [-Wimplicit-function-declaration]
   ret = rohc_decompress2(decomp, arrival_time, ip_payload, len,
         ^~~~~~~~~~~~~~~~
         rohc_decompress3
rohc_tunnel.c:1211:13: error: ‘ROHC_OK’ undeclared (first use in this function); did you mean ‘ROHC_H’?
   if(ret != ROHC_OK)
             ^~~~~~~
             ROHC_H
Makefile:430: recipe for target 'libiprohc_common_la-rohc_tunnel.lo' failed
make[3]: *** [libiprohc_common_la-rohc_tunnel.lo] Error 1
make[3]: Target 'all' not remade because of errors.
make[3]: Leaving directory '/home/brchiu/projects/iprohc/src/common'

-----

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers