On some systems compiling cnxcc we get:
cnxcc.h:36:12: warning: inline function �timestamp2isodt� declared but never defined inline int timestamp2isodt(str *dest, unsigned int timestamp); ^ cnxcc.h:35:21: warning: inline function �get_current_timestamp� declared but never defined inline unsigned int get_current_timestamp(); ^ cnxcc.h:34:13: warning: inline function �get_datetime� declared but never defined inline void get_datetime(str *dest);
and then at runtime:
ERROR: <core> [sr_module.c:576]: load_module(): could not open module </usr/lib64/kamailio/modules/cnxcc.so>: /usr/lib64/kamailio/modules/cnxcc.so: undefined symbol: get_current_timestamp
The present patch moves the definition of the inline functions into the .h file. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/453
-- Commit Summary --
* cnxcc: define inline functions in cnxcc.h
-- File Changes --
M modules/cnxcc/cnxcc.c (24) M modules/cnxcc/cnxcc.h (27)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/453.patch https://github.com/kamailio/kamailio/pull/453.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/453
Can be merged.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/453#issuecomment-166626120
Merged #453.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/453#event-498559772