[sr-dev] [tracker] Task opened: db_mysql fails to load on centos 5 due to bad simbol ref

sip-router admin at sip-router.org
Fri Mar 18 08:40:39 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Costin Radu (ctradu) 

Attached to Project - sip-router
Summary - db_mysql fails to load on centos 5  due to bad simbol ref
Task Type - Bug Report
Category - Core
Status - Assigned
Assigned To - Andrei Pelinescu-Onciul
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 3.1
Due in Version - Undecided
Due Date - Undecided
Details - When trying to compile kamailio with mysql support via db_mysql, the build fails with:
<code>
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
</code>

The compile procedure is as follows:
<code>
wget http://www.kamailio.org/pub/kamailio/latest/src/kamailio-3.1.2_src.tar.gz
tar xzvf kamailio-3.1.2_src.tar.gz
make FLAVOUR=kamailio  include_modules="db_mysql dialplan xlog" cfg
make all
make install
</code>




The error has been reported in [[http://lists.sip-router.org/pipermail/sr-users/2010-April/027608.html|Failure to load module db_mysql.so due to undefined symbol: log]] as well, but it hasn't been fixed yet.

The solution proposed there is working, but it is a year already, and in the main source tree a solution has not been provided.

Working [[http://lists.sip-router.org/pipermail/sr-users/2010-April/027665.html|solution by Marius Zbihlei]]:
<code>
In modules/db_mysql/Makefile add a -lm (link the math library) to the LIBS variable (right after -lz)
</code>

 

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=118

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list