seg fault compiling wine
Sebastian 'yath' Schmidt
yathen at web.de
Sat Aug 31 09:01:51 CDT 2002
On Tue, May 07, 2002 at 08:40:20PM -0500, Mason Kidd wrote:
> Hi everyone,
Hi,
> I'm getting a segmentation fault compiling wine. This is the error
> message:
> [...]
I got the same error.
> wine-20020411 release of wine and got the same error. I am assuming
> that
> there is something wrong with my setup, because I compiled the CVS
> source about 2 weeks ago without problems, which was after the
> wine-20020411 release. Any ideas?
It seems the configure-script is broken; it detects mmap64(), but there
isn't mmap64(). So size_t gets 32 bits and off_t 64 bits. fstat()
returns a structure with a member of type off_t, which is handed over to
mmap(), which wants a size_t. mmap() gets 0 as size, returns a
NULL-pointer, and in check_header(), where get_dword() the program
receives a segmentation fault.
Fix: change the "#define _FILE_OFFSET_BITS 64" in config.h to "#undef
_FILE_OFFSET_BITS" and recompile.
Sebastian
--
pub 1024D/5A13B048 2001-08-28 Sebastian Schmidt (yath) <yathen at web.de>
Key fingerprint = 8D25 C96B 3DE0 C7D0 AE01 6824 BC15 6273 5A13 B048
VI VI VI The editor of the beast.
More information about the wine-devel
mailing list