Subject: Re: dlopen() for macppc XFree86 & enabling the "nv" driver by default.
To: None <>
From: Matthias Scheler <>
List: tech-x11
Date: 08/26/2002 14:53:00
In article <>,
	matthew green <> writes:
> to get X working on my G4 tower i had to enable the "nv" driver for
> the macppc (and more) XFree86.  this works OK for me, except that
> for the following files, i had to add a patch (copied from elsewhere
> in the xc tree) like:
> 	+ #ifndef MAXSHORT
> 	+ #define MAXSHORT      32767
> 	+ #endif

This symbol gets defined at various places in the XFree86 sources. You
obviously need to find the relevant header file for the Xserver where
this should get defined but doesn't.

> i also have tested this configuration with the dlopen() support for
> all "drivers" in XFree86.  this is a pretty huge difference:
> -rws--x--x  1 root  wheel  7738708 Aug 21 00:49 /usr/X11R6.working/bin/XFree86*
> -rws--x--x  1 root  wheel  2042426 Aug 22 14:36 /usr/X11R6/bin/XFree86*
> with this as a new directory (in kilobytes):
> 	9434    /usr/X11R6/lib/modules

Looks like the correct way to go.

> i'd like to commit both of the changes in the patch below,

They look good.

> but i am much less sure about the MAXSHORT problem.

See above.

	Kind regards

Matthias Scheler