[Zope] Problem with big Data.fs in Zope(2.5.1/Python-2.1.3) and large file support on linux
Sven Rudolph
rudolph@medical-tribune.de
Mon, 6 Jan 2003 17:12:28 +0100
Hello
I have a problem with a big Data.fs in Zope(2.5.1/Python-2.1.3) and large file support on linux.
I tried to recompile Python with the following steps:
export CC='gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64'
rm config.cache
./configure --prefix=/export/home/www/medizin/local2 --with-large-file-support --with-thread --with-threads --with-lfs --with-large-file
(it's a privat installation of the user "medizin", not system wide)
make clean
make
make install
On our test server (Debian 3.0 Woody) everything works fine, and "test_largefile.py" says:
<quote>
create large file via seek (may be sparse file) ...
2500000001L =?= 2500000001L ... yes
check file size with os.fstat
check file size with os.stat
2500000001L =?= 2500000001L ... yes
play around with seek() and read() with the built largefile
0L =?= 0 ... yes
'\x00' =?= '\x00' ... yes
1L =?= 1 ... yes
0L =?= 0 ... yes
0L =?= 0 ... yes
42L =?= 42 ... yes
42L =?= 42 ... yes
84L =?= 84 ... yes
84L =?= 84 ... yes
2500000001L =?= 2500000001L ... yes
2499999991L =?= 2499999991L ... yes
0L =?= 0 ... yes
2500000000L =?= 2500000000L ... yes
'a' =?= 'a' ... yes
play around with os.lseek() with the built largefile
0L =?= 0 ... yes
42L =?= 42 ... yes
84L =?= 84 ... yes
84L =?= 84 ... yes
2500000001L =?= 2500000001L ... yes
2499999991L =?= 2499999991L ... yes
0L =?= 0 ... yes
2500000000L =?= 2500000000L ... yes
'a' =?= 'a' ... yes
@test exists: 0
</quote>
This seems to be OK.
But the same procedure on our live server (RedHat 7.3 Valhalla) says:
...
make install
=> make: *** [libinstall] Error 1
And "test_largefile.py" says:
<quote>
Traceback (most recent call last):
File "test_largefile.py", line 22, in ?
raise test_support.TestSkipped, \
test_support.TestSkipped: platform does not have largefile support
</quote>
The first thing I thought about was that I can not call "make install" while Zope (or any python process) is still running. So I stopped Zope and tried "make install" again, but with the same error message.
Note that the old Python version (2.1.3 without large file support) was compiled by me on the same computer (RH 7.3), with no problems.
Can anybody help me? Any hints?
Many thanks in advance
Sven Rudolph
--
Sven Rudolph, Programmierer
Medical Tribune Verlagsgesellschaft mbH
Unter den Eichen 5, 65195 Wiesbaden
Tel.: 06 11 / 97 46 25 2