Thorsten Glaser
2017-01-25 16:45:14 UTC
found 158969 2.69-10
thanks
Hi *,
I have to reopen this because the documentation is plain wrong
and misleading still:
-- Macro: AC_SYS_LARGEFILE
Arrange for 64-bit file offsets, known as large-file support
(http://www.unix-systems.org/version2/whatsnew/lfs20mar.html). On
some hosts, one must use special compiler options to build programs
that can access large files. Append any such options to the output
variable 'CC'. Define '_FILE_OFFSET_BITS' and '_LARGE_FILES' if
necessary.
ii autoconf 2.69-10 all automatic configure script builder
ii autoconf-doc 2.69-10 all automatic configure script builder documentatio
Looking at the source, AC_SYS_LARGEFILE calls AC_DEFINE_UNQUOTED,
which appends to DEFS (which I agree with Tom Dickey is wrong) as
Florian Weimer said, but — even more confusingly — only when
AC_CONFIG_HEADERS is not used.
If AC_CONFIG_HEADERS is used, the definition is only written to
its output file (config.h by default).
This is even more unfortunate, because now, if any program includes
a glibc system header before "config.h", the definition will be
ignored, because it comes too late.
CPPFLAGS is r̲e̲a̲l̲l̲y̲ the correct place for this. Again.
But that’s a different bug. This issue is about the documentation
being wrong — please fix the documentation and raise this bug upstream
(and this time, don’t let them tell you it’s not a bug because it most
curtainly is).
Thanks,
//mirabilos (current hat: Debian Developer)
thanks
Hi *,
I have to reopen this because the documentation is plain wrong
and misleading still:
-- Macro: AC_SYS_LARGEFILE
Arrange for 64-bit file offsets, known as large-file support
(http://www.unix-systems.org/version2/whatsnew/lfs20mar.html). On
some hosts, one must use special compiler options to build programs
that can access large files. Append any such options to the output
variable 'CC'. Define '_FILE_OFFSET_BITS' and '_LARGE_FILES' if
necessary.
ii autoconf 2.69-10 all automatic configure script builder
ii autoconf-doc 2.69-10 all automatic configure script builder documentatio
Looking at the source, AC_SYS_LARGEFILE calls AC_DEFINE_UNQUOTED,
which appends to DEFS (which I agree with Tom Dickey is wrong) as
Florian Weimer said, but — even more confusingly — only when
AC_CONFIG_HEADERS is not used.
If AC_CONFIG_HEADERS is used, the definition is only written to
its output file (config.h by default).
This is even more unfortunate, because now, if any program includes
a glibc system header before "config.h", the definition will be
ignored, because it comes too late.
CPPFLAGS is r̲e̲a̲l̲l̲y̲ the correct place for this. Again.
But that’s a different bug. This issue is about the documentation
being wrong — please fix the documentation and raise this bug upstream
(and this time, don’t let them tell you it’s not a bug because it most
curtainly is).
Thanks,
//mirabilos (current hat: Debian Developer)
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg