This issue has been addressed many times on mailing list. You don't have
the mysql development library installed. That's libmysql-devel on Debian
or mysql-devel on RPM based systems. For other OS check the packages list.
Daniel
On 8/2/2004 12:34 PM, Xiang wrote:
detail error message
thanks.
-----------------
make[1]: Entering directory `/ser-0.8.14/modules/mysql'
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -malign-double -falign-loops -mcpu=athlon
-DNAME='""' -DVERSION='"0.8.14"'
-DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 3.2"' -D__CPU_i386 -D__OS_linux
-DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -c dbase.c -o dbase.o
In file included from dbase.c:39:
con_mysql.h:33:25: mysql/mysql.h: No such file or directory
In file included from dbase.c:39:
con_mysql.h:39: parse error before "MYSQL_RES"
con_mysql.h:39: warning: no semicolon at end of struct or union
con_mysql.h:40: warning: type defaults to `int' in declaration of `con'
con_mysql.h:40: warning: data definition has no type or storage class
con_mysql.h:41: parse error before "row"
con_mysql.h:41: warning: type defaults to `int' in declaration of `row'
con_mysql.h:41: warning: data definition has no type or storage class
In file included from dbase.c:40:
db_val.h:31:25: mysql/mysql.h: No such file or directory
In file included from dbase.c:40:
db_val.h:43: parse error before '*' token
dbase.c: In function `connect_db':
dbase.c:89: dereferencing pointer to incomplete type
dbase.c:89: `MYSQL' undeclared (first use in this function)
dbase.c:89: (Each undeclared identifier is reported only once
dbase.c:89: for each function it appears in.)
dbase.c:89: parse error before ')' token
dbase.c:90: dereferencing pointer to incomplete type
dbase.c:96: warning: implicit declaration of function `mysql_init'
dbase.c:96: dereferencing pointer to incomplete type
dbase.c:98: warning: implicit declaration of function `mysql_real_connect'
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:99: warning: implicit declaration of function `mysql_error'
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:99: warning: format argument is not a pointer (arg 3)
dbase.c:100: warning: implicit declaration of function `mysql_close'
dbase.c:100: dereferencing pointer to incomplete type
dbase.c:102: dereferencing pointer to incomplete type
dbase.c: In function `disconnect_db':
dbase.c:127: dereferencing pointer to incomplete type
dbase.c:129: dereferencing pointer to incomplete type
dbase.c: In function `submit_query':
dbase.c:151: warning: implicit declaration of function `mysql_query'
dbase.c:151: dereferencing pointer to incomplete type
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c:152: dereferencing pointer to incomplete type
dbase.c:152: warning: format argument is not a pointer (arg 3)
dbase.c: At top level:
dbase.c:187: parse error before '*' token
dbase.c: In function `print_values':
dbase.c:191: `_c' undeclared (first use in this function)
dbase.c:191: `_b' undeclared (first use in this function)
dbase.c:191: `_l' undeclared (first use in this function)
dbase.c:191: `_v' undeclared (first use in this function)
dbase.c:191: `_n' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:216: parse error before '*' token
dbase.c: In function `print_where':
dbase.c:222: `_c' undeclared (first use in this function)
dbase.c:222: `_b' undeclared (first use in this function)
dbase.c:222: `_l' undeclared (first use in this function)
dbase.c:222: `_k' undeclared (first use in this function)
dbase.c:222: `_v' undeclared (first use in this function)
dbase.c:222: `_n' undeclared (first use in this function)
dbase.c:228: `_o' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:247: parse error before '*' token
dbase.c: In function `print_set':
dbase.c:253: `_c' undeclared (first use in this function)
dbase.c:253: `_b' undeclared (first use in this function)
dbase.c:253: `_l' undeclared (first use in this function)
dbase.c:253: `_k' undeclared (first use in this function)
dbase.c:253: `_v' undeclared (first use in this function)
dbase.c:253: `_n' undeclared (first use in this function)
dbase.c: In function `db_init':
dbase.c:287: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c:292: sizeof applied to an incomplete type
dbase.c: In function `db_close':
dbase.c:318: dereferencing pointer to incomplete type
dbase.c:319: warning: implicit declaration of function `mysql_free_result'
dbase.c:319: dereferencing pointer to incomplete type
dbase.c: In function `get_result':
dbase.c:346: dereferencing pointer to incomplete type
dbase.c:346: warning: implicit declaration of function
`mysql_store_result'
dbase.c:346: dereferencing pointer to incomplete type
dbase.c:347: dereferencing pointer to incomplete type
dbase.c:348: warning: implicit declaration of function `mysql_field_count'
dbase.c:348: dereferencing pointer to incomplete type
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c:353: dereferencing pointer to incomplete type
dbase.c:353: warning: format argument is not a pointer (arg 3)
dbase.c: In function `db_free_query':
dbase.c:391: dereferencing pointer to incomplete type
dbase.c:392: dereferencing pointer to incomplete type
dbase.c: In function `db_query':
dbase.c:428: dereferencing pointer to incomplete type
dbase.c: In function `db_insert':
dbase.c:484: dereferencing pointer to incomplete type
dbase.c: In function `db_delete':
dbase.c:516: dereferencing pointer to incomplete type
dbase.c: In function `db_update':
dbase.c:548: dereferencing pointer to incomplete type
dbase.c:551: dereferencing pointer to incomplete type
make[1]: *** [dbase.o] Error 1
make[1]: Leaving directory `/ser-0.8.14/modules/mysql'
/-------Original Message-------/
/*From:*/ daniel(a)iptel.org <mailto:daniel@iptel.org>
/*Date:*/ 08/02/04 18:28:48
/*To:*/ Sean <mailto:u0085200@cc.ncu.edu.tw>
/*Cc:*/ serusers(a)lists.iptel.org <mailto:serusers@lists.iptel.org>
/*Subject:*/ Re: [Serusers] ser-0.8.14
From sip_router directory do: make modules
modules=modules/mysql.
You should get more detailed error messages, if something
fails. Send
them all to help you.
Daniel
On 8/2/2004 9:11 AM, Sean wrote:
when I install the ser-0.8.14, in
/usr/local/lib/ser/modues/ didn't
hava mysql.so.
I try to make in /ser-0.8.14/modules/mysql
but had error.
.....
make: *** [dbase.o] Error 1
how to make modules in /ser-0.8.14/modules/mysql?
thanks.
<http://www.incredimail.com/index.asp?id=54475>
------------------------------------------------------------------------
_______________________________________________
Serusers mailing list
&gt;serusers(a)lists.iptel.org
<mailto:gt;serusers@lists.iptel.org>
.
<http://www.incredimail.com/index.asp?id=54475>