Thank you! This helped -- mysql.so compiles fine now.
Regards,
Alex
----- Original Message -----
From: "Ezequiel Colombo" <ecolombo(a)arcotel.net
To: "Alexey Gavrilov" <alex(a)metalinkltd.com
Cc: <serusers(a)lists.iptel.org
Sent: Wednesday, May 26, 2004 6:26 PM
Subject: Re: [Serusers] child process exited when fix_contact()
The mysql.h file is installed by the mysql-devel package. Installa devel rpm
of your mysql version and try again.
The file is placed in /usr/include/mysql/mysql.h after install the
mysql-devel-XX.rpm package.
----- Original Message -----
From: "Alexey Gavrilov" <alex(a)metalinkltd.com
To: "Ezequiel Colombo" <ecolombo(a)arcotel.net
Cc: <serusers(a)lists.iptel.org
Sent: Wednesday, May 26, 2004 10:46 AM
Subject: Re: [Serusers] child process exited when fix_contact()
Here is my make log. It looks like it didn't find
'mysql.h' -- there is
actually no such file either in checked out copy or
in cvs :
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/mysql/
I'm wondering what I'm doing wrong.
Thanks,
Alex
make[1]: Entering directory
`/home/alexg/src/latest/sip_router_dev/modules/mysql'
cc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-str
ingops -malign-double -falign-loops -mcpu=athlon
-DNAME='"ser"' -DVERSI
> ON='"0.8.13-dev-29"' -DARCH='"i386"'
-DOS='"linux"' -DCOMPILER='"gcc
3.2"' -D__CPU_i386 -D__OS_linux
-DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALL
OC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK
-DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDI
SABLE_NAGLE -DF_MALLOC -DFAST_LOCK
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=10
24 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_N
OSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-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:33:25: mysql/mysql.h: No such file or directory
In file included from dbase.c:37:
val.h:31:25: mysql/mysql.h: No such file or directory
In file included from dbase.c:37:
val.h:44: parse error before '*' token
In file included from dbase.c:38:
my_con.h:32:25: mysql/mysql.h: No such file or directory
In file included from dbase.c:38:
my_con.h:38: parse error before "MYSQL_RES"
my_con.h:38: warning: no semicolon at end of struct or union
my_con.h:39: warning: type defaults to `int' in declaration of `con'
my_con.h:39: warning: data definition has no type or storage class
my_con.h:40: parse error before "row"
my_con.h:40: warning: type defaults to `int' in declaration of `row'
my_con.h:40: warning: data definition has no type or storage class
my_con.h:42: parse error before '}' token
dbase.c: In function `submit_query':
dbase.c:62: warning: implicit declaration of function `mysql_query'
dbase.c:62: dereferencing pointer to incomplete type
dbase.c:63: warning: implicit declaration of function `mysql_error'
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c:63: dereferencing pointer to incomplete type
dbase.c:63: warning: format argument is not a pointer (arg 3)
dbase.c: At top level:
dbase.c:98: parse error before '*' token
dbase.c: In function `print_values':
dbase.c:102: `_c' undeclared (first use in this function)
dbase.c:102: (Each undeclared identifier is reported only once
dbase.c:102: for each function it appears in.)
dbase.c:102: `_b' undeclared (first use in this function)
dbase.c:102: `_l' undeclared (first use in this function)
dbase.c:102: `_v' undeclared (first use in this function)
dbase.c:102: `_n' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:126: parse error before '*' token
dbase.c: In function `print_where':
dbase.c:132: `_c' undeclared (first use in this function)
dbase.c:132: `_b' undeclared (first use in this function)
dbase.c:132: `_l' undeclared (first use in this function)
dbase.c:132: `_k' undeclared (first use in this function)
dbase.c:132: `_v' undeclared (first use in this function)
dbase.c:132: `_n' undeclared (first use in this function)
dbase.c:138: `_o' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:157: parse error before '*' token
dbase.c: In function `print_set':
dbase.c:163: `_c' undeclared (first use in this function)
dbase.c:163: `_b' undeclared (first use in this function)
dbase.c:163: `_l' undeclared (first use in this function)
dbase.c:163: `_k' undeclared (first use in this function)
dbase.c:163: `_v' undeclared (first use in this function)
dbase.c:163: `_n' undeclared (first use in this function)
dbase.c: In function `get_result':
dbase.c:247: dereferencing pointer to incomplete type
dbase.c:247: warning: implicit declaration of function
`mysql_store_result'
> dbase.c:247: dereferencing pointer to incomplete type
> dbase.c:248: dereferencing pointer to incomplete type
> dbase.c:249: warning: implicit declaration of function `mysql_field_count'
> dbase.c:249: dereferencing pointer to incomplete type
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c:254: dereferencing pointer to incomplete type
> dbase.c:254: warning: format argument is not a pointer (arg 3)
> dbase.c: In function `db_free_query':
> dbase.c:291: warning: implicit declaration of function `mysql_free_result'
> dbase.c:291: dereferencing pointer to incomplete type
> dbase.c:292: dereferencing pointer to incomplete type
> dbase.c: In function `db_query':
> dbase.c:328: dereferencing pointer to incomplete type
> dbase.c: In function `db_insert':
> dbase.c:385: dereferencing pointer to incomplete type
> dbase.c: In function `db_delete':
> dbase.c:417: dereferencing pointer to incomplete type
> dbase.c: In function `db_update':
> dbase.c:449: dereferencing pointer to incomplete type
> dbase.c:452: dereferencing pointer to incomplete type
> make[1]: *** [dbase.o] Error 1
> make[1]: Leaving directory
> `/home/alexg/src/latest/sip_router_dev/modules/mysql'
> ----- Original Message -----
> From: "Ezequiel Colombo" <ecolombo(a)arcotel.net
> To: "Alexey Gavrilov"
<alex(a)metalinkltd.com
> Cc:
<serusers(a)lists.iptel.org
> Sent: Wednesday,
May 26, 2004 4:28 PM
> Subject: Re: [Serusers] child process exited when fix_contact()
> When trying to compile the last CSV source code i have problems with
> mysql.so that solve with the installation of the libZ package on my linux
> box. Please provide the error that you get making the mysql.so in your
> system to help you.
> ----- Original Message -----
> From: "Alexey Gavrilov" <alex(a)metalinkltd.com
> To: "Ezequiel Colombo"
<ecolombo(a)arcotel.net
> Cc:
<serusers(a)lists.iptel.org
> Sent: Wednesday,
May 26, 2004 9:15 AM
> Subject: Re: [Serusers] child process exited when fix_contact()
> > Ezequiel, thank you for the hint but how did you manage to compile
> > mysql.so -- you mentioned
> > it didn't compile for you and I faced the same issue?
> > I appreciate your help.
>
> > Regards,
> > Alex
>
> > ----- Original Message -----
> > From: "Ezequiel Colombo" <ecolombo(a)arcotel.net
> > To: "Alexey Gavrilov"
<alex(a)metalinkltd.com>om>; "Jan Janak"
<jan(a)iptel.org
> > Cc:
<serusers(a)lists.iptel.org
> > Sent:
Wednesday, May 26, 2004 3:38 PM
> > Subject: Re: [Serusers] child process exited when fix_contact()
>
>
> > I solve the problem only using the mediaproxy module with the last CVS
> > source code compiled of SER.
> > Working with the stable 0.8.12 version the mediaproxy module dont work
> fine.
>
> > ----- Original Message -----
> > From: "Alexey Gavrilov" <alex(a)metalinkltd.com
> > To: "Jan Janak"
<jan(a)iptel.org
> > Cc:
<serusers(a)lists.iptel.org
> > Sent:
Wednesday, May 26, 2004 12:49 AM
> > Subject: Re: [Serusers] child process exited when fix_contact()
>
>
> > > Hello,
> >
> > > I
think I have a similar problem.
> > > Ser crashes when calling use_media_proxy() from mediaproxy module. I'm
> > using
> > > stable ser 0.8.12 and mediaproxy from CVS.
> > > Here is back trace:
> >
> > > (gdb)
bt
> > > #0 0x0804f6e6 in del_lump (list=0x80cf240, offset=525, len=13,
type=0)
at
> > data_lump.c:275
> > #1 0x40180a64 in replaceElement (msg=0x80cf240, oldElem=0xbfffe098,
> > newElem=0xbfffe7c0) at mediaproxy.c:768
> > #2 0x4017e4e3 in UseMediaProxy (msg=0x80cf240, str1=0x0, str2=0x0) at
> > mediaproxy.c:1305
> > #3 0x0804e7fb in do_action (a=0x80cb4c0, msg=0x80cf240) at
action.c:602
> #4
0x0804eaed in run_actions (a=0x80cb480, msg=0x80cf240) at
action.c:673
> > #5 0x0804e78e in do_action (a=0x80cb538, msg=0x80cf240) at
action.c:592
> #6
0x0804eaed in run_actions (a=0x80cb230, msg=0x80cf240) at
action.c:673
> > #7 0x0804e78e in do_action (a=0x80cb560, msg=0x80cf240) at
action.c:592
> #8
0x0804eaed in run_actions (a=0x80ca7f8, msg=0x80cf240) at
action.c:673
> > #9 0x0804e78e in do_action (a=0x80cb588, msg=0x80cf240) at
action.c:592
> > > #10 0x0804eaed in run_actions (a=0x80ca358, msg=0x80cf240) at
> action.c:673
>
> > > #11 0x080682c3 in receive_msg (
> > > buf=0x80b64c0 "INVITE sip:alex@192.168.0.1 SIP/2.0\r\nVia:
> SIP/2.0/UDP
> >
>
82.140.98.214:5060;rport;branch=z9hG4bK4196B0EA14274F08809C9B9E19B3157B\r\nF
> > > rom: alexey <sip:alexey@192.168.0.1>;tag=2668200757\r\nTo:
<sip:t"...,
> > > len=675,
> > > rcv_info=0xbffff270) at receive.c:138
> > > #12 0x08075807 in udp_rcv_loop () at udp_server.c:355
> > > #13 0x08057c47 in main_loop () at main.c:851
> > > #14 0x0805a478 in main (argc=3, argv=0xbffff564) at main.c:1779
> > > #15 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
> >
> > > and
this is end of server log:
> >
> > >
0(13510) parse_headers: flags=33554432
> > > 2(13514) ERROR: fifo_server fgets failed: Success
> > > 2(13514) INFO: signal 15 received
> > > 2(13514) Memory status (pkg):
> > > 2(13514) fm_status (0x80c9540):
> > > 2(13514) heap size= 1047440
> > > 2(13514) dumping free list:
> > > 2(13514) hash = 1 fragments no.: 12,
> > > bucket size: 8 - 8 (first 8)
> > > 2(13514) hash = 2 fragments no.: 2,
> > > bucket size: 16 - 16 (first 16)
> > > 2(13514) hash = 3 fragments no.: 1,
> > > bucket size: 24 - 24 (first 24)
> > > 2(13514) hash = 4 fragments no.: 110,
> > > bucket size: 32 - 32 (first 32)
> > > 2(13514) hash = 6 fragments no.: 2,
> > > bucket size: 48 - 48 (first 48)
> > > 2(13514) hash = 8 fragments no.: 39,
> > > bucket size: 64 - 64 (first 64)
> > > 2(13514) hash = 9 fragments no.: 1,
> > > bucket size: 72 - 72 (first 72)
> > > 2(13514) hash = 18 fragments no.: 3,
> > > bucket size: 144 - 144 (first 144)
> > > 2(13514) hash = 265 fragments no.: 1,
> > > bucket size: 524288 - 1048576 (first 1025272)
> > > 2(13514) TOTAL: 171 free fragments = 1032040 free bytes
> > > 2(13514) -----------------------------
> > > Segmentation fault (core dumped)
> >
> >
> > > Hope this would help to identify
the problem.
> >
> > >
Regards,
> > > Alex
> >
> >
> > > ----- Original Message -----
> > > From: "Jan Janak" <jan(a)iptel.org
> > > To: "Ezequiel Colombo" <ecolombo(a)arcotel.net
> > > Cc:
<serusers(a)lists.iptel.org
> > > Sent:
Saturday, May 22, 2004 5:03 AM
> > > Subject: Re: [Serusers] child process exited when fix_contact()
> >
> >
> > > Did you compile ser from sources
? If so, then recompile the whole ser
> > > in debugging mode:
> > > make clean
> > > make all mode=debug
> >
> > > then
enable core generation using ulimit -c unlimited and try to
> > > reproduce the crash. SER should generate a coredump. If you know how
to
> > > use gdb then try to display the backtrace.
> >
> > >
Jan.
> >
> >
> > > On 20-05 18:59, Ezequiel Colombo
wrote:
> > > > After replace my nathelper by the mediaproxy.so module and implement
> de
> > > mediaproxy service my SER crash after receiving a REGISTER message and
> do
> > > the fix_contact() command. The problem like to be the BUG:
tcp_main_loop
> > but
> > > i dont see what is the reason.
> > > > Any can help me with this ?
> > > > My mediaproxy.so module be compiled with the src files of the SER
> 0.8.12
> > > (rpm). I have tried to compile with the last CVS version but the
> mysql.so
> > > module dont compile.
> > >
> > > >
2(28514) SIP Request:
> > > > 2(28514) method: <REGISTER
> > > > 2(28514) uri: <sip:arcotel.net
> > > > 2(28514) version:
<SIP/2.0
> > > >
2(28514) parse_headers: flags=1
> > > > 2(28514) end of header reached, state=5
> > > > 2(28514) parse_headers: Via found, flags=1
> > > > 2(28514) parse_headers: this is the first via
> > > > 2(28514) After parse_msg...
> > > > 2(28514) preparing to run routing scripts...
> > > > 2(28514) parse_headers: flags=8
> > > > 2(28514) DEBUG: add_param: tag=2207940617
> > > > 2(28514) end of header reached, state=29
> > > > 2(28514) DEBUG : is_maxfwd_present: searching for max_forwards
header
> > > > 2(28514) parse_headers: flags=128
> > > > 2(28514) end of header reached, state=9
> > > > 2(28514) DEBUG: get_hdr_field: <To> [39];
> > uri=[sip:ecolombo@arcotel.net]
> > > > 2(28514) DEBUG: to body [1152321660
<sip:ecolombo@arcotel.net>]
> > > > 2(28514) get_hdr_field: cseq <CSeq>: <1> <REGISTER
> > > > 2(28514) DEBUG:
get_hdr_body : content_length=0
> > > > 2(28514) found end of header
> > > > 2(28514) DEBUG: is_maxfwd_present: max_forwards header not found!
> > > > 2(28514) ROUTE_0: Fixing Contact 2(28514) parse_headers: flags=64
> > > > 2(28514) parse_headers: flags=33554432
> > > > 11(28562) BUG: tcp_main_loop: dead child 2
> > > > 0(28511) child process 28514 exited by a signal 11
> > > > 0(28511) core was not generated
> > > > 0(28511) INFO: terminating due to SIGCHLD
> > > > 1(28513) INFO: signal 15 received
> > >
> > >
> > > > Thanks
> > > > Ezequiel Colombo
> > > > ARCOTEL S.A.
> > > > Av. Córdoba 3016
> > > > (C1187AAR) C.A.B.A.
> > > > Cel: 15 44063002
> > > > Tel/Fax: (5411) 49643002/3332
> >
> > > >
_______________________________________________
> > > > Serusers mailing list
> > > > serusers(a)lists.iptel.org
> > > >
http://lists.iptel.org/mailman/listinfo/serusers
> >
> > >
_______________________________________________
> > > Serusers mailing list
> > > serusers(a)lists.iptel.org
> > >
http://lists.iptel.org/mailman/listinfo/serusers
> >
> > >
_______________________________________________
> > > Serusers mailing list
> > > serusers(a)lists.iptel.org
> > >
http://lists.iptel.org/mailman/listinfo/serusers
> >
>
>