Thanks for the hint, you were right , it was really just about installing
mysql-devel-4.0.24. Once I did, I've recompiled mysql.so and copied it to the right
place ( ser modules ) and everything goes OK now...
Thanks a Lot
Best Regards.
On Thu, 19 May 2005 10:18:31 +0200
"Greger V. Teigre" <greger(a)teigre.com> wrote:
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@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@sipproxy1:/usr/src/ser-0.9.0/modules/mysql#
-----------------------------------------------------------------------------
--
Felipe Martins
Mundivox Communications
Tecnologia e Projetos
fmartins(a)mundivox.com
Tel.: +55 +21 +3820 8839
Cel.: +55 +21 +9823 8602
Fax.: +55 +21 +3820 8844
www.mundivox.com