[Top][All Lists]

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

Re: ac_sys_largefile / fseeko problem

From: Akim Demaille
Subject: Re: ac_sys_largefile / fseeko problem
Date: Wed, 27 Aug 2003 09:32:25 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 > Akim Demaille wrote:
 >> Hi Guido,
 >> is there anything in that discussion that ought become part of the
 >> function portability section in Autoconf?  Thanks!

Thanks a lot.  I'm installing your following patch.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * doc/autoconf.texi (AC_FUNC_FSEEKO, AC_SYS_LARGEFILE): More
        From Guido Draheim.

Index: doc/autoconf.texi
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.755
diff -u -u -r1.755 autoconf.texi
--- doc/autoconf.texi 26 Aug 2003 07:36:39 -0000 1.755
+++ doc/autoconf.texi 27 Aug 2003 07:28:36 -0000
@@ -3773,7 +3773,11 @@
 @c @fuindex fseeko
 @prindex @code{fseeko}
 If the @code{fseeko} function is available, define @code{HAVE_FSEEKO}.
-Define @code{_LARGEFILE_SOURCE} if necessary.
+Define @code{_LARGEFILE_SOURCE} if necessary to make the prototype
+visible on some systems (e.g. glibc 2.2). Otherwise linkage problems
+may occur when compiling with @code{AC_SYS_LARGEFILE} on
+largefile-sensitive systems where @code{off_t} does not default to a
+64bit entity.
 @end defmac
@@ -5816,6 +5820,12 @@
 large-file support is enabled.  For example, it is not correct to print
 an arbitrary @code{off_t} value @code{X} with @code{printf ("%ld",
 (long) X)}.
+The LFS introduced the @code{fseeko} and @code{ftello} functions to
+replace their C counterparts @code{fseek} and @code{ftell} that do not
+use @code{off_t}. Take care to use @code{AC_FUNC_FSEEKO} to make their
+prototypes available when using them and large-file support is
 @end defmac

reply via email to

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