Hi, i've downloaded ser 9.0 src, and ran make prefix=/usr/local all make prefix=/usr/local install, and it seemed to work fine until i realised that it hadn't compiled mysql module. when i ran make prefix=/usr/local exclude_modules="" modules and it gave errors in a few modules including this in the mysql section
make[1]: Entering directory `/root/ser-0.9.0/modules/mysql' gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -DNAME='"ser"' -DVERSION='"0.9.0"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_x86_64 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -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:34:25: mysql/mysql.h: No such file or directory dbase.c:35:26: mysql/errmsg.h: No such file or directory In file included from dbase.c:39: val.h:31:25: mysql/mysql.h: No such file or directory In file included from dbase.c:39: val.h:44: error: parse error before '*' token In file included from dbase.c:40: my_con.h:33:25: mysql/mysql.h: No such file or directory In file included from dbase.c:40: my_con.h:39: error: parse error before "MYSQL_RES" my_con.h:39: warning: no semicolon at end of struct or union my_con.h:40: warning: type defaults to `int' in declaration of `con' my_con.h:40: warning: data definition has no type or storage class my_con.h:41: error: parse error before "row" my_con.h:41: warning: type defaults to `int' in declaration of `row' my_con.h:41: warning: data definition has no type or storage class my_con.h:44: error: parse error before '}' token dbase.c: In function `submit_query': dbase.c:67: error: dereferencing pointer to incomplete type dbase.c:68: warning: implicit declaration of function `mysql_ping' dbase.c:68: error: dereferencing pointer to incomplete type dbase.c:72: error: dereferencing pointer to incomplete type dbase.c:90: warning: implicit declaration of function `mysql_query' dbase.c:90: error: dereferencing pointer to incomplete type dbase.c:93: warning: implicit declaration of function `mysql_errno' dbase.c:93: error: dereferencing pointer to incomplete type dbase.c:94: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) dbase.c:94: error: (Each undeclared identifier is reported only once dbase.c:94: error: for each function it appears in.) dbase.c:94: error: `CR_SERVER_LOST' undeclared (first use in this function) dbase.c:98: warning: implicit declaration of function `mysql_error' dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c: At top level: dbase.c:138: error: parse error before '*' token dbase.c: In function `print_values': dbase.c:142: error: `_c' undeclared (first use in this function) dbase.c:142: error: `_b' undeclared (first use in this function) dbase.c:142: error: `_l' undeclared (first use in this function) dbase.c:142: error: `_v' undeclared (first use in this function) dbase.c:142: error: `_n' undeclared (first use in this function) dbase.c: At top level: dbase.c:166: error: parse error before '*' token dbase.c: In function `print_where': dbase.c:172: error: `_c' undeclared (first use in this function) dbase.c:172: error: `_b' undeclared (first use in this function) dbase.c:172: error: `_l' undeclared (first use in this function) dbase.c:172: error: `_k' undeclared (first use in this function) dbase.c:172: error: `_v' undeclared (first use in this function) dbase.c:172: error: `_n' undeclared (first use in this function) dbase.c:178: error: `_o' undeclared (first use in this function) dbase.c: At top level: dbase.c:207: error: parse error before '*' token dbase.c: In function `print_set': dbase.c:213: error: `_c' undeclared (first use in this function) dbase.c:213: error: `_b' undeclared (first use in this function) dbase.c:213: error: `_l' undeclared (first use in this function) dbase.c:213: error: `_k' undeclared (first use in this function) dbase.c:213: error: `_v' undeclared (first use in this function) dbase.c:213: error: `_n' undeclared (first use in this function) dbase.c: In function `store_result': dbase.c:304: error: dereferencing pointer to incomplete type dbase.c:304: warning: implicit declaration of function `mysql_store_result' dbase.c:304: error: dereferencing pointer to incomplete type dbase.c:305: error: dereferencing pointer to incomplete type dbase.c:306: warning: implicit declaration of function `mysql_field_count' dbase.c:306: error: dereferencing pointer to incomplete type dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c: In function `db_free_result': dbase.c:348: warning: implicit declaration of function `mysql_free_result' dbase.c:348: error: dereferencing pointer to incomplete type dbase.c:349: error: dereferencing pointer to incomplete type dbase.c: In function `db_query': dbase.c:398: error: dereferencing pointer to incomplete type dbase.c: In function `db_insert': dbase.c:471: error: dereferencing pointer to incomplete type dbase.c: In function `db_delete': dbase.c:516: error: dereferencing pointer to incomplete type dbase.c: In function `db_update': dbase.c:559: error: dereferencing pointer to incomplete type dbase.c:568: error: dereferencing pointer to incomplete type make[1]: *** [dbase.o] Error 1 make[1]: Leaving directory `/root/ser-0.9.0/modules/mysql'
Am i trying to compile it correctly, and if so how do i get the mysql module sorted? Many thanks, Damian.
Hi,
install mysql-devel module/package
On 4/22/05, Damian Bundred damian22@hotmail.com wrote:
Hi, i've downloaded ser 9.0 src, and ran make prefix=/usr/local all make prefix=/usr/local install, and it seemed to work fine until i realised that it hadn't compiled mysql module. when i ran make prefix=/usr/local exclude_modules="" modules and it gave errors in a few modules including this in the mysql section
make[1]: Entering directory `/root/ser-0.9.0/modules/mysql' gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -DNAME='"ser"' -DVERSION='"0.9.0"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_x86_64 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -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:34:25: mysql/mysql.h: No such file or directory dbase.c:35:26: mysql/errmsg.h: No such file or directory In file included from dbase.c:39: val.h:31:25: mysql/mysql.h: No such file or directory In file included from dbase.c:39: val.h:44: error: parse error before '*' token In file included from dbase.c:40: my_con.h:33:25: mysql/mysql.h: No such file or directory In file included from dbase.c:40: my_con.h:39: error: parse error before "MYSQL_RES" my_con.h:39: warning: no semicolon at end of struct or union my_con.h:40: warning: type defaults to `int' in declaration of `con' my_con.h:40: warning: data definition has no type or storage class my_con.h:41: error: parse error before "row" my_con.h:41: warning: type defaults to `int' in declaration of `row' my_con.h:41: warning: data definition has no type or storage class my_con.h:44: error: parse error before '}' token dbase.c: In function `submit_query': dbase.c:67: error: dereferencing pointer to incomplete type dbase.c:68: warning: implicit declaration of function `mysql_ping' dbase.c:68: error: dereferencing pointer to incomplete type dbase.c:72: error: dereferencing pointer to incomplete type dbase.c:90: warning: implicit declaration of function `mysql_query' dbase.c:90: error: dereferencing pointer to incomplete type dbase.c:93: warning: implicit declaration of function `mysql_errno' dbase.c:93: error: dereferencing pointer to incomplete type dbase.c:94: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) dbase.c:94: error: (Each undeclared identifier is reported only once dbase.c:94: error: for each function it appears in.) dbase.c:94: error: `CR_SERVER_LOST' undeclared (first use in this function) dbase.c:98: warning: implicit declaration of function `mysql_error' dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:98: warning: format argument is not a pointer (arg 3) dbase.c: At top level: dbase.c:138: error: parse error before '*' token dbase.c: In function `print_values': dbase.c:142: error: `_c' undeclared (first use in this function) dbase.c:142: error: `_b' undeclared (first use in this function) dbase.c:142: error: `_l' undeclared (first use in this function) dbase.c:142: error: `_v' undeclared (first use in this function) dbase.c:142: error: `_n' undeclared (first use in this function) dbase.c: At top level: dbase.c:166: error: parse error before '*' token dbase.c: In function `print_where': dbase.c:172: error: `_c' undeclared (first use in this function) dbase.c:172: error: `_b' undeclared (first use in this function) dbase.c:172: error: `_l' undeclared (first use in this function) dbase.c:172: error: `_k' undeclared (first use in this function) dbase.c:172: error: `_v' undeclared (first use in this function) dbase.c:172: error: `_n' undeclared (first use in this function) dbase.c:178: error: `_o' undeclared (first use in this function) dbase.c: At top level: dbase.c:207: error: parse error before '*' token dbase.c: In function `print_set': dbase.c:213: error: `_c' undeclared (first use in this function) dbase.c:213: error: `_b' undeclared (first use in this function) dbase.c:213: error: `_l' undeclared (first use in this function) dbase.c:213: error: `_k' undeclared (first use in this function) dbase.c:213: error: `_v' undeclared (first use in this function) dbase.c:213: error: `_n' undeclared (first use in this function) dbase.c: In function `store_result': dbase.c:304: error: dereferencing pointer to incomplete type dbase.c:304: warning: implicit declaration of function `mysql_store_result' dbase.c:304: error: dereferencing pointer to incomplete type dbase.c:305: error: dereferencing pointer to incomplete type dbase.c:306: warning: implicit declaration of function `mysql_field_count' dbase.c:306: error: dereferencing pointer to incomplete type dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c:311: error: dereferencing pointer to incomplete type dbase.c:311: warning: format argument is not a pointer (arg 3) dbase.c: In function `db_free_result': dbase.c:348: warning: implicit declaration of function `mysql_free_result' dbase.c:348: error: dereferencing pointer to incomplete type dbase.c:349: error: dereferencing pointer to incomplete type dbase.c: In function `db_query': dbase.c:398: error: dereferencing pointer to incomplete type dbase.c: In function `db_insert': dbase.c:471: error: dereferencing pointer to incomplete type dbase.c: In function `db_delete': dbase.c:516: error: dereferencing pointer to incomplete type dbase.c: In function `db_update': dbase.c:559: error: dereferencing pointer to incomplete type dbase.c:568: error: dereferencing pointer to incomplete type make[1]: *** [dbase.o] Error 1 make[1]: Leaving directory `/root/ser-0.9.0/modules/mysql'
Am i trying to compile it correctly, and if so how do i get the mysql module sorted? Many thanks, Damian.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers