Hi Huy,
 
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.
 
Attached is the result of netstat -a
 
Thanks,
Kevin



From: huy_quocngu...@live.com
To: kevin....@hotmail.com; sr-users@lists.sip-router.org
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10
Date: Fri, 22 Oct 2010 11:44:27 +0700




Hi Kevin,

Test with command:

netstat -ntulp

Can you access to mysql ? mysql -u <username> -p<password>

Remove mysql and db_mysql from exclude_modules in file modules.lst and compile 
again

Regards,
Huy Nguyen






www.htk-inc.com









From: kevin....@hotmail.com
To: huy_quocngu...@live.com; sr-users@lists.sip-router.org
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10
Date: Fri, 22 Oct 2010 12:29:46 +0800



It's running on the server. 

    root 10883     1   0   Aug 28 ?           0:00 /bin/sh ./bin/mysqld_safe 
--datadir=/usr/local/mysql/data --pid-file=/usr/local
    root  1394 28222   0 12:27:08 pts/1       0:00 grep mysql
   mysql 10960 10883   0   Aug 28 ?         348:02 
/usr/local/mysql-5.1.47-solaris10-sparc-64bit/bin/mysqld --basedir=/usr/local/m
 
Thanks,
Kevin


From: huy_quocngu...@live.com
To: kevin....@hotmail.com; sr-users@lists.sip-router.org
Subject: RE: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10
Date: Fri, 22 Oct 2010 11:26:05 +0700



Hi Kevin,

Please check whether mysql  was running on your server ?

Regards,
Huy Nguyen




www.htk-inc.com





From: kevin....@hotmail.com
To: sr-users@lists.sip-router.org
Date: Fri, 22 Oct 2010 12:15:22 +0800
Subject: [SR-Users] Kamailio 3.1 compile issue on Sparc Solaris 10



Hi All,
 
Trying to upgrade the Kamailio to the latest 3.1 version, but got the issue 
below when compile it, any help is appreciated.
 
AppSer01:root@/usr/local/src/kamailio-3.1.0/kamailio$ gmake Q=0 all
Makefile.defs defs skipped

Makefile.defs defs skipped
gmake[1]: Entering directory 
`/usr/local/src/kamailio-3.1.0/kamailio/modules/db_mysql'
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
In file included from ../../globals.h:37,
                 from ../../pt.h:42,
                 from ../../counters.h:43,
                 from mysql_mod.h:39,
                 from my_cmd.c:40:
../../ip_addr.h:86: error: field `sin6' has incomplete type
../../ip_addr.h: In function `ip_addr_loopback':
../../ip_addr.h:283: warning: implicit declaration of function `htonl'
../../ip_addr.h:286: warning: implicit declaration of function 
`IN6_IS_ADDR_LOOPBACK'
../../ip_addr.h: In function `sockaddr2ip_addr':
../../ip_addr.h:353: error: dereferencing pointer to incomplete type
../../ip_addr.h: In function `su_getport':
../../ip_addr.h:399: warning: implicit declaration of function `ntohs'
../../ip_addr.h: In function `su_setport':
../../ip_addr.h:418: warning: implicit declaration of function `htons'
gmake[1]: *** [my_cmd.o] Error 1
gmake[1]: Leaving directory 
`/usr/local/src/kamailio-3.1.0/kamailio/modules/db_mysql'
gmake: *** [modules] Error 1
 
 
Thanks,
Kevin

_______________________________________________ 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                   
                    
 netstat -a  

UDP: IPv4
   Local Address        Remote Address      State
-------------------- -------------------- ----------
      *.161                               Idle
      *.sunrpc                            Idle
      *.*                                 Unbound
      *.32771                             Idle
      *.*                                 Unbound
      *.*                                 Unbound
      *.*                                 Unbound
      *.*                                 Unbound
      *.32773                             Idle
      *.lockd                             Idle
      *.syslog                            Idle
      *.32774                             Idle
      *.32775                             Idle
      *.32776                             Idle
      *.servicetag                        Idle
      *.ntp                               Idle
      *.ntp                               Idle
localhost.ntp                             Idle
AppSer01.ntp                              Idle
ora1.ntp                                  Idle
nfs1.ntp                                  Idle
nfs2.ntp                                  Idle
localhost.7722                            Idle
AppSer01.5060                             Idle
localhost.57388      localhost.7722       Connected
localhost.57389      localhost.7722       Connected
localhost.57390      localhost.7722       Connected
localhost.57391      localhost.7722       Connected
localhost.57392      localhost.7722       Connected
localhost.57393      localhost.7722       Connected
localhost.57394      localhost.7722       Connected

UDP: IPv6
   Local Address                     Remote Address                   State     
 If
--------------------------------- --------------------------------- ---------- 
-----
      *.servicetag                                                  Idle       
      *.ntp                                                         Idle       

TCP: IPv4
   Local Address        Remote Address    Swind Send-Q Rwind Recv-Q    State
-------------------- -------------------- ----- ------ ----- ------ -----------
      *.*                  *.*                0      0 49152      0 IDLE
      *.199                *.*                0      0 49152      0 LISTEN
      *.8080               *.*                0      0 49152      0 LISTEN
      *.sunrpc             *.*                0      0 49152      0 LISTEN
      *.*                  *.*                0      0 49152      0 IDLE
      *.32771              *.*                0      0 49152      0 LISTEN
      *.32772              *.*                0      0 49152      0 LISTEN
      *.lockd              *.*                0      0 49152      0 LISTEN
      *.ssh                *.*                0      0 49152      0 LISTEN
      *.32773              *.*                0      0 49152      0 LISTEN
      *.shell              *.*                0      0 49152      0 LISTEN
      *.servicetag         *.*                0      0 49152      0 LISTEN
      *.3306               *.*                0      0 32768      0 LISTEN
AppSer01.ssh         115.173.222.164.13396 63784     51 49368      0 ESTABLISHED

TCP: IPv6
   Local Address                     Remote Address                 Swind 
Send-Q Rwind Recv-Q   State      If
--------------------------------- --------------------------------- ----- 
------ ----- ------ ----------- -----
      *.*                               *.*                             0      
0 49152      0 IDLE        
      *.ssh                             *.*                             0      
0 49152      0 LISTEN      
      *.shell                           *.*                             0      
0 49152      0 LISTEN      

SCTP:
        Local Address                   Remote Address          Swind  Send-Q 
Rwind  Recv-Q StrsI/O  State
------------------------------- ------------------------------- ------ ------ 
------ ------ ------- -----------
0.0.0.0                         0.0.0.0                              0      0 
102400      0  32/32  CLOSED

Active UNIX domain sockets
Address  Type          Vnode     Conn  Local Addr      Remote Addr
600134b9908 stream-ord 00000000 00000000 /tmp/mysql.sock                
600134b9ad0 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
600134b9c98 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a30010 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a301d8 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a303a0 stream-ord 60016478b80 00000000 /tmp/ser_ctl                
60012a30568 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
60012a30730 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a308f8 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a30ac0 dgram      00000000 00000000                               
60012a30c88 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a30e50 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
60012a31018 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a31570 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a31738 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012a31900 stream-ord 00000000 60012711240                /tmp/mysql.sock 
60012a31ac8 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012a31c90 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012430008 stream-ord 00000000 00000000 /tmp/mysql.sock                
600124301d0 stream-ord 60012a27e00 00000000 /tmp/mysql.sock                
60012430398 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
60012430728 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
60012430e48 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012431010 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
600124311d8 stream-ord 00000000 60012711240                /tmp/mysql.sock 
600124313a0 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012431568 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
600124318f8 stream-ord 00000000 60012a27e00                /tmp/mysql.sock 
60012431ac0 stream-ord 00000000 00000000 /tmp/mysql.sock                
60012431c88 stream-ord 6001242fc80 00000000 /var/run/.inetd.uds                
_______________________________________________
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

Reply via email to