Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cnxcc: define inline functions in cnxcc.h #453

Merged
merged 1 commit into from Dec 22, 2015

Conversation

grumvalski
Copy link
Contributor

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>: /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.

@miconda
Copy link
Member

miconda commented Dec 22, 2015

Can be merged.

grumvalski added a commit that referenced this pull request Dec 22, 2015
cnxcc: define inline functions in cnxcc.h
@grumvalski grumvalski merged commit fd8f7dd into kamailio:master Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants