autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles


From: Jim Meyering
Subject: _XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles
Date: 05 Nov 2000 12:08:32 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Hi Paul,

The part of AC_SYS_LARGEFILE that does this:

  _AC_SYS_LARGEFILE_MACRO_VALUE(_XOPEN_SOURCE, 500,
    ac_cv_sys_xopen_source,
    [Define to make ftello visible on some hosts (e.g. glibc 2.1.3).],
    address@hidden:@include <stdio.h>], [return !ftello;])

breaks the build of fileutils on OSF1 V5.0 systems.
The problem is that defining _XOPEN_SOURCE to 500 inhibits
the definition of types like u_char which are used unprotected
in some other header files.

Is the definition of _XOPEN_SOURCE solely to get the declaration
of ftello?  If so, an alternative would be to provide a declaration
of that function so that every source file using ftello gets it.
Obviously, that's more invasive in that it requires source code
changes to add the declaration, but maybe it's worth it.

Ideally, autoconf would be able to determine the proper declaration
and emit it into a file (perhaps included by config.h) that would
automatically be included by every source file.  (this is starting
to sound like Akim's `autosystem' :-)

Of course, I can work around the compile failures by configuring
with --disable-largefile, but that seems excessive.

Paul Eggert <address@hidden> wrote:
|    From: Akim Demaille <address@hidden>
|    Date: 07 Jun 2000 17:22:02 +0200
|
|    # _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
|    #                               CACHE-VAR
|    #                               DESCRIPTION,
|    #                               [INCLUDES], [FUNCTION-BODY])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]