gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] Thread-safe libgfortran (PRs fortran/14943 and fortran/21647

Subject: Re: [PATCH] Thread-safe libgfortran PRs fortran/14943 and fortran/21647
From: David Edelsohn
Date: Tue, 22 Nov 2005 10:53:13 -0500
>>>>> Steve Kargl writes:

Steve> Sorry about the problem.  Is bootstrap broken for AIX
Steve> on mainline as well?

        Yes, bootstrap is broken on mainline as well.

        Something about the patch is causing internal prototype conflicts
in the AIX header files for size_from_kind.c.

In file included from
/farm/dje/src/src/libgfortran/../gcc/gthr-posix.h:44,
                 from /farm/dje/src/src/libgfortran/../gcc/gthr-aix.h:33,
                 from ../../../gcc/gthr-default.h:1,
                 from /farm/dje/src/src/libgfortran/../gcc/gthr.h:114,
                 from /farm/dje/src/src/libgfortran/io/io.h:39,
                 from
                 /farm/dje/src/src/libgfortran/io/size_from_kind.c:34:
/usr/include/unistd.h:171: error: conflicting types for 'lseek64'
/usr/include/unistd.h:169: error: previous declaration of 'lseek64' was
here

        The header file includes:

#ifdef _LARGE_FILES
#define lseek lseek64
#endif
...
#ifdef _LARGE_FILE_API
extern off64_t  lseek64(int, off64_t, int);
#endif

        libgfortran/config.h defines _LARGE_FILES for both the default and
the pthread multilib.  _LARGE_FILE_API is being defined somewhere for the
pthread multilib after Jakub's patch.

David

<Prev in Thread] Current Thread [Next in Thread>