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