Re: current winex CVS doesn't compile (ntdll)
Bryan Kadzban <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Indeed I use gcc 2.95. > - I can't upgrade to 3.x because it requires a recent glibc How recent? I've got it running just fine (gcc 3.2.2, but I used to use just plain 3.2) with glibc 2.2.5... unless you're still using 2.1.X or 2.0.X? Not that it matters, as the configure.ac test shouldn't be misdetecting it (which is what I'd put money on anyway). > - I won't upgrade to 3.x because it's slower, and usually doesn't > generate significantly faster code, not to mention its bugs we have > encountered while developing MPlayer > I thought the only bugs with gcc 3.X were with 3.0.X? I've compiled MPlayer CVS multiple times (I'll "cvs up" it about every couple months and recompile) with no problems at all, using either gcc 3.2 or 3.2.2. Of course, I am using Linux on x86, so if there are bugs with other architectures, then of course I wouldn't see them. ;-) But again, this is really beside the point -- the problem is most likely in configure.ac. > I hope you'll be able to pinpoint the reason of the failure. I'm > willing to test it anytime. > WineX does try to test for the compiler understanding __builtin_expect while running configure, so I'm thinking it's just misdetecting. Oh, hang on, I think I know *why* it's misdetecting. The test is using AC_TRY_COMPILE, not AC_TRY_LINK, while the failure is happening at link time (so gcc 2.95 obviously groks -- or at least fakes grokking -- __builtin_expect at compile time). It might be worth a shot to update configure.ac to use AC_TRY_LINK on line 748 (at least, it's line 748 in the CVS from about ten minutes ago), and regenerate the configure script. It "worked" for me, using autoconf 1.6, and the above mentioned versions of whatever else -- at least, the config.log looked like it tried to link rather than just compile when it did that test. I'd give it a shot. If it works for you, then see about getting the change into WineX CVS. Bryan ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0