linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] Re: Speex problems again


From: Simon Morlat
Subject: Re: [Linphone-users] Re: Speex problems again
Date: Wed, 3 Jan 2007 19:20:28 +0100
User-agent: KMail/1.9.5

Thanks for the tip !
It is now on cvs.

Simon

Le lundi 18 décembre 2006 17:27, Petr Pisar a écrit :
> On 2006-12-15, Ari Moisio <address@hidden> wrote:
> > Linphone version 1.5.1,  platform Debian Sarge
> >
> > ./configure   --prefix=/usr --disable-video
> >
> > make
> > ...
> >   gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../exosip -I../oRTP/include
> > -I../medias treamer2/include -I/usr/include/ -Wall
> > -Wp,-D_FORTIFY_SOURCE=2 -Werror -DENABLE_ TRACE
> > -DG_LOG_DOMAIN=\"LinphoneCore\" -DINET6 -DORTP_INET6 -g -O2
> > -fno-strict-al iasing -MT linphonecore.lo -MD -MP -MF
> > .deps/linphonecore.Tpo -c linphonecore.c -fPIC -DPIC -o
> > .libs/linphonecore.o
> > linphonecore.c: In function `linphone_call_log_new':
> > linphonecore.c:132: warning: `%c' yields only last 2 digits of year in
> > some loca les
> > make[2]: *** [linphonecore.lo] Error 1
> > make[2]: Leaving directory `/usr/local/src/linphone-1.5.1/coreapi'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/linphone-1.5.1'
> > make: *** [all] Error 2
>
> This is a bug in gcc/glibc. %c is intended and compiler tries to be smarter
> than programmer.
>
> Quotation from strftime(3):
>
> Some  buggy versions of gcc complain about the use of %c: warning: ‘%c’
> yields only last 2 digits of year in some locales.  Of course  program‐
> mers  are  encouraged  to  use %c, it gives the preferred date and time
> representation. One meets all kinds of strange obfuscations to  circum‐
> vent this gcc problem. A relatively clean one is to add an intermediate
> function
>       size_t my_strftime(char *s, size_t max, const char  *fmt,  const
>       struct tm *tm) {
>            return strftime(s, max, fmt, tm);
>       }
>
> -- Petr
>
>
>
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]