[issue11184] test_io error on AIX

2011-02-11 Thread Sébastien Sablé
Sébastien Sablé added the comment: test_largefile complains about the filesystem having no largefile support. It is probably the case, I will ask a sysadmin, and see if he can get me a file system with large file support so that I can test this feature. > ./python -Wd -E -bb ./Lib/test/test_l

[issue11184] test_io error on AIX

2011-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. > The test fails in a different way now: > [...] > IOError: [Errno 27] File too large This seems to mean that your file system isn't configured for large files. According to http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?

[issue11184] test_io error on AIX

2011-02-11 Thread Sébastien Sablé
Sébastien Sablé added the comment: Sorry I made a mistake in my previous patch (_LARGEFILES instead of _LARGE_FILES). Here is a better one: Index: configure.in === --- configure.in(révision 88395) +++ configure.in

[issue11184] test_io error on AIX

2011-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, interesting. Can you post the results of the two following snippets: >>> f = open('foo', 'wb') >>> f.seek(2**32) # should be 4294967296 >>> f = open('foo', 'wb') >>> f.truncate(2**32) # should be 4294967296 -- ___

[issue11184] test_io error on AIX

2011-02-11 Thread Sébastien Sablé
Sébastien Sablé added the comment: the error is different now that _LARGEFILES is defined: == ERROR: test_large_file_ops (__main__.CIOTest) -- Traceback (most

[issue11184] test_io error on AIX

2011-02-11 Thread Sébastien Sablé
Sébastien Sablé added the comment: OK, so the following patch should help: Index: configure.in === --- configure.in(revision 88393) +++ configure.in(working copy) @@ -1375,6 +1375,8 @@ if test "$use_lfs" = "yes";

[issue11184] test_io error on AIX

2011-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently AIX needs a specific #define to enable large file support: http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.genprogc/doc/genprogc/prg_lrg_files.htm Python defines _LARGEFILE_SOURCE by default. -- __

[issue11184] test_io error on AIX

2011-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, strange. Is it a 32-bit build? Is HAVE_LARGEFILE_SUPPORT defined in pyconfig.h? -- nosy: +pitrou ___ Python tracker ___ _

[issue11184] test_io error on AIX

2011-02-11 Thread Sébastien Sablé
New submission from Sébastien Sablé : I get 2 errors when running test_io.py with trunk on AIX. == ERROR: test_large_file_ops (__main__.CIOTest) -- Traceback (