Subject: Re: XFree86 on an iMac
To: leo <leonardo.disanto@gmail.com>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 08/19/2005 07:01:41
--Signature_Fri__19_Aug_2005_07_01_41_-0400_UzqN4uvGC+xcu89Q
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> it is possible to to build the xserver with debugging information and
> then launch it with gdb (from another machine) ?

Sure. But the catch is you won't get function names / debugging
information for modules loaded at runtime, like the ati driver. For this
you'd have to build a monolithic Xserver. I think it's easier to just
add a couple of xf86Msg()s.

> maybe I can see where exacty the monitor goes off, I have never
> debugged such a big program and I understand that it have a  platform
> indipendent dynamic loader too...

It's easy to build a monolithic Xserver the traditional way ( via make
World in xsrc/xfree/xc ) - just put something like this into your
host.cf ( in config/cf/ ):

#define BuildDebug              YES
#define XF86CardDrivers         ati
#define DoLoadableServer        NO
#define BuildFonts              NO

... and then make World. This will build the whole thing with debug
information, link the whole Xserver into one big binary and include only
the ati driver ( no need to link in all the other drivers you don't use
). Since you have the fonts installed there's no need to rebuild them
either. When it's done - make install.

In theory you could also do
#define BuildServersOnly        YES
... to build only the Xserver but for some reason this choked on my
machines with XFree86 4.5 while it worked fine with 4.4 - didn't bother
to investigate yet. My S900 ( with a 300MHz G3 ) builds X in less than
2h or so on a local disk, hard to tell how your iMac will do - my CPU
has more cache but a slower bus, more RAM and SCSI vs. IDE...

To get the source do
setenv CVSROOT ":pserver:anoncvs@anoncvs.netbsd.org:/cvsroot"
( or whatever is appropriate for whatever shell you're using )
cvs login
( use 'anoncvs' as password )
cvs checkout xsrc
( make sure you do this from a directory where you have enough space for
the X sources, object files and so on. After building it will eat about
500MB )

... or see here http://www.netbsd.org/Documentation/current/ for a
longer description.

have fun
Michael

--Signature_Fri__19_Aug_2005_07_01_41_-0400_UzqN4uvGC+xcu89Q
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQwW8FcpnzkX8Yg2nAQKlRggAntZaGNKwI21hasuycOzde78CmCyeRvfY
WSGPqHHTqJaLGKNu9qhg2gaZ6ruCm6qgJVMlbrxNCmSkjx1l5cR+Ip2d0qX3TzeA
cJFxzlt8jiI1Yu0Yvf2cmFVGGNU/g1TD031n7UkQNojU6ELzyjts9mccHS72ELFr
epbXw8FRA8QAHYpwItsngnCat/GANmJqtE+C4+zef5GI3tKBl+0Ijby2dCcl/Lv+
7c+bTcGMTKNnnUBCMapCl6X9bX7v/E60smIKIGB17n6zgxmc1GfNJhoxZO9lMv/u
gwNJynkgkKwnfb5/ebplBI17kdpp4/8GT/3u5cM0Zp0sgcR3u7+Ebg==
=zG1s
-----END PGP SIGNATURE-----

--Signature_Fri__19_Aug_2005_07_01_41_-0400_UzqN4uvGC+xcu89Q--