After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 71410 - glib lacks large file support
glib lacks large file support
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
1.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2002-02-13 20:54 UTC by Sven Neumann
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed change to configure.in (704 bytes, patch)
2002-02-13 20:59 UTC, Sven Neumann
none Details | Review

Description Sven Neumann 2002-02-13 20:54:02 UTC
We've discovered that for some obscure reasons g_file_test() fails on
files larger than 2GB. I also expect g_io_channel_seek() to fail since
it uses off_t. A clean and simple solution to this problem would be to
add AC_SYS_LARGE_FILE to configure.in.  This macro would also allow to
easily disable large file support using the --disable-largefile
configure option. Unfortunately autoconf-2.13 does not support
AC_SYS_LARGE_FILE. Attached is a patch with the necessary changes to
configure.in.

It should be evaluated if pango, atk and gtk+ need a similar change.
Comment 1 Sven Neumann 2002-02-13 20:59:26 UTC
Created attachment 6710 [details] [review]
proposed change to configure.in
Comment 2 Owen Taylor 2002-02-13 22:47:08 UTC
g_io_channel_seek() uses a glong as it's argument, not a
gint64, so even with large file support, it isn't going
to handle large files.
Comment 3 Owen Taylor 2002-02-15 16:51:32 UTC
Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
        (#71410, Sven Neumann)

        * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
        Change offset type for g_io_channel_seek[_position] to
        gint64.