Hello Marius,
Yes, I can confirm that MySQL-devel-community-5.1.43-1.sles10.i586.rpm was also installed.
I think the log_10_int is included by something that's linked in and has nothing to do with MySQL.
A colleague and friend has installed on a Debian system with success. I am about to install Debian over my SuSE installation.
Thanks Pratab.
-----Original Message----- From: marius zbihlei [mailto:marius.zbihlei@1and1.ro] Sent: 14 April 2010 14:34 To: Pratab Ali Subject: Re: [SR-Users] Failure to load module db_mysql.so due to undefined symbol: log
Pratab Ali wrote:
Hello
My version of libmysqlclient was installed from this file MySQL-client-community-5.1.43-1.sles10.i586.rpm. So, that'd make it version 5.1.43.1 I'd guess.
Hello,
I presume you have also installed MySQL-devel-community-5.1.43-1.sles10.i586.rpm http://rpm.pbone.net/index.php3/stat/4/idpl/13531085/dir/other/com/MySQ L-devel-community-5.1.43-1.sles10.i586.rpm.html for the development headers and libraries ...
Can you check if this is also installed . I have tested on Debian with libmysqlclient-dev 5.1.45 and it works. I still wonder about the log_10_int symbol...
Marius
Unfortunately, it is the config file parser that is detecting the unresolved symbol and so refusing to run kamailio at all.
Thanks Pratab
On Wednesday 14 April 2010, Pratab Ali wrote:
Yes, I can confirm that MySQL-devel-community-5.1.43-1.sles10.i586.rpm was also installed.
I think the log_10_int is included by something that's linked in and has nothing to do with MySQL.
A colleague and friend has installed on a Debian system with success. I am about to install Debian over my SuSE installation.
Unfortunately, it is the config file parser that is detecting the unresolved symbol and so refusing to run kamailio at all.
Hi Pratab,
i think that Daniel found a problem and did this morning a fix in the kamailio 3.0 and master branch (Commit: 3a25f8327c on 3.0). Do you use one of this branches?
There should be no need to install Debian for this reason, there are people that running kamailio on opensuse just fine, i did also a bunch of development in the past on this plattform.
Cheers,
Henning
Hi Henning,
I read the reply from Daniel and as he suggested I got kamailio 3.0.0 using GIT this morning. However, I don't know if I actually got (Commit: 3a25f8327c on 3.0). I am unfamiliar with GIT as I use CVS.
I will recheck to see if I got the branch you mention.
Thanks. pratab
-----Original Message----- From: Henning Westerholt [mailto:henning.westerholt@1und1.de] Sent: 14 April 2010 15:19 To: sr-users@lists.sip-router.org Cc: Pratab Ali; marius zbihlei Subject: Re: [SR-Users] Failure to load module db_mysql.so due to undefined symbol: log
On Wednesday 14 April 2010, Pratab Ali wrote:
Yes, I can confirm that MySQL-devel-community-5.1.43-1.sles10.i586.rpm was also installed.
I think the log_10_int is included by something that's linked in and has nothing to do with MySQL.
A colleague and friend has installed on a Debian system with success. I am about to install Debian over my SuSE installation.
Unfortunately, it is the config file parser that is detecting the unresolved symbol and so refusing to run kamailio at all.
Hi Pratab,
i think that Daniel found a problem and did this morning a fix in the kamailio 3.0 and master branch (Commit: 3a25f8327c on 3.0). Do you use one of this branches?
There should be no need to install Debian for this reason, there are people that running kamailio on opensuse just fine, i did also a bunch of development in the past on this plattform.
Cheers,
Henning
On Wednesday 14 April 2010, Pratab Ali wrote:
I read the reply from Daniel and as he suggested I got kamailio 3.0.0 using GIT this morning. However, I don't know if I actually got (Commit: 3a25f8327c on 3.0). I am unfamiliar with GIT as I use CVS.
I will recheck to see if I got the branch you mention.
Hi Pratab,
just do a 'git log' in the top level of the checked out git tree. It should display the change from Daniel as the first (or now second) log entry.
Cheers,
Henning
Hi,
Thanks, I just followed your git instructions and it shows that I have Daniel's change.
I will try a clean rebuild and run again.
Thanks. pratab
///////////////////////// commit 3a25f8327c39420d99d11ba4502d31617fa743cb Author: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Apr 14 10:39:47 2010 +0200
mysql: include dprint.h
- several files were missing include of dprint.h - could be the cause for missing symbol reported by Pratab Ali for opensuse (cherry picked from commit 9c5da73226b3124c888e434e3df55cc1466b3b07)
commit 342d6eb44fe6f795d7d31fc42ec6f7942859503b Author: Marius Zbihlei marius.zbihlei@1and1.ro Date: Fri Apr 2 15:03:09 2010 +0300
lib/kcore/km_crc.c Fixed wrong computation of crc32
The final result was not bitwise complemented, yeilding an incorrect result /////////////////////////
-----Original Message----- From: Henning Westerholt [mailto:henning.westerholt@1und1.de] Sent: 14 April 2010 15:46 To: Pratab Ali Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Failure to load module db_mysql.so due to undefined symbol: log
On Wednesday 14 April 2010, Pratab Ali wrote:
I read the reply from Daniel and as he suggested I got kamailio 3.0.0 using GIT this morning. However, I don't know if I actually got
(Commit:
3a25f8327c on 3.0). I am unfamiliar with GIT as I use CVS.
I will recheck to see if I got the branch you mention.
Hi Pratab,
just do a 'git log' in the top level of the checked out git tree. It should display the change from Daniel as the first (or now second) log entry.
Cheers,
Henning
Pratab Ali wrote:
Hi,
Thanks, I just followed your git instructions and it shows that I have Daniel's change.
I will try a clean rebuild and run again.
Thanks. pratab
If a clean build doesn't solve can you add to modules/db_mysql/Makefile a -lm (link the math library) to the LIBS variable (right after -lz)
Can you test with this?
Thanks
Marius
Hi marius,
Your suggestion with regards to appending -lm after -lz worked. I no longer get the "undefined symbol: log" error. Thanks!
However, now I have kamailio unable to connect to mysql because I've not told it to use the correct port. This I can fix from reading the documentation.
Many thanks to all for your help.
Pratab
-----Original Message----- From: marius zbihlei [mailto:marius.zbihlei@1and1.ro] Sent: 14 April 2010 16:16 To: Pratab Ali Cc: Henning Westerholt; sr-users@lists.sip-router.org Subject: Re: [SR-Users] Failure to load module db_mysql.so due to undefined symbol: log
Pratab Ali wrote:
Hi,
Thanks, I just followed your git instructions and it shows that I have
Daniel's change.
I will try a clean rebuild and run again.
Thanks. pratab
If a clean build doesn't solve can you add to modules/db_mysql/Makefile a -lm (link the math library) to the LIBS variable (right after -lz)
Can you test with this?
Thanks
Marius
On Wednesday 14 April 2010, Pratab Ali wrote:
Your suggestion with regards to appending -lm after -lz worked. I no longer get the "undefined symbol: log" error. Thanks!
However, now I have kamailio unable to connect to mysql because I've not told it to use the correct port. This I can fix from reading the documentation.
Hi Pratab,
i think there could be a problem in the Makefile for the db_mysql module of sip-router. In Kamailio we used to autodetect the libraries. Can you please run the following command on your system in a shell and send me the output?
The command is "mysql_config --libs"
Cheers,
Henning