<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi All,<BR>
While [ gmake prefix="/usr/local/kamailio-3.0" all ] I got the error below regarding the db_mysql, however I have already installed the mysql server in the path /usr/local/mysql and all the .h and lib files are there.<BR>
&nbsp;<BR>
Please suggest what's wrong here and how to fix the issue.<BR>
&nbsp;<BR>
=========<BR>
&nbsp;<BR>
Makefile.defs defs skipped<BR>gmake[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/db_mysql'<BR>gcc -fPIC -DPIC -g -O9 -funroll-loops -m64 -mcpu=ultrasparc -mtune=ultrasparc -Wall&nbsp;&nbsp;&nbsp; -DNAME='"kamailio"' -DVERSION='"3.0.2"' -DARCH='"sparc64"' -DOS='solaris_' -DOS_QUOTED='"solaris"' -DCOMPILER='"gcc 3.4.6"' -D__CPU_sparc64 -D__OS_solaris -DSER_VER=3000002 -DCFG_DIR='"/usr/local/kamailio-3.0/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 -DF_MALLOC -DUSE_TLS -DTLS_HOOKS -DSTATISTICS -DMALLOC_STATS -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 km_dbase.c -o km_dbase.o -MMD -MP<BR>km_dbase.c:38:25: warning: mysql/mysql.h: No such file or directory<BR>km_dbase.c:39:26: warning: mysql/errmsg.h: No such file or directory<BR>km_dbase.c:40:33: warning: mysql/mysql_version.h: No such file or directory<BR>In file included from km_dbase.c:47:<BR>km_my_con.h:47: error: syntax error before "MYSQL_RES"<BR>km_my_con.h:47: warning: no semicolon at end of struct or union<BR>km_my_con.h:48: warning: type defaults to `int' in declaration of `con'<BR>km_my_con.h:48: warning: data definition has no type or storage class<BR>km_my_con.h:49: error: syntax error before "row"<BR>km_my_con.h:49: warning: type defaults to `int' in declaration of `row'<BR>km_my_con.h:49: warning: data definition has no type or storage class<BR>km_my_con.h:51: error: syntax error before '}' token<BR>km_dbase.c: In function `db_mysql_submit_query':<BR>km_dbase.c:81: error: dereferencing pointer to incomplete type<BR>km_dbase.c:82: warning: implicit declaration of function `mysql_ping'<BR>km_dbase.c:82: error: dereferencing pointer to incomplete type<BR>km_dbase.c:83: warning: implicit declaration of function `mysql_error'<BR>km_dbase.c:83: error: dereferencing pointer to incomplete type<BR>km_dbase.c:83: warning: format argument is not a pointer (arg 7)<BR>km_dbase.c:83: error: dereferencing pointer to incomplete type<BR>km_dbase.c:83: error: dereferencing pointer to incomplete type<BR>km_dbase.c:83: warning: format argument is not a pointer (arg 6)<BR>km_dbase.c:83: error: dereferencing pointer to incomplete type<BR>km_dbase.c:83: error: dereferencing pointer to incomplete type<BR>km_dbase.c:91: error: dereferencing pointer to incomplete type<BR>km_dbase.c:109: warning: implicit declaration of function `mysql_real_query'<BR>km_dbase.c:109: error: dereferencing pointer to incomplete type<BR>km_dbase.c:112: warning: implicit declaration of function `mysql_errno'<BR>km_dbase.c:112: error: dereferencing pointer to incomplete type<BR>km_dbase.c:113: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)<BR>km_dbase.c:113: error: (Each undeclared identifier is reported only once<BR>km_dbase.c:113: error: for each function it appears in.)<BR>km_dbase.c:113: error: `CR_SERVER_LOST' undeclared (first use in this function)<BR>km_dbase.c:117: error: dereferencing pointer to incomplete type<BR>km_dbase.c:117: warning: format argument is not a pointer (arg 7)<BR>km_dbase.c:117: error: dereferencing pointer to incomplete type<BR>km_dbase.c:117: error: dereferencing pointer to incomplete type<BR>km_dbase.c:117: warning: format argument is not a pointer (arg 6)<BR>km_dbase.c:117: error: dereferencing pointer to incomplete type<BR>km_dbase.c:117: error: dereferencing pointer to incomplete type<BR>km_dbase.c: In function `db_mysql_store_result':<BR>km_dbase.c:166: error: dereferencing pointer to incomplete type<BR>km_dbase.c:166: warning: implicit declaration of function `mysql_store_result'<BR>km_dbase.c:166: error: dereferencing pointer to incomplete type<BR>km_dbase.c:167: error: dereferencing pointer to incomplete type<BR>km_dbase.c:168: warning: implicit declaration of function `mysql_field_count'<BR>km_dbase.c:168: error: dereferencing pointer to incomplete type<BR>km_dbase.c:173: error: dereferencing pointer to incomplete type<BR>km_dbase.c:173: warning: format argument is not a pointer (arg 7)<BR>km_dbase.c:173: error: dereferencing pointer to incomplete type<BR>km_dbase.c:173: error: dereferencing pointer to incomplete type<BR>km_dbase.c:173: warning: format argument is not a pointer (arg 6)<BR>km_dbase.c:173: error: dereferencing pointer to incomplete type<BR>km_dbase.c:173: error: dereferencing pointer to incomplete type<BR>km_dbase.c:188: warning: implicit declaration of function `mysql_free_result'<BR>km_dbase.c:188: error: dereferencing pointer to incomplete type<BR>km_dbase.c:195: error: dereferencing pointer to incomplete type<BR>km_dbase.c: In function `db_mysql_free_result':<BR>km_dbase.c:228: error: dereferencing pointer to incomplete type<BR>km_dbase.c:229: error: dereferencing pointer to incomplete type<BR>km_dbase.c: In function `db_mysql_fetch_result':<BR>km_dbase.c:294: error: dereferencing pointer to incomplete type<BR>km_dbase.c:294: error: dereferencing pointer to incomplete type<BR>km_dbase.c:295: error: dereferencing pointer to incomplete type<BR>km_dbase.c:296: error: dereferencing pointer to incomplete type<BR>km_dbase.c:301: error: dereferencing pointer to incomplete type<BR>km_dbase.c:301: warning: format argument is not a pointer (arg 7)<BR>km_dbase.c:301: error: dereferencing pointer to incomplete type<BR>km_dbase.c:301: error: dereferencing pointer to incomplete type<BR>km_dbase.c:301: warning: format argument is not a pointer (arg 6)<BR>km_dbase.c:301: error: dereferencing pointer to incomplete type<BR>km_dbase.c:301: error: dereferencing pointer to incomplete type<BR>km_dbase.c:312: warning: implicit declaration of function `mysql_num_rows'<BR>km_dbase.c:312: error: dereferencing pointer to incomplete type<BR>km_dbase.c:351: error: dereferencing pointer to incomplete type<BR>km_dbase.c:351: warning: implicit declaration of function `mysql_fetch_row'<BR>km_dbase.c:351: error: dereferencing pointer to incomplete type<BR>km_dbase.c:352: error: dereferencing pointer to incomplete type<BR>km_dbase.c:353: error: dereferencing pointer to incomplete type<BR>km_dbase.c:353: warning: format argument is not a pointer (arg 7)<BR>km_dbase.c:353: error: dereferencing pointer to incomplete type<BR>km_dbase.c:353: error: dereferencing pointer to incomplete type<BR>km_dbase.c:353: warning: format argument is not a pointer (arg 6)<BR>km_dbase.c:353: error: dereferencing pointer to incomplete type<BR>km_dbase.c:353: error: dereferencing pointer to incomplete type<BR>km_dbase.c: In function `db_last_inserted_id':<BR>km_dbase.c:465: warning: implicit declaration of function `mysql_insert_id'<BR>km_dbase.c:465: error: dereferencing pointer to incomplete type<BR>gmake[1]: *** [km_dbase.o] Error 1<BR>gmake[1]: Leaving directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/db_mysql'<BR>gmake: *** [modules] Error 1<BR>AppSer01:root@/usr/local/src/kamailio-3.0.0/kamailio$ <BR>
&nbsp;<BR>
AppSer01:root@/usr/local$ ls -l<BR>total 48<BR>drwxr-xr-x&nbsp;&nbsp; 4 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4608 Jun&nbsp; 1 02:58 bin<BR>drwxr-xr-x&nbsp; 46 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Jun&nbsp; 1 02:58 doc<BR>drwxr-xr-x&nbsp;&nbsp; 4 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:32 etc<BR>drwxr-xr-x&nbsp; 12 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Jun&nbsp; 1 02:58 include<BR>drwxr-xr-x&nbsp;&nbsp; 2 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024 Apr 15 04:32 info<BR>drwxr-xr-x&nbsp; 11 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4608 Jun&nbsp; 1 02:58 lib<BR>drwxr-xr-x&nbsp;&nbsp; 4 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:31 libexec<BR>drwxr-xr-x&nbsp;&nbsp; 8 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:32 man<BR>lrwxrwxrwx&nbsp;&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 35 Jun&nbsp; 1 06:04 mysql -&gt; mysql-5.1.47-solaris10-sparc-64bit/<BR>drwxr-xr-x&nbsp; 13 root&nbsp;&nbsp;&nbsp;&nbsp; mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Jun&nbsp; 1 06:29 mysql-5.1.47-solaris10-sparc-64bit<BR>drwxr-xr-x&nbsp; 10 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:31 samba<BR>drwxr-xr-x&nbsp;&nbsp; 2 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:32 sbin<BR>drwxr-xr-x&nbsp; 12 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:32 share<BR>drwxr-xr-x&nbsp;&nbsp; 3 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 May 31 03:10 src<BR>drwxr-xr-x&nbsp;&nbsp; 9 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:31 ssl<BR>drwxr-xr-x&nbsp;&nbsp; 3 bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Apr 15 04:30 var<BR>AppSer01:root@/usr/local$ cd mysql<BR>/usr/local/mysql<BR>AppSer01:root@/usr/local/mysql$ ls include/<BR>decimal.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_string.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_dbug.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_list.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_sys.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql_time.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysqld_error.h&nbsp;&nbsp;&nbsp;&nbsp; sslopt-case.h<BR>errmsg.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_alloc.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_dir.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_net.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_xml.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql_version.h&nbsp;&nbsp;&nbsp; plugin.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslopt-longopts.h<BR>keycache.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_attribute.h&nbsp;&nbsp;&nbsp;&nbsp; my_getopt.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_no_pthread.h&nbsp;&nbsp;&nbsp; mysql_com.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sql_common.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslopt-vars.h<BR>m_ctype.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_config.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_global.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my_pthread.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql_embed.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysqld_ername.h&nbsp;&nbsp;&nbsp; sql_state.h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typelib.h<BR>AppSer01:root@/usr/local/mysql$ ls lib/<BR>libdbug.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient_r.la&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient.la&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmystrings.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plugin<BR>libheap.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient_r.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysys.a<BR>libmyisam.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient_r.so.16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient.so.16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libvio.a<BR>libmyisammrg.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient_r.so.16.0.0&nbsp; libmysqlclient.so.16.0.0&nbsp;&nbsp;&nbsp; libz.a<BR>libmysqlclient_r.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqlclient.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libmysqld.a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libz.la<BR>AppSer01:root@/usr/local/mysql$ <BR>
===<BR>
&nbsp;<BR>
Thanks,<BR>
Kevin Jin<BR>
&nbsp;<BR>                                               <br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://www.windowslive.cn/messenger/' target='_new'>立刻下载!</a></body>
</html>