Your message dated Sun, 11 Jan 2009 09:28:11 +0100 with message-id <[email protected]> and subject line Re: Bug#353031: has caused the Debian Bug report #353031, regarding posix_fadvise defines missing 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.) -- 353031: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353031 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: libc6 Version: 2.3.6-1 Severity: normal >From the man page: ---------------------------------------------------------------- NAME posix_fadvise - predeclare an access pattern for file data SYNOPSIS #include <fcntl.h> int posix_fadvise(int fd, off_t offset, off_t len, int advice); ---------------------------------------------------------------- My test program: ---------------------------------------------------------------- #include <fcntl.h> int main (int argc, char *argv[], char* envp[]) { posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL); } ---------------------------------------------------------------- The result: ---------------------------------------------------------------- bash-3.00$ gcc -Wall pfa.c pfa.c: In function 'main': pfa.c:4: warning: implicit declaration of function 'posix_fadvise' pfa.c:4: error: 'POSIX_FADV_NORMAL' undeclared (first use in this function) pfa.c:4: error: (Each undeclared identifier is reported only once pfa.c:4: error: for each function it appears in.) pfa.c:5: warning: control reaches end of non-void function ---------------------------------------------------------------- This seems to be a problem related to the "features.h" stuff. If I define _POSIX_C_SOURCE to 200112L then it works but then random other system functions aren't defined. (specifically "random" and "srandom"). -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-rc4 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) -- no debconf information
--- End Message ---
--- Begin Message ---Michael Kerrisk wrote: > tags 353031 fixed-upstream > thanks > > I'm a little puzzled by this bug report, which I missed when it > originally was assigned to man-pages. Even back at the beginning of > 2006, the man-pages clearly documents the needed feature test macro: > > #define _XOPEN_SOURCE 600 > > And nowadays the SEE ALSO of the man page also lsits > feature_test_macros(7) under the SEE ALSO. > > From my (upstream) point of view, this bug should be closed. Fixed in 3.15-1 at least. Regards, Joey -- This is GNU/Linux Country. On a quiet night, you can hear Windows reboot. Please always Cc to me when replying to me on the lists.
--- End Message ---

