[OpenSIPS-Devel] Compilation failure

Dan Pascu dan at ag-projects.com
Wed Apr 17 08:22:05 EDT 2019


If system malloc is used compiling of the drouting module fails with:

In file included from routing.h:38,
                 from dr_api.h:30,
                 from dr_api_internal.h:30,
                 from dr_api_internal.c:27:
prefix_tree.h:176:2: error: unknown type name ‘osips_free_f’
  osips_free_f
  ^~~~~~~~~~~~
prefix_tree.h:186:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f,
  ^~~~~~~~~~~~~~
  pkg_malloc
prefix_tree.h:187:2: error: unknown type name ‘osips_free_f’
  osips_free_f
  ^~~~~~~~~~~~
prefix_tree.h:204:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f,
  ^~~~~~~~~~~~~~
  pkg_malloc
prefix_tree.h:205:2: error: unknown type name ‘osips_free_f’
  osips_free_f
  ^~~~~~~~~~~~
prefix_tree.h:232:2: error: unknown type name ‘osips_free_f’
  osips_free_f
  ^~~~~~~~~~~~
prefix_tree.h:238:2: error: unknown type name ‘osips_free_f’
  osips_free_f
  ^~~~~~~~~~~~
In file included from dr_api.h:30,
                 from dr_api_internal.h:30,
                 from dr_api_internal.c:27:
routing.h:100:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f mf,
  ^~~~~~~~~~~~~~
  pkg_malloc
routing.h:101:2: error: unknown type name ‘osips_free_f’
  osips_free_f ff
  ^~~~~~~~~~~~
routing.h:126:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f mf,
  ^~~~~~~~~~~~~~
  pkg_malloc
routing.h:127:2: error: unknown type name ‘osips_free_f’
  osips_free_f ff
  ^~~~~~~~~~~~
routing.h:142:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f mf,
  ^~~~~~~~~~~~~~
  pkg_malloc
routing.h:143:2: error: unknown type name ‘osips_free_f’
  osips_free_f ff
  ^~~~~~~~~~~~
routing.h:153:2: error: unknown type name ‘osips_malloc_f’; did you mean ‘pkg_malloc’?
  osips_malloc_f mf
  ^~~~~~~~~~~~~~
  pkg_malloc
routing.h:164:26: error: unknown type name ‘osips_free_f’
 free_rt_data(rt_data_t*, osips_free_f);
                          ^~~~~~~~~~~~
dr_api_internal.c: In function ‘add_rule_api’:
dr_api_internal.c:173:8: warning: implicit declaration of function ‘add_prefix’; did you mean ‘get_prefix’? [-Wimplicit-function-declaration]
   if ( add_prefix(partition->pt, prefix, rule, gr_id,
        ^~~~~~~~~~
        get_prefix
dr_api_internal.c:179:8: warning: implicit declaration of function ‘add_rt_info’; did you mean ‘get_su_info’? [-Wimplicit-function-declaration]
   if ( add_rt_info( &partition->noprefix, rule, gr_id,
        ^~~~~~~~~~~
        get_su_info
make[4]: *** [../../Makefile.rules:27: dr_api_internal.o] Error 1
ERROR: Building drouting module failed!

--
Dan







More information about the Devel mailing list