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

mod kazoo cannot be loaded on latest alpine:edge #1540

Closed
sergey-safarov opened this issue May 22, 2018 · 1 comment
Closed

mod kazoo cannot be loaded on latest alpine:edge #1540

sergey-safarov opened this issue May 22, 2018 · 1 comment

Comments

@sergey-safarov
Copy link
Member

When loaded mod kazoo i get error

/ # kamailio -DD -E
 0(178) WARNING: <core> [core/cfg.y:3426]: warn_at(): warning in config file /etc/kamailio/default.cfg, line 67, column 12: raw socket support not compiled in
 0(178) ERROR: <core> [core/sr_module.c:582]: load_module(): could not open module </usr/lib/kamailio/modules/kazoo.so>: Error relocating /usr/lib/kamailio/modules/kazoo.so: is_error: symbol not found
 0(178) CRITICAL: <core> [core/cfg.y:3446]: yyerror_at(): parse error in config file /etc/kamailio/default.cfg, line 188, column 12-21: failed to load module
 0(178) ERROR: <core> [core/modparam.c:152]: set_mod_param_regex(): No module matching <kazoo> found

And ldd output

/ # LD_PRELOAD=/usr/sbin/kamailio ldd /usr/lib/kamailio/modules/kazoo.so
	ldd (0x5592f5d09000)
	/usr/sbin/kamailio => /usr/sbin/kamailio (0x7fa6235bc000)
	libjson-c.so.4 => /usr/lib/libjson-c.so.4 (0x7fa6233ae000)
	libuuid.so.1 => /lib/libuuid.so.1 (0x7fa6231a8000)
	librabbitmq.so.4 => /usr/lib/librabbitmq.so.4 (0x7fa622f8c000)
	libevent-2.1.so.6 => /usr/lib/libevent-2.1.so.6 (0x7fa622d42000)
	libsrdb1.so.1 => /usr/lib/kamailio//libsrdb1.so.1 (0x7fa622b21000)
	libc.musl-x86_64.so.1 => ldd (0x5592f5d09000)
	libssl.so.45 => /lib/libssl.so.45 (0x7fa6228d5000)
	libcrypto.so.43 => /lib/libcrypto.so.43 (0x7fa62252a000)
Error relocating /usr/lib/kamailio/modules/kazoo.so: is_error: symbol not found
/ # 

Symbol is_error is defined at /usr/include/json-c/bits.h

/**
 * @deprecated
 */
#define is_error(ptr) (ptr == NULL)

I not know why this simple definition is not compiled into mod kazoo on latest Alpine:edge.

@miconda
Copy link
Member

miconda commented Jun 7, 2018

Should be fixed by commit 7d37666

I will backport.

@miconda miconda closed this as completed Jun 7, 2018
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

No branches or pull requests

2 participants