[sr-dev] [kamailio/kamailio] mod kazoo cannot be loaded on latest alpine:edge (#1540)

sergey-safarov notifications at github.com
Tue May 22 15:00:35 CEST 2018


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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180522/8441f552/attachment.html>


More information about the sr-dev mailing list