pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45610: wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1
The following reply was made to PR pkg/45610; it has been noted by GNATS.
From: Nat Sloss <nathanialsloss%yahoo.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/45610: wine 1.2.3 doesn't run on NetBSD 5.0.1 or 5.1
Date: Fri, 18 Nov 2011 17:14:28 +1100
Hi,
I have a fix for this bug.
It seems the problem was that the main wine binary was linked against
libpthread and contains no pthread code. Using gdb I found that it was
getting stuck at TESTCANCEL(self) in libpthread before calls to read and
write. The debug messages also reported of stack overruns for the wine and
wineboot processes.
So the solution was not to link the main wine binaries to libpthread. Wine is
still pthreaded as ntdll links against libpthread and I can confirm this
through top showing 200% cpu usage for broken windows programs.
So here is the patch:
$NetBSD$
--- loader/Makefile.in.orig 2011-04-08 17:09:51.000000000 +0000
+++ loader/Makefile.in
@@ -32,7 +32,7 @@ all: $(MAIN_BINARY) wine-installed $(EXT
@MAKE_RULES@
-LIBPTHREAD = @LIBPTHREAD@
+LIBPTHREAD =
LDEXECFLAGS = @LDEXECFLAGS@
wine-preloader: preloader.o Makefile.in
This patch was also applied to wine-devel and it would also work (wine-devel
has other problems under NetBSD 5.0.1 and I will submit additional bug
reports and fixes for them.)
With the patch applied winecfg starts in about 2 seconds and all features
work. I've tested it with firefox and built-in programs such as notepad and
winmine and it works as expected.
Regards,
Nat.
Home |
Main Index |
Thread Index |
Old Index