GNOME Bugzilla – Bug 71410
glib lacks large file support
Last modified: 2004-12-22 21:47:04 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.
Created attachment 6710 [details] [review] proposed change to configure.in
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.
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.