Pratab Ali wrote:
Hello,
I have installed from source version 3.0.1 of Kamailio on an OpenSuSE 10
Linux system.
Currently I am attempting to enable persistence in my Kamailio with the
help of MySQL.
In the config file kamailio.cfg I have enabled MySQL as follows
#!define WITH_MYSQL
In the config file db_mysql.so is the first module to be loaded by
calling loadmodule, but the module fails to load.
By turning, Kamailio, debugging on I get the following explanation.
0(9858) DEBUG: <core> [sr_module.c:382]: load_module: trying to load
</usr/local/lib/kamailio/modules/db_mysql.so>
0(9858) ERROR: <core> [sr_module.c:390]: ERROR: load_module: could not
open module </usr/local/lib/kamailio/modules/db_mysql.so>:
/usr/local/lib/kamailio/modules/db_mysql.so: undefined symbol: log
Using the unix/linux tool 'nm' I see the following.
mindy:~/tmp # nm /usr/local/lib/kamailio/modules/db_mysql.so |
grep log
U getlogin@@GLIBC_2.0
U log
001a6e40 R log_10
001e5d00 D log_10_int
U log_level_info
U log_stderr
U syslog@@GLIBC_2.0
Hello
What libmysqlclient are you using? I can't seem to find anywhere where
this log_10_int is declared . It seems to be related to mysql server
(my_date.h)...
Can you go to /usr/include/mysql a do a grep for this...
There are ok to be Undefined variables in the module.so . They will be
resolved by the linker when dlopen is called.
Marius