You need to install the mysql development packages for your operating
system.
if these are installed, then you will need to specify where you have
installed the mysql development include files and libraries. (usually,
these are looked for in /usr/include and /usr/local/mysql/include (and lib
respectivly)
it may also be searching in /usr/local/include as well but thats more
unlikely.
for redhat - you will want to install the mysql-dev rpms and this will
solve your problem.
--
Steve.
On Sun, 22 Feb 2004, alan chiu wrote:
thanks! I have tried that but it still didn't
include
"mysql" module in the install. I have also tried "make
exclude_modules="" modules" earlier with no success.
I am on RH9/i386. Here's the error during "make
include_modules="mysql" install":
make[1]: Entering directory
`/root/sip_router/modules/mysql'
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align
-Wall -minline-all-stringops -malign-double
-falign-loops -mcpu=athlon -DNAME='"ser"'
-DVERSION='"0.8.13-dev-23-merged"' -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 -I/usr/local/include
-I/usr/local/include/mysql -I/usr/local/mysql/include
-I/usr/pkg/include -I/usr/include/mysql -c dbase.c -o
dbase.o
dbase.c:33:25: mysql/mysql.h: No such file or
directory
In file included from dbase.c:38:
my_con.h:32:25: mysql/mysql.h: No such file or
directory
In file included from dbase.c:38:
my_con.h:38: parse error before "MYSQL_RES"
my_con.h:38: warning: no semicolon at end of struct or
union
my_con.h:39: warning: type defaults to `int' in
declaration of `con'
my_con.h:39: warning: data definition has no type or
storage class
my_con.h:40: parse error before "row"
my_con.h:40: warning: type defaults to `int' in
declaration of `row'
my_con.h:40: warning: data definition has no type or
storage class
my_con.h:42: parse error before '}' token
dbase.c: In function `submit_query':
dbase.c:62: warning: implicit declaration of function
`mysql_query'
dbase.c:62: dereferencing pointer to incomplete type
dbase.c:63: warning: implicit declaration of function
`mysql_error'
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer
(arg 3)
dbase.c: In function `get_result':
dbase.c:247: dereferencing pointer to incomplete type
dbase.c:247: warning: implicit declaration of function
`mysql_store_result'
dbase.c:247: dereferencing pointer to incomplete type
dbase.c:248: dereferencing pointer to incomplete type
dbase.c:249: warning: implicit declaration of function
`mysql_field_count'
dbase.c:249: dereferencing pointer to incomplete type
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c:254: dereferencing pointer to incomplete type
dbase.c:254: warning: format argument is not a pointer
(arg 3)
dbase.c: In function `db_free_query':
dbase.c:291: warning: implicit declaration of function
`mysql_free_result'
dbase.c:291: dereferencing pointer to incomplete type
dbase.c:292: dereferencing pointer to incomplete type
make[1]: *** [dbase.o] Error 1
make[1]: Leaving directory
`/root/sip_router/modules/mysql'
*************************************
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers