<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
</head>
<body class='hmmessage'>
<BR>&nbsp;Hi Huy,<BR>&nbsp;<BR>I can access mysql with mysql -u &lt;username&gt; -p , and kamailio-3.0.4 doesn't have the issue when I do the complile on the same server.<BR>&nbsp;<BR>Attached is the result of netstat -a<BR>&nbsp;<BR>Thanks,<BR>Kevin<BR>

<HR id=stopSpelling>
From: huy_quocnguyen@live.com<BR>To: kevin.jzh@hotmail.com; sr-users@lists.sip-router.org<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 &lt;username&gt; -p&lt;password&gt;</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 color=#e36c09 face=Arial><B><FONT style="FONT-SIZE: 12pt" color=#ff0000 size=3><BR><BR></FONT></B></FONT>
<HR SIZE=2 width="100%">
<FONT color=#e36c09 face=Arial><B></B></FONT>
<HR SIZE=2 width="100%">
<A 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: medium 'Times New Roman'; 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: kevin.jzh@hotmail.com<BR>To: huy_quocnguyen@live.com; sr-users@lists.sip-router.org<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>&nbsp;&nbsp;&nbsp; root 10883&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 0&nbsp;&nbsp; Aug 28 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:00 /bin/sh ./bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local<BR>&nbsp;&nbsp;&nbsp; root&nbsp; 1394 28222&nbsp;&nbsp; 0 12:27:08 pts/1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:00 grep mysql<BR>&nbsp;&nbsp; mysql 10960 10883&nbsp;&nbsp; 0&nbsp;&nbsp; Aug 28 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 348:02 /usr/local/mysql-5.1.47-solaris10-sparc-64bit/bin/mysqld --basedir=/usr/local/m<BR>&nbsp;<BR>Thanks,<BR>Kevin<BR>
<HR id=ecxstopSpelling>
From: huy_quocnguyen@live.com<BR>To: kevin.jzh@hotmail.com; sr-users@lists.sip-router.org<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&nbsp; was running on your server ?<BR><BR>Regards,<BR>Huy Nguyen</FONT><FONT color=#e36c09 face=Arial><B><FONT style="FONT-SIZE: 12pt" color=#ff0000 size=3><BR></FONT></B></FONT>
<HR SIZE=2 width="100%">
<FONT color=#e36c09 face=Arial><B></B></FONT>
<HR SIZE=2 width="100%">
<A 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: medium 'Times New Roman'; 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: kevin.jzh@hotmail.com<BR>To: sr-users@lists.sip-router.org<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>&nbsp;<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>&nbsp;<BR>AppSer01:root@/usr/local/src/kamailio-3.1.0/kamailio$ 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&nbsp;&nbsp; -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&nbsp; -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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ../../pt.h:42,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ../../counters.h:43,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from mysql_mod.h:39,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;<BR>&nbsp;<BR>Thanks,<BR>Kevin<BR><BR>_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users                                                </body>
</html>