Am 23.11.2008 um 19:32 schrieb Jeremy Huddleston:
First, why is DISPLAY=:0 in your environment? It should be empty.
On Panther and Tiger it is necessary to give every user its own DISPLAY. A shell script determines whether an X server is running. If not, DISPLAY is written into ~/.MacOSX/environment.plist. If at least one is running, DISPLAY's value is not :0 but the number of X servers already running. (I'll fix it!)
Was there anything more that happened after that? On Leopard, when I do that (with launchd disables):
Not when DISPLAY was set. When I launched Xquartz directly, I saw for a short time a form pop up. When it's unset I get: /usr/X11/bin/Xquartz :0 Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/ MacOS/X11 --listenonly X11.app: main(): argc=2 argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11 argv[1] = --listenonly Waiting for startup parameters via Mach IPC. X11.app: do_start_x11_server(): argc=2 argv[0] = /usr/X11/bin/Xquartz argv[1] = :0 2008-11-24 00:08:51.743 X11[1860] Could not connect the action apps_table_cancel: to target of class X11Controller X11.app: Debug Info: kKLuchrData fallback failed, trying kKLKCHRData. If you are using a 3rd party keyboard layout, please see http:// xquartz.macosforge.org/trac/ticket/154 X11.app: Fallback succeeded, but this is still a bug. Please report the above information. Xquartz starting: X.Org X Server 1.4.2-apple24 Build Date: 20081123 (EE) XKB: Couldn't open rules file /usr/X11R7.4/share/X11/xkb/rules/base (EE) XKB: Couldn't open rules file /usr/X11R7.4/share/X11/xkb/rules/base Could not init font path element /usr/X11R7.4/lib/X11/fonts/misc/, removing from list! Could not init font path element /usr/X11R7.4/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R7.4/lib/X11/fonts/OTF, removing from list! Could not init font path element /usr/X11R7.4/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R7.4/lib/X11/fonts/100dpi/, removing from list! Could not init font path element /usr/X11R7.4/lib/X11/fonts/75dpi/, removing from list! Could not init font path element /Library/Fonts, removing from list! Could not init font path element /System/Library/Fonts, removing from list! Fatal server error: could not open default font 'fixed' AbortDDX Quitting Xquartz... Xquartz: start_x11_server: (ipc/mig) server died Exit 1 When I try: "open /Applications/Utilities/X11.app" I get in Console: X11.app: main(): argc=2 argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11 argv[1] = -psn_0_9961473 Waiting for startup parameters via Mach IPC. X11.app: Could not connect to server (DISPLAY is not set). Starting X server. X11.app: Launching /usr/X11/bin/startx: argv[0] = /usr/bin/login argv[1] = -fp argv[2] = pete argv[3] = /bin/sh argv[4] = -c argv[5] = /usr/X11/bin/startx Last login: Mon Nov 24 00:24:30 on tty?? Welcome to Darwin! You have new mail. Warning: no access to tty (Inappropriate ioctl for device). Thus no job control in this shell. X11 is running. When I now invoke Xquartz for a short time a form is visible. Then X11 also finishes. Nothing more happens, because I failed to install xinit in a privileged environment. Doing so installs in /usr/X11/bin: -rwxr-xr-x 1 root admin 6942 24. Nov 00:17 startx -rwxr-xr-x 1 root admin 24664 24. Nov 00:17 xinit Building in app/xinit/privileged_startx fails: server.c: In function ‘server_main’: server.c:103: error: ‘LAUNCH_JOBKEY_MACHSERVICES’ undeclared (first use in this function) server.c:103: error: (Each undeclared identifier is reported only once server.c:103: error: for each function it appears in.) server.c: In function ‘do_privileged_startx’: server.c:168: warning: passing argument 1 of ‘fts_open’ from incompatible pointer type make[1]: *** [server.o] Error 1 make: *** [all] Error 2 Leopard again ...
It looks like it's failing because of missing font caches.
I tried the X11 utilities and I also tried fc-cache. There was /usr/ X11/bin/fc-cache built (I used a Fink version).
Try running this to rebuild the font cache: sudo /usr/X11/bin/font_cache
This programme fails to build ... Is it in another package?
Xdriinfo dies with a crash because it was badly built; otool -L lists:
/usr/X11R7.4/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0) ==? libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
Yeah, I thought I fixed that in Mesa-7.0.4 though... Are you using 7.0.4?
I am. I even did it build and install twice, then with the "fixed" Mesa bin/mklib script. Mesa-7.2.0 bin directory has additional config.* and version.mk files.
Do you have a diff of the original build.sh with your changes that I can use as reference when fixing up build.sh for others to use?
I'll send you privately the two scripts I am using! -- Greetings Pete Rain is saved up in cloud banks.