Bug#526600: manpages-dev: nftw manual page says to define _XOPEN_SOURCE but ftw.h uses __USE_XOPEN_EXTENDED

2009-05-01 Thread Paul Wise
Package: manpages-dev
Version: 3.05-1
Severity: normal

The nftw manual page says to define _XOPEN_SOURCE but ftw.h from glibc
2.7 in lenny and glibc 2.9 in sid uses __USE_XOPEN_EXTENDED. This leads
to code that uses nftw failing to build. No idea which one is correct
according to the standards, but the manual page should not give advice
that does not work.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (550, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages manpages-dev depends on:
ii  manpages  3.05-1 Manual pages about using a GNU/Lin

Versions of packages manpages-dev suggests:
ii  konqueror [man-browser] 4:3.5.9.dfsg.1-6 KDE's advanced file manager, web b
ii  man-db [man-browser]2.5.2-4  on-line manual pager

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#526600: manpages-dev: nftw manual page says to define _XOPEN_SOURCE but ftw.h uses __USE_XOPEN_EXTENDED

2009-05-01 Thread Michael Kerrisk
Hello Paul,

On Sat, May 2, 2009 at 4:50 PM, Paul Wise p...@debian.org wrote:
 Package: manpages-dev
 Version: 3.05-1
 Severity: normal

 The nftw manual page says to define _XOPEN_SOURCE

More precisely, it says:

#define _XOPEN_SOURCE 500

 but ftw.h from glibc
 2.7 in lenny and glibc 2.9 in sid uses __USE_XOPEN_EXTENDED. This leads
 to code that uses nftw failing to build.

Not sure whay that should happen, but so far I don't think it's a man
page problem.

 No idea which one is correct
 according to the standards, but the manual page should not give advice
 that does not work.

As far as I can see, the ftw(3) man page is correct.  Have a read of
feature_test_macros(7) and features.h.  If after that you still
think there's a problem, drop a note into this bug.

Thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org