On Nov 23, 2008, at 08:53, Peter Dyballa wrote:
Am 23.11.2008 um 16:00 schrieb xquartz-dev-request@lists.macosforge.org :
/usr/X11/bin/Xquartz was built, and also /Applications/Utilities/ X11.app/Contents/MacOS/X11!
They don't work!
When I invoke in shell
/Applications/Utilities/X11.app/Contents/MacOS/X11
I get:
X11.app: main(): argc=1 argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11 X11.app: Could not connect to server (DISPLAY=":0", unsetting). Starting X server.
First, why is DISPLAY=:0 in your environment? It should be empty.
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 Waiting for startup parameters via Mach IPC.
So X11.app should be executing /usr/X11/bin/startx at this point which should take care of running xinit to start both /usr/X11/lib/X11/xinit/ xinitrc (to start the client) /usr/X11/bin/Xquartz (to start the server). /usr/X11/bin/Xquartz tells X11.app how to start using Mach-IPC. Was there anything more that happened after that? On Leopard, when I do that (with launchd disables): DISPLAY="" /Applications/Utilities/X11.app/Contents/MacOS/X11 X11.app: main(): argc=1 argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11 Waiting for startup parameters via Mach IPC. X11.app: Could not connect to server (DISPLAY="", unsetting). Starting X server. X11.app: Launching /usr/X11/bin/startx: argv[0] = /usr/bin/login argv[1] = -fp argv[2] = jeremy argv[3] = /bin/sh argv[4] = -c argv[5] = /usr/X11/bin/startx Last login: Sat Nov 22 20:55:27 on ttys002 font_cache: Scanning user font directories to generate X11 font caches xauth: creating new authority file /Users/jeremy/.serverauth.80335 font_cache: Updating FC cache waiting for X server to begin accepting connections X11.app: do_start_x11_server(): argc=4 argv[0] = /usr/X11/bin/X argv[1] = :2 argv[2] = -auth argv[3] = /Users/jeremy/.serverauth.80335 .can't open default display Error initializing xpbproxy InitConnectionLimits: MaxClients = 255 Xquartz starting: X.Org X Server 1.4.2-apple23 Build Date: 20081116 Debug logging enabled to /Users/jeremy/x11-debug.txt ...
/usr/X11/bin/Xquartz :0
I get:
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-23 17:41:53.118 X11[25505] 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
It looks like it's failing because of missing font caches. Try running this to rebuild the font cache: sudo /usr/X11/bin/font_cache This is triggered by privileged_startx on Leopard, but that doesn't build on Tiger... Try building xinit (you don't need to rebuild everything) with the '--with-launchd' configure option... then let me know how it fails.
With the original X11.app I can launch the new X clients. Xset -q lists:
Xlib: extension "Generic Event Extension" missing on display ":0.0".
Wow, looks like your build script is really building the bleeding edge. I haven't started dealing with xge yet. Don't worry about that warning, it's not anything that will be used until after xorg- server-1.6 ships.
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? Maybe I just fixed in in 7.2... If it's broken in 7.0.4, you'll need to do some install_name_tool foo. Check out: http://www.opensource.apple.com/darwinsource/10.5.5/X11server-48.4/build You may need to do some of the commented out ones depending on what you built from Mesa. The uncommented ones take care of libGL and libGLU, but I think you also had libglut.
The GNU Emacs X client built crashes, too ... /usr/X11 is a sym-link to /usr/X11R7.4.
I'd recommend just using /usr/X11 and forgetting this /usr/X11RX.X stuff...
To "play" with jhbuild and optimisation I can build into a real /usr/ X11 directory next time.
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?