Subject: Re: modular-xorg-server-1.2.0: additional patches
To: None <pkgsrc-users@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: pkgsrc-users
Date: 01/25/2007 19:21:12
On Thu, Jan 25, 2007 at 12:52:05PM -0500, Blair Sadewitz wrote:
> Wow, I never would've guessed that it wasn't supposed to link against
> pthread, as its configure script seems to explicitly try to do this;
> am I missing something here?

No, it doesn't. Please check again -- it first looks for pthread_self in
libc and fallbacks only if it doesn't exist. Those are the thread stubs
I was talking about (in private mail for the poor rest).

> One more thing that I've noticed is that xorg-server does not include
> any sane CPPFLAGS/LDFLAGS for GL/GLX.  It tries to glean them from
> glproto.pc and glitz-glx.pc (?), but the default distribution never
> provides them.  I do not understand the logic of this.

I'll clean this up. Matthias and I are discussing the correct handling.

> I will get you the build log with -Wall soon, and appreciate your
> offer to look through it, as I was going to build it with -Werror and
> try to fix the stuff myself, but you would be a lot more apt to do
> this than I.

Don't even try the -Werror approach -- you'll get insane. Too many
errors.

> Insofar as I understand the issue, x86emu is necessary on non-i386
> platforms to use many video cards, however dysfunctional, antiquated,
> and/or nonexistent the int10 layer's support for extended BIOS calls
> may be.  For me (using the i810 driver with the 945G), the only thing
> it gets right is VBE 2.0 calls.  The rest are deemed "unsupported",
> and so delightfully my 80x50 text mode is not restored when the server
> exits.  I once used server 1.1.99.903 with the CVS version of
> xf86-video-intel and the 80x50 mode was restored, but alas it seems my
> joy was short-lived. :(  I wonder whether this problem is due to
> x86emu itself or 64-bit problems, but my money's on the former.  I
> wonder if windows XP 64-bit uses a real-mode emulator ...

I haven't checked whether or not the VESA 2.0 protected mode extension
is supposed to work in 64bit mode or whether it can be made to do so.
That would be the best appraoch. The x86emu is needed when you have to
use the BIOS to get e.g. timings for video cards, but I don't know
whether it is still needed for *current* hardware. As most of the older
cards which did need it (and often had issues for the same reason) are
unlikely to pop up with AMD64 support, I'm not sure how pressing that
is.

Others are more likely to be helpful on the VESA thingie, e.g. our
master of wsfb could be.

Joerg