Re: [Xquartz-dev] Tiger fixes in 1.4.2-apple24
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. 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. Additionally Console receives: Last login: Sun Nov 23 17:34:33 on ttyp2 Welcome to Darwin! You have new mail. Warning: no access to tty (Inappropriate ioctl for device). Thus no job control in this shell. Waiting for startup parameters via Mach IPC. When I try (path is: /Users/pete/bin /sw/lib/freetype219/bin /sw/lib/ fontconfig2/bin /usr/local/bin /usr/local/ActivePerl-5.10/bin /usr/ local/texlive/2008/bin/universal-darwin /usr/bin /bin /usr/sbin / sbin /usr/X11/bin /sw/bin /sw/lib/coreutils/bin /Developer/Tools) /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 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". 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) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.11) The GNU Emacs X client built crashes, too ... /usr/X11 is a sym-link to /usr/X11R7.4. To "play" with jhbuild and optimisation I can build into a real /usr/ X11 directory next time. -- Greetings Pete One-Shot Case Study, n.: The scientific equivalent of the four-leaf clover, from which it is concluded all clovers possess four leaves and are sometimes green.
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?
On Nov 23, 2008, at 10:33, Jeremy Huddleston wrote:
On Nov 23, 2008, at 08:53, Peter Dyballa wrote:
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.
Yeah, it looks like I didn't merge this into the 7.0 branch... here's the changes in the 7.2 branch: http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commitdiff;h=ac0d19601caf1f...
participants (2)
-
Jeremy Huddleston
-
Peter Dyballa