[uClibc] Problem compiling VDR (is timegm implemented?)

Manuel Novoa III mjn3 at codepoet.org
Sat May 8 05:16:28 UTC 2004


On Mon, May 03, 2004 at 02:55:56PM +0200, Davide wrote:
> If I grep for timegm in /usr/include, I find it'n in time.h but it's ifdefed 
> out:
> 
> #if 0
> /* Like `mktime', but for TP represents Universal Time, not local time.  */
> extern time_t timegm (struct tm *__tp) __THROW;
> #endif
> 
> Is this function actually implemented? If I ifdef it in, the function 
> compiles, but a few lines after I get:
> 
> ./libsi/libsi.a(util.o)(.text+0x891): In function 
> `SI::DVBTime::getTime(unsigned char, unsigned char, unsigned char, unsigned 
> char, unsigned char)':
> /opt/mediabox/sources/vdr/vdr-1.3.6/libsi/util.c:208: undefined reference to 
> `timegm'
> collect2: ld returned 1 exit status
> make: *** [vdr] Error 1
> 
> Do you have any suggestions on how to make that code compile?

I added timegm() to cvs today, along with a couple of other time code changes.

Manuel



More information about the uClibc mailing list