Debugging X11 Server
Eric Anholt
eta at lclark.edu
Sat May 24 22:25:40 PDT 2003
On Sat, 2003-05-24 at 21:50, Peter Jeremy wrote:
> [Please copy me in any followups]
>
> I'm trying to locate a performance problem in the X server built via
> ports on -STABLE. I thought that adding '-pg' would provide a simple
> way to locate the problematic code but whilst XFree86-4-Server
> compiles with '-pg', it won't run, dying with lots of unresolved
> '.mcount' symbols in /usr/X11R6/lib/modules/fonts/libbitmap.a (and I
> presume that's just the first archive it tries to load). I presume
> the problem is that the runtime loader in XServer can't resolve the
> .mcount that is statically loaded in XFree86.
>
> Does anyone have any suggestions on how to make this work?
You could compile all the modules into the server by adding "#define
DoLoadableServer NO" to your host.conf when you compile XFree86-4-Server
(see scripts/configure for other defines that are added).
--
Eric Anholt eta at lclark.edu
http://people.freebsd.org/~anholt/ anholt at FreeBSD.org
More information about the freebsd-ports
mailing list