<!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 10/22/2010 07:15 AM, KevinJin wrote:
<blockquote cite="mid:SNT110-W2661B99522AFF4A122A09EE65E0@phx.gbl"
 type="cite">
  <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>&nbsp;
  <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&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>
</blockquote>
<br>
Hello Kevin,<br>
<br>
If you don't use IPv6 you can disable it at compile time. make
distclean &amp;&amp; make cfg and then edit config.mak and delete from
CDEFS the -DUSE_IPV6 define.<br>
<br>
You should not have problems with this. <br>
<br>
Marius<br>
<br>
</body>
</html>