Hi to all,
I've found this problem during the compilation of mysql module. The command
was
make include_modules="mysql mangler" modules
the output was:
make[1]: Entering directory `/root/ser-0.8.11/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.11"'
-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 -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC -DFAST_LOCK
-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 -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
dbase.c: In function `connect_db':
dbase.c:88: dereferencing pointer to incomplete type
dbase.c:88: `MYSQL' undeclared (first use in this function)
dbase.c:88: (Each undeclared identifier is reported only once
dbase.c:88: for each function it appears in.)
dbase.c:88: parse error before ')' token
dbase.c:89: dereferencing pointer to incomplete type
dbase.c:95: warning: implicit declaration of function `mysql_init'
dbase.c:95: dereferencing pointer to incomplete type
dbase.c:97: warning: implicit declaration of function `mysql_real_connect'
dbase.c:97: dereferencing pointer to incomplete type
dbase.c:98: warning: implicit declaration of function `mysql_error'
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:98: dereferencing pointer to incomplete type
dbase.c:98: warning: format argument is not a pointer (arg 3)
dbase.c:99: warning: implicit declaration of function `mysql_close'
dbase.c:99: dereferencing pointer to incomplete type
dbase.c:101: dereferencing pointer to incomplete type
dbase.c: In function `disconnect_db':
dbase.c:126: dereferencing pointer to incomplete type
dbase.c:128: dereferencing pointer to incomplete type
dbase.c: In function `submit_query':
dbase.c:148: warning: implicit declaration of function `mysql_query'
dbase.c:148: dereferencing pointer to incomplete type
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c:149: dereferencing pointer to incomplete type
dbase.c:149: warning: format argument is not a pointer (arg 3)
dbase.c: In function `db_init':
dbase.c:284: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c:289: sizeof applied to an incomplete type
dbase.c: In function `db_close':
dbase.c:315: dereferencing pointer to incomplete type
dbase.c:316: warning: implicit declaration of function `mysql_free_result'
dbase.c:316: dereferencing pointer to incomplete type
dbase.c: In function `get_result':
dbase.c:343: dereferencing pointer to incomplete type
dbase.c:343: warning: implicit declaration of function `mysql_store_result'
dbase.c:343: dereferencing pointer to incomplete type
dbase.c:344: dereferencing pointer to incomplete type
dbase.c:345: warning: implicit declaration of function `mysql_field_count'
dbase.c:345: dereferencing pointer to incomplete type
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c:350: dereferencing pointer to incomplete type
dbase.c:350: warning: format argument is not a pointer (arg 3)
dbase.c: In function `db_free_query':
dbase.c:388: dereferencing pointer to incomplete type
dbase.c:389: dereferencing pointer to incomplete type
make[1]: *** [dbase.o] Error 1
make[1]: Leaving directory `/root/ser-0.8.11/modules/mysql'