Hi,
I am having a problem installing the latest ser distribution. This install is on a new server - Linux (Phedora) - Linux voice.x.com 2.4.22-2174.nptlsmp #1 SMP Wed Feb 18 16:21:50 EST 2004
Here is the command that I am running to set it up:
#make all include_modules=mysql
Here is the output of the command - Any help is greatly appreciated
make[1]: Entering directory `/root/ser/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.12-tcp_nonb"' -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_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 -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: error: syntax 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: error: syntax 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 In file included from dbase.c:40: db_val.h:31:25: mysql/mysql.h: No such file or directory In file included from dbase.c:40: db_val.h:43: error: syntax error before '*' token dbase.c: In function `connect_db': dbase.c:89: error: dereferencing pointer to incomplete type dbase.c:89: error: `MYSQL' undeclared (first use in this function) dbase.c:89: error: (Each undeclared identifier is reported only once dbase.c:89: error: for each function it appears in.) dbase.c:89: error: syntax error before ')' token dbase.c:90: error: dereferencing pointer to incomplete type dbase.c:96: warning: implicit declaration of function `mysql_init' dbase.c:96: error: dereferencing pointer to incomplete type dbase.c:98: warning: implicit declaration of function `mysql_real_connect' dbase.c:98: error: dereferencing pointer to incomplete type dbase.c:99: warning: implicit declaration of function `mysql_error' dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:99: error: dereferencing pointer to incomplete type dbase.c:99: warning: format argument is not a pointer (arg 3) dbase.c:100: warning: implicit declaration of function `mysql_close' dbase.c:100: error: dereferencing pointer to incomplete type dbase.c:102: error: dereferencing pointer to incomplete type dbase.c: In function `disconnect_db': dbase.c:127: error: dereferencing pointer to incomplete type dbase.c:129: error: dereferencing pointer to incomplete type dbase.c: In function `submit_query': dbase.c:151: warning: implicit declaration of function `mysql_query' dbase.c:151: error: dereferencing pointer to incomplete type dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c:152: error: dereferencing pointer to incomplete type dbase.c:152: warning: format argument is not a pointer (arg 3) dbase.c: At top level: dbase.c:187: error: syntax error before '*' token dbase.c: In function `print_values': dbase.c:191: error: `_c' undeclared (first use in this function) dbase.c:191: error: `_b' undeclared (first use in this function) dbase.c:191: error: `_l' undeclared (first use in this function) dbase.c:191: error: `_v' undeclared (first use in this function) dbase.c:191: error: `_n' undeclared (first use in this function) dbase.c: At top level: dbase.c:216: error: syntax error before '*' token dbase.c: In function `print_where': dbase.c:222: error: `_c' undeclared (first use in this function) dbase.c:222: error: `_b' undeclared (first use in this function) dbase.c:222: error: `_l' undeclared (first use in this function) dbase.c:222: error: `_k' undeclared (first use in this function) dbase.c:222: error: `_v' undeclared (first use in this function) dbase.c:222: error: `_n' undeclared (first use in this function) dbase.c:228: error: `_o' undeclared (first use in this function) dbase.c: At top level: dbase.c:247: error: syntax error before '*' token dbase.c: In function `print_set': dbase.c:253: error: `_c' undeclared (first use in this function) dbase.c:253: error: `_b' undeclared (first use in this function) dbase.c:253: error: `_l' undeclared (first use in this function) dbase.c:253: error: `_k' undeclared (first use in this function) dbase.c:253: error: `_v' undeclared (first use in this function) dbase.c:253: error: `_n' undeclared (first use in this function) dbase.c: In function `db_init': dbase.c:287: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c:292: error: invalid application of `sizeof' to an incomplete type dbase.c: In function `db_close': dbase.c:318: error: dereferencing pointer to incomplete type dbase.c:319: warning: implicit declaration of function `mysql_free_result' dbase.c:319: error: dereferencing pointer to incomplete type dbase.c: In function `get_result': dbase.c:346: error: dereferencing pointer to incomplete type dbase.c:346: warning: implicit declaration of function `mysql_store_result' dbase.c:346: error: dereferencing pointer to incomplete type dbase.c:347: error: dereferencing pointer to incomplete type dbase.c:348: warning: implicit declaration of function `mysql_field_count' dbase.c:348: error: dereferencing pointer to incomplete type dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c:353: error: dereferencing pointer to incomplete type dbase.c:353: warning: format argument is not a pointer (arg 3) dbase.c: In function `db_free_query': dbase.c:391: error: dereferencing pointer to incomplete type dbase.c:392: error: dereferencing pointer to incomplete type dbase.c: In function `db_query': dbase.c:428: error: dereferencing pointer to incomplete type dbase.c: In function `db_insert': dbase.c:484: 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:548: error: dereferencing pointer to incomplete type dbase.c:551: error: dereferencing pointer to incomplete type make[1]: *** [dbase.o] Error 1 make[1]: Leaving directory `/root/ser/sip_router/modules/mysql'
_________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/
Try to install MySQL's header files into your Phedora:
# rpm -Uvh ftp://ftp.linux.cz/pub/linux/fedora/linux/core/1/i386/os/Fedora/RPMS/mysql-devel-3.23.58-4.i386.rpm
Milan
On Wed, Apr 07, 2004 at 09:49:41PM +0000, goddess hekate wrote:
Hi,
I am having a problem installing the latest ser distribution. This install is on a new server - Linux (Phedora) - Linux voice.x.com 2.4.22-2174.nptlsmp #1 SMP Wed Feb 18 16:21:50 EST 2004
Here is the command that I am running to set it up:
#make all include_modules=mysql
Here is the output of the command - Any help is greatly appreciated
...
In file included from dbase.c:39: con_mysql.h:33:25: mysql/mysql.h: No such file or directory