http://bugs.winehq.org/show_bug.cgi?id=20196
Summary: ntdll fails to link when configured with --without-pthread Product: Wine Version: 1.1.30 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: david@cgp.dk
Created an attachment (id=23811) --> (http://bugs.winehq.org/attachment.cgi?id=23811) link error
ntdll fails to link when wine has been configured with --without-pthread
http://bugs.winehq.org/show_bug.cgi?id=20196
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX
--- Comment #1 from Alexandre Julliard julliard@winehq.org 2009-09-28 16:29:43 --- Don't do that then.
http://bugs.winehq.org/show_bug.cgi?id=20196
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Jeff Zaroyko jeffz@jeffz.name 2009-09-28 19:49:47 --- closing wontfix.
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #3 from David Hallas david@cgp.dk 2009-09-29 01:08:27 --- Would removing the --without-pthread configure option be a plausible fix?
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2009-09-29 04:07:11 --- No, it can be useful in special cases, and some packages use the list of options to detect dependencies.
http://bugs.winehq.org/show_bug.cgi?id=20196
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |silas-wine@flatline.org.uk
--- Comment #5 from Andrew Nguyen arethusa26@gmail.com 2011-02-13 10:03:39 CST --- *** Bug 26088 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=20196
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #6 from Jerome Leclanche adys.wh@gmail.com 2011-02-13 18:14:57 CST --- (In reply to comment #4)
No, it can be useful in special cases, and some packages use the list of options to detect dependencies.
Is there any situation where wine actually compiles --without-pthread? If not, what's the option actually good for?
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #7 from S silas-wine@flatline.org.uk 2011-02-17 07:55:30 CST --- You realise not fixing this means anybody who is still stuck on the Linux 2.4 kernel cannot use WINE 1.2+ (must be stuck on 1.0). pthread requires Linux 2.6.
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #8 from Andrew Nguyen arethusa26@gmail.com 2011-02-20 06:42:55 CST --- (In reply to comment #7)
You realise not fixing this means anybody who is still stuck on the Linux 2.4 kernel cannot use WINE 1.2+ (must be stuck on 1.0). pthread requires Linux 2.6.
I'm very skeptical of this claim, given that pthreads itself is a very old interface, and Wine does claim to hypothetically run on Linux 2.0.36+, which is over ten years old.
I've successfully managed to compile (after slightly modifying server/thread.c) and execute Wine on CentOS 3.9, which sports 2.4.21-63.EL, so I don't see any reason why pthreads needs to be disabled.
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #9 from S silas-wine@flatline.org.uk 2011-02-20 10:28:08 CST --- Well, I get errors related to pthreads when trying to run WINE on a 2.4 kernel on Debian 3.1 "Sarge". Unfortunately I don't have the system to hand at the moment, so I cannot supply the exact error message, but it's definitely about missing ptheads. The exact same WINE build runs fine under the same distribution running a 2.6 kernel; however the hardware I'm trying to make it run on cannot cope with the 2.6 kernel and works only with the 2.4 kernel.
2.4 kernel supports pthreads via LinuxThreads, however see the comment I just added to #24620: "I get the same error message [as the one logged in #24620] when compiling WINE 1.2 or 1.2.2 in a chroot environment set up with an old Debian 3.1 "Sarge" distro, with LD_ASSUME_KERNEL=2.4 set so as to get its glibc 2.3.3 to use LinuxThreads instead of NPTL for pthreads (see "man pthreads")."
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2011-02-21 05:17:07 CST --- LinuxThreads is OK as long as it's using TLS. That's present in the RedHat 2.4 kernels and maybe in some others. If your kernel doesn't have TLS you may have to patch it.
http://bugs.winehq.org/show_bug.cgi?id=20196
--- Comment #11 from S silas-wine@flatline.org.uk 2011-02-21 09:52:56 CST --- Debian Sarge's 2.4 kernel does not support TLS, see http://lists.debian.org/debian-glibc/2004/06/msg00125.html (Debian bug 226716). I can't find the 2.4 TLS patches :-(
I got the error message in WINE bug #24620 when compiling WINE 1.2 or 1.2.2 in a 2.6 kernel but with LD_ASSUME_KERNEL=2.4 (I cannot compile WINE on the destination hardware, so need to cross-compile somehow). As the 2.6 kernel has TLS, I guess the Debian Sarge glibc must itself have issues with LinuxThreads also :-(