[OpenSIPS-Devel] Compilation failure
Răzvan Crainea
razvan at opensips.org
Thu Apr 18 05:46:06 EDT 2019
Hi, Dan!
You're right, this wasn't working fine. I've just pushed a fix for this
on both master and 3.0. Let us know if you have any other issues with this.
Best regards,
Răzvan
On 4/17/19 3:22 PM, Dan Pascu wrote:
>
> 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
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
https://www.opensips.org/events
More information about the Devel
mailing list