[Top][All Lists]

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

[Linphone-users] Re: Speex problems again

From: Petr Pisar
Subject: [Linphone-users] Re: Speex problems again
Date: Mon, 18 Dec 2006 16:27:56 +0000 (UTC)
User-agent: slrn/ (Linux)

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 
> 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
      size_t my_strftime(char *s, size_t max, const char  *fmt,  const
      struct tm *tm) {
           return strftime(s, max, fmt, tm);

-- Petr

reply via email to

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