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: [sr_module.c:576]: load_module(): could not open module : /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

File Changes

Patch Links:


Reply to this email directly or view it on GitHub.