<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 12/09/2010 08:52 AM, KevinJin wrote:
<blockquote cite="mid:SNT110-W24E55887C705AB61C33E18E62E0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style><br>
Hi Huy,<br>
<br>
I can access mysql with mysql -u <username> -p , and
kamailio-3.0.4 doesn't have the issue when I do the complile on the
same server.<br>
<br>
Attached is the result of netstat -a<br>
<br>
Thanks,<br>
Kevin<br>
<hr id="stopSpelling">
From: <a class="moz-txt-link-abbreviated" href="mailto:huy_quocnguyen@live.com">huy_quocnguyen@live.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10<br>
Date: Fri, 22 Oct 2010 11:44:27 +0700<br>
<br>
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<font face="Arial">Hi Kevin,<br>
<br>
Test with command:<br>
<br>
<i>netstat -ntulp</i><br>
<br>
Can you access to mysql ? <i>mysql -u <username>
-p<password></i><br>
</font><br>
Remove <i>mysql</i> and <i>db_mysql</i> from <i>exclude_modules</i>
in file modules.lst and compile again<br>
<br>
Regards,<br>
Huy Nguyen<br>
<font face="Arial" color="#e36c09"><b><font style="font-size: 12pt;"
size="3" color="#ff0000"><br>
<br>
</font></b></font>
<hr size="2" width="100%">
<hr size="2" width="100%"><a moz-do-not-send="true"
style="color: rgb(42, 93, 176);" href="http://www.htk-inc.com/"
target="_blank">www.htk-inc.com</a><br>
<span
style="text-transform: none; text-indent: 0px; border-collapse: separate; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: medium; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; white-space: normal; letter-spacing: normal; color: rgb(0, 0, 0); word-spacing: 0px;"
class="ecxApple-style-span"><span
style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"
class="ecxApple-style-span"><br>
</span></span><font face="Arial"><br>
</font><font face="Arial"><br>
</font><br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">
From: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:huy_quocnguyen@live.com">huy_quocnguyen@live.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10<br>
Date: Fri, 22 Oct 2010 12:29:46 +0800<br>
<br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:????;}
</style>
It's running on the server. <br>
<br>
root 10883 1 0 Aug 28 ? 0:00 /bin/sh
./bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local<br>
root 1394 28222 0 12:27:08 pts/1 0:00 grep mysql<br>
mysql 10960 10883 0 Aug 28 ? 348:02
/usr/local/mysql-5.1.47-solaris10-sparc-64bit/bin/mysqld
--basedir=/usr/local/m<br>
<br>
Thanks,<br>
Kevin<br>
<hr id="ecxstopSpelling">
From: <a class="moz-txt-link-abbreviated" href="mailto:huy_quocnguyen@live.com">huy_quocnguyen@live.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10<br>
Date: Fri, 22 Oct 2010 11:26:05 +0700<br>
<br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<font face="Arial">Hi Kevin,<br>
<br>
Please check whether mysql was running on your server ?<br>
<br>
Regards,<br>
Huy Nguyen</font><font face="Arial" color="#e36c09"><b><font
style="font-size: 12pt;" size="3" color="#ff0000"><br>
</font></b></font>
<hr size="2" width="100%">
<hr size="2" width="100%"><a moz-do-not-send="true"
style="color: rgb(42, 93, 176);" href="http://www.htk-inc.com/"
target="_blank">www.htk-inc.com</a><br>
<span
style="text-transform: none; text-indent: 0px; border-collapse: separate; font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: medium; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; white-space: normal; letter-spacing: normal; color: rgb(0, 0, 0); word-spacing: 0px;"
class="ecxApple-style-span"><span
style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"
class="ecxApple-style-span"></span></span><br>
<br>
<br>
<hr id="ecxstopSpelling">
From: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Date: Fri, 22 Oct 2010 12:15:22 +0800<br>
Subject: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10<br>
<br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:????;}
</style>
Hi All,<br>
<br>
Trying to upgrade the Kamailio to the latest 3.1 version, but got the
issue below when compile it, any help is appreciated.<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:AppSer01:root@/usr/local/src/kamailio-3.1.0/kamailio$">AppSer01:root@/usr/local/src/kamailio-3.1.0/kamailio$</a> gmake Q=0 all<br>
Makefile.defs defs skipped<br>
<br>
Makefile.defs defs skipped<br>
gmake[1]: Entering directory
`/usr/local/src/kamailio-3.1.0/kamailio/modules/db_mysql'<br>
gcc -fPIC -DPIC -g -O9 -funroll-loops -mcpu=ultrasparc
-mtune=ultrasparc -Wall -m64 -DNAME='"kamailio"' -DVERSION='"3.1.0"'
-DARCH='"sparc64"' -DOS='solaris_' -DOS_QUOTED='"solaris"'
-DCOMPILER='"gcc 3.4.6"' -D__CPU_sparc64 -D__OS_solaris
-DSER_VER=3001000 -DCFG_DIR='"/usr/local/kamailio-3.1/etc/kamailio/"'
-DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST
-DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE
-DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC
-DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS
-DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DSPARC64_MODE
-DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT
-DHAVE_FILIO_H -DSER_MOD_INTERFACE -I/usr/local/include
-I/usr/local/include/mysql -I/usr/local/mysql/include
-I/usr/include/mysql -DMOD_NAME='"db_mysql"' -c my_cmd.c -o my_cmd.o
-MMD -MP<br>
In file included from ../../globals.h:37,<br>
from ../../pt.h:42,<br>
from ../../counters.h:43,<br>
from mysql_mod.h:39,<br>
from my_cmd.c:40:<br>
../../ip_addr.h:86: error: field `sin6' has incomplete type<br>
../../ip_addr.h: In function `ip_addr_loopback':<br>
../../ip_addr.h:283: warning: implicit declaration of function `htonl'<br>
../../ip_addr.h:286: warning: implicit declaration of function
`IN6_IS_ADDR_LOOPBACK'<br>
../../ip_addr.h: In function `sockaddr2ip_addr':<br>
../../ip_addr.h:353: error: dereferencing pointer to incomplete type<br>
../../ip_addr.h: In function `su_getport':<br>
../../ip_addr.h:399: warning: implicit declaration of function `ntohs'<br>
../../ip_addr.h: In function `su_setport':<br>
../../ip_addr.h:418: warning: implicit declaration of function `htons'<br>
gmake[1]: *** [my_cmd.o] Error 1<br>
gmake[1]: Leaving directory
`/usr/local/src/kamailio-3.1.0/kamailio/modules/db_mysql'<br>
gmake: *** [modules] Error 1<br>
<br>
<br>
Thanks,<br>
Kevin<br>
<br>
_______________________________________________ SIP Express Router
(SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> </blockquote>
Hello Kevin,<br>
<br>
There is no issue with the mysql server. There is a header inclusion
missing in the ip_addr.h file because solaris has probably other
include headers for ipv6 support. I havo no opensolaris install a.t.m.
so I would look for a patch and ask you to test it <br>
<br>
Marius<br>
</body>
</html>