[Serusers] Ser 0.9.0 compiling mysql.so problem !!!
Greger V. Teigre
greger at teigre.com
Thu May 19 10:18:31 CEST 2005
Install mysql-devel package.
g-)
Felipe Martins wrote:
> Hi everybody ...
>
> I have compiled ser 0.9.0 and run it with the basic configuration
> without mysql ... it's working fine ... byt now I want to use mysql
> authentication.
> As I found at the manuals I needed to change a certain parameter at
> the Makefile to turn on the mysql support, til then, no problem, the
> problem is that when I compile it , it gives me inumerous errors,
> what am my doing wrong ?:
>
> ------------------------------------------------------------------------------
> root at sipproxy1:/usr/src/ser-0.9.0/modules/mysql# make
> ../../Makefile.modules:21: "you should run make from the main ser
> directory"
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
> -minline-all-stringops -malign-double -falign-loops -mcpu=athlon
> -DNAME='"ser"' -DVERSION='"0.9.0"' -DARCH='"i386"' -DOS='"linux"'
> -DCOMPILER='"gcc 3.3"' -D__CPU_i386 -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: *** [dbase.o] Error 1
> root at sipproxy1:/usr/src/ser-0.9.0/modules/mysql#
> -----------------------------------------------------------------------------
More information about the sr-users
mailing list