Hi, It seems your linphonec is not using the liblinphone shared library you have compiled because the debugging information does not appear in the backtrace, while -g appears in the compilation line. You should clean any instance of liblinphone.so.* from /usr/lib/ or /usr/local/lib. The problem does not produce for me, it is likely the problem comes from an old version of libosip2/liblinphone installed on your system. libosip2-3.0.3 is mandatory.
Simon Le Wednesday 30 January 2008 11:20:15 Gerard Robin, vous avez écrit : > On Sat, Jan 26, 2008 at 04:29:11PM +0100, Gerard Robin wrote: > >From: Gerard Robin <[EMAIL PROTECTED]> > >To: linphone <[email protected]> > >Subject: Re: [Linphone-users] linphonec: segmentation fault > >MTA: Postfix Version: 2.4.6-4+b1 > >EDITOR: vim or gvim > > > > On Fri, Jan 25, 2008 at 03:42:55PM +0100, Simon Morlat wrote: > >> From: Simon Morlat <[EMAIL PROTECTED]> > >> To: [email protected] > >> Cc: Gerard Robin <[EMAIL PROTECTED]> > >> Subject: Re: [Linphone-users] linphonec: segmentation fault > >> > >> Hi Gerard, > >> > >> -g is always added by linphone configure script. It is removed by > >> debian packages only. > >> So no problem, your build is ok. > >> > >> Simon > > > > Sorry for my last post ;-) the file swscale.h is in the package debian > > libswscale-dev After I install it, make still failed: > > > > make: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../mediastreamer2/include > > -I/usr/include/ -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror -DOSIP_MT > > -DHAVE_PTHREAD -DOSIP_MT -I../oRTP/include -DENABLE_TRACE > > -DLOG_DOMAIN=\"LinphoneCore\" -DINET6 -DORTP_INET6 -g -O2 > > -fno-strict-aliasing -MT linphonecore.lo -MD -MP -MF > > .deps/linphonecore.Tpo -c linphonecore.c -fPIC -DPIC -o > > .libs/linphonecore.o cc1: warnings being treated as errors > > linphonecore.c: In function 'linphone_core_send_dtmf': > > linphonecore.c:1732: warning: format '%i' expects type 'int', but > > argument 6 has type 'size_t' make[2]: *** [linphonecore.lo] Erreur 1 > > make[2]: quittant le répertoire « /usr/src/linphone-2.0.1/coreapi » > > make[1]: *** [all-recursive] Erreur 1 > > make[1]: quittant le répertoire « /usr/src/linphone-2.0.1 » > > make: *** [all] Erreur 2 > > continuation ... > after I edited the file linphonecore.c and I changed %i to replace by > %lu, make succeded. > > > /usr/src/linphone-2.0.1/console/.libs$ sudo gdb linphonec > GNU gdb 6.7.1-debian > Copyright (C) 2007 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> This is free software: you are free to > change and redistribute it. There is NO WARRANTY, to the extent permitted > by law. Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu"... > Using host libthread_db library "/lib/libthread_db.so.1". > (gdb) run > Starting program: /usr/src/linphone-2.0.1/console/.libs/linphonec > [Thread debugging using libthread_db enabled] > [New Thread 0x2b9d7b3b79b0 (LWP 12049)] > [New Thread 0x40800950 (LWP 12052)] > Friend EUGENIOhome <sip:...............> is Gone > ---------------------8<-------------------------------------- > Ready > Warning: video is disabled in linphonec. > linphonec> Registration on sip:ekiga.net successful. > linphonec> call 500 > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x2b9d7b3b79b0 (LWP 12049)] > 0x00002b9d770a8920 in strchr () from /lib/libc.so.6 > (gdb) backtrace > #0 0x00002b9d770a8920 in strchr () from /lib/libc.so.6 > #1 0x00002b9d76e0801d in osip_from_parse () from > /usr/lib/libosipparser2.so.2 #2 0x00002b9d7676ebfc in > linphone_core_interpret_url () from /usr/lib/liblinphone.so.2 #3 > 0x00002b9d76771203 in linphone_core_invite () from > /usr/lib/liblinphone.so.2 #4 0x0000000000404187 in lpc_cmd_call (lc=0x0, > args=0x22 <Address 0x22 out of bounds>) at commands.c:302 #5 > 0x0000000000404760 in linphonec_parse_command_line (lc=0x6089e0, > cl=0x61bac0 "call") at commands.c:206 #6 0x0000000000403509 in main > (argc=1, argv=0x7fff34564d78) at linphonec.c:725 > > hth _______________________________________________ Linphone-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/linphone-users
