Your message dated Wed, 11 Jun 2008 18:16:23 +0200 with message-id <[EMAIL PROTECTED]> and subject line Re: Headers out-of-sync with library has caused the Debian Bug report #485811, regarding Headers out-of-sync with library to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [EMAIL PROTECTED] immediately.) -- 485811: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485811 Debian Bug Tracking System Contact [EMAIL PROTECTED] with problems
--- Begin Message ---Package: libc6 Version: 2.3.6.ds1-13etch5 Hi. On my etch system, the library headers declare the availability of POSIX timers, but clock_gettime is not actually in the library. The attached program fails to compile with /tmp/ccs726Ek.o: In function `main': test.c:(.text+0x20): undefined reference to `clock_gettime' collect2: ld returned 1 exit status (Julien, I'm CC-ing you in case there's something weird on this machine and it turns out it's not actually a bug.) Regards, Juliusz #include <stdio.h> #include <time.h> #include <unistd.h> int main() { #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 int rc; struct timespec ts; rc = clock_gettime(CLOCK_MONOTONIC, &ts); if(rc < 0) perror("clock_gettime"); else printf("POSIX timers OK.\n"); #else printf("No support for POSIX timers.\n"); #endif return 0; }
--- End Message ---
--- Begin Message ---On Wed, Jun 11, 2008 at 18:11:57 +0200, Juliusz Chroboczek wrote: > On my etch system, the library headers declare the availability of > POSIX timers, but clock_gettime is not actually in the library. The > attached program fails to compile with > > /tmp/ccs726Ek.o: In function `main': > test.c:(.text+0x20): undefined reference to `clock_gettime' > collect2: ld returned 1 exit status > > (Julien, I'm CC-ing you in case there's something weird on this machine > and it turns out it's not actually a bug.) > from the manpage: NOTES Most systems require the program be linked with the librt library to use these functions. Looks like you forgot -lrt. Closing as PEBKAC. Cheers, Julien
--- End Message ---

