[OpenSER-Users] Compiling

Daniel-Constantin Mierla daniel at voice-system.ro
Mon Oct 22 15:52:05 CEST 2007


Hello,

it seems that you do not have mysql client development libraries. 
Install them first.

Cheers,
Daniel


On 10/22/07 16:46, Gerson Matiolli wrote:
> Hi, all
>
> I am using Fedora 7 and openser-1.2.2-tls
>
> I need to change the contents of the file lcr_mod.c (MAX_NO_OF_LCRS 8000)
>
>
> When compiling using the command:
> make include_modules="mysql" modules
>
> Two errors are found. What can be?
>
>
> make[1]: Entrando no diretório `/root/openser-1.2.2-tls/modules/mysql'
> make[1]: Saindo do diretório `/root/openser-1.2.2-tls/modules/mysql'
> make[1]: Entrando no diretório `/root/openser-1.2.2-tls/modules/mysql'
> Compiling dbase.c
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64    -DNAME='"openser"' -DVERSION='"1.2.2-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -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 -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/local/mysql/include -I/usr/include/mysql -c dbase.c -o dbase.o
> dbase.c:29:25: error: mysql/mysql.h: Arquivo ou diretório não encontrado
> dbase.c:30:26: error: mysql/errmsg.h: Arquivo ou diretório não encontrado
> In file included from dbase.c:35:
> val.h:39: error: expected ‘)’ before ‘*’ token
> In file included from dbase.c:36:
> my_con.h:38: error: expected specifier-qualifier-list before ‘MYSQL_RES’
> dbase.c: In function ‘db_mysql_submit_query’:
> dbase.c:63: error: ‘struct my_con’ has no member named ‘timestamp’
> dbase.c:64: warning: implicit declaration of function ‘mysql_ping’
> dbase.c:64: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:68: error: ‘struct my_con’ has no member named ‘timestamp’
> dbase.c:86: warning: implicit declaration of function ‘mysql_query’
> dbase.c:86: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:89: warning: implicit declaration of function ‘mysql_errno’
> dbase.c:89: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:90: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
> dbase.c:90: error: (Each undeclared identifier is reported only once
> dbase.c:90: error: for each function it appears in.)
> dbase.c:90: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
> dbase.c:94: warning: implicit declaration of function ‘mysql_error’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:94: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:94: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c: At top level:
> dbase.c:134: error: expected ‘)’ before ‘*’ token
> dbase.c:162: error: expected ‘)’ before ‘*’ token
> dbase.c:203: error: expected ‘)’ before ‘*’ token
> dbase.c: In function ‘db_mysql_store_result’:
> dbase.c:329: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:329: warning: implicit declaration of function ‘mysql_store_result’
> dbase.c:329: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:330: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:331: warning: implicit declaration of function ‘mysql_field_count’
> dbase.c:331: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:336: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:336: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:350: warning: implicit declaration of function ‘mysql_free_result’
> dbase.c:350: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:351: error: ‘struct my_con’ has no member named ‘res’
> dbase.c: In function ‘db_mysql_free_result’:
> dbase.c:373: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:374: error: ‘struct my_con’ has no member named ‘res’
> dbase.c: In function ‘db_mysql_query’:
> dbase.c:423: warning: implicit declaration of function ‘db_mysql_print_where’
> dbase.c:423: error: ‘struct my_con’ has no member named ‘con’
> dbase.c: In function ‘db_mysql_fetch_result’:
> dbase.c:467: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:467: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:468: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:469: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:474: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:474: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:487: warning: implicit declaration of function ‘mysql_num_rows’
> dbase.c:487: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:516: error: ‘struct my_con’ has no member named ‘row’
> dbase.c:516: warning: implicit declaration of function ‘mysql_fetch_row’
> dbase.c:516: error: ‘struct my_con’ has no member named ‘res’
> dbase.c:517: error: ‘struct my_con’ has no member named ‘row’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c:518: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:518: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
> dbase.c: In function ‘db_mysql_insert’:
> dbase.c:584: warning: implicit declaration of function ‘db_mysql_print_values’
> dbase.c:584: error: ‘struct my_con’ has no member named ‘con’
> dbase.c: In function ‘db_mysql_delete’:
> dbase.c:630: error: ‘struct my_con’ has no member named ‘con’
> dbase.c: In function ‘db_mysql_update’:
> dbase.c:674: warning: implicit declaration of function ‘db_mysql_print_set’
> dbase.c:674: error: ‘struct my_con’ has no member named ‘con’
> dbase.c:683: error: ‘struct my_con’ has no member named ‘con’
> dbase.c: In function ‘db_mysql_replace’:
> dbase.c:726: error: ‘struct my_con’ has no member named ‘con’
> make[1]: ** [dbase.o] Erro 1
> make[1]: Saindo do diretório `/root/openser-1.2.2-tls/modules/mysql'
> make: ** [modules] Erro 2
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list