This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]