On Tue, Jun 12, 2001 at 07:11:01AM -0400, lawson_whitney@juno.com wrote:
On 11 Jun 2001, Alexandre Julliard wrote:
Mike McCormack mike_mccormack@start.com.au writes:
i have found a problem with Wine and the Linux 2.4.5 Kernel. The Kernel no longer return EINVAL when offsets are not page aligned... it simply does the mapping ignoring the lower bits of the offset. This small patch fixes that problem.
That's a glibc bug IMO. What version are you using?
glibc-2.1.3 with kernel 2.4.x (no problem with 2.2.x, no problem with 2.4.x using without _FILE_OFFSET_BITS 64 (I have the same symptoms, I think - want ot do some tests to be sure.))
Could you please apply following check to configure.in, then do: autoconf rm config.cache ./configure
and check whether mmap64 detects as 'no' and check the output of config.log ?
Ciao, Marcus
Index: configure.in =================================================================== RCS file: /home/wine/wine/configure.in,v retrieving revision 1.208 diff -u -r1.208 configure.in --- configure.in 2001/06/08 19:34:57 1.208 +++ configure.in 2001/06/12 11:43:33 @@ -538,6 +542,10 @@ ) { exit(1); } + if (-1!=mmap(0,2,PROT_READ|PROT_WRITE,MAP_SHARED,fd,2)){ + fprintf(stderr,"mapped at non aligned offset?\n"); + exit(2); + } close(fd); fprintf(stderr,"success!\n"); exit(0);