[Wine]Re: Wine and FreeBSD
Jason But
jbut at swin.edu.au
Tue Jan 18 17:35:43 CST 2005
Some results, unfortunately not promising. The next step will be to try the
kernel patch as well, maybe over the weekend if I find a spare hour or two
Jason
> ----------------------------------------------------------------------------
>If you want to give it a try, there are two things you could change in
> libs/wine/mmap.c, where there currently is specific code for FreeBSD.
>
> 1) #ifdef __FreeBSD__
> /* Even FreeBSD 5.3 does not properly support NULL here. */
> if( start == NULL ) start = (void *)0x110000;
> #endif
>
> Does anything change/improve if you reduce 0x110000?
I was able to decrease it to 0x8000 and it appeared to run as before. The
situation didn't improve but no further errors were reported. I am not sure
if this is due to the mmap of System Heap failing and therefore we never get
to test this properly or whether we can indeed lower the base value.
>
> 2) void mmap_init(void)
> {
> struct reserved_area *area;
> struct list *ptr;
> #if defined(__i386__) && !defined(__FreeBSD__) /* commented out until
> FreeBSD gets fixed */
>
> Does anything change/improve if you remove the "&& !defined(__FreeBSD__)"?
This certainly does change things - it breaks it even more :-)
Running any wine-app fails with the error message
wine: failed to initialize: /usr/local/lib/wine/ntdll.dll.so: mmap of entire
address space failed: Cannot allocate memory
More information about the wine-users
mailing list