Re: I am back
n Tue, 1 Jul 2003, Harold L Hunt II wrote: Well, I am back. We had a great time. Welcome back. How was Paris? If any patches were submitted or anything needs to be brought to my attention, please send a reminder to the list for me. I can't possibly wade through 2 weeks of emails :) In the first week we had an incredible high traffic. One week brought as much postings as a whole month did before ;) bye ago
Problems installing font
Having recently installed cygwin/XFree, I try to ssh to an HP workstation (asterix) running Mentor Graphics. The program crashes due to a font error. I'm able to run an xterm from the same machine, so X is enabled in ssh. What I need to know is how to procede; what kind of font file should I obtain, how should I install the fonts on my Cygwin system? Best regards, Børge Strand SINTEF Electronics and Cybernetics Dump: SINTEF asterix ~ // Design Manager v8.6_4.14 Fri Apr 16 23:48:41 PDT 1999 // EDDM v8.6_4.8 Sat Dec 19 12:57:47 PST 1998 // Falcon Framework v8.6_4.14 Fri Apr 16 21:30:13 PDT 1999 // // Copyright (c) Mentor Graphics Corporation, 1982-1999, All Rights Reserved. // UNPUBLISHED, LICENSED SOFTWARE. // CONFIDENTIAL AND PROPRIETARY INFORMATION WHICH IS THE // PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS. // // Mentor Graphics software executing under HP Precision Architecture HP-UX. // // // WARNING: Font loading failed. Please see the following notes for more information. // NOTE: Xhost = 'asterix', // NOTE: Xserver = 'x.x.x.x', static IP number of asterix // NOTE: font name = 'dm.icons', // NOTE: font package = 'registry'. // Fonts are configured incorrectly // Cannot initialize device driver. // Error: Invalid font requested (from: Core/VFONT/vfont 09) Then follows an error dump from the HP machine
XWin and -multiplemonitors works once, but not twice?
When I run XWin with the following: start /B XWin -engine 1 -nowinkill -multiplemonitors -nodecoration -rootless -clipboard It does open and span both my monitors. If I close XWin and start it again, however, it only displays on the first monitor. The log file claims that both monitors are not running at the same resolution/bit depth. This is untrue. Any ideas why this might be happening? Thanks!
1.3.22/W2000: XDMCP connect problem.
Again. - Nivaldo Antonio Portela de Vasconcelos [EMAIL PROTECTED] / +55 (92) 614-6607 - - Forwarded by Nivaldo Vasconcelos/genius on 02/07/2003 11:43 - |-+ | | Nivaldo | | | Vasconcelos | | || | | 27/06/2003 14:07 | | || |-+ --| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: 1.3.22/W2000: XDMCP connect problem. | --| Hi All, As mentioned in the subject, I'm using the version Cygwin 1.3.22 under Windows 2000. I'm trying connect a Linux server running Conectiva Linux 9 (CL9) + KDM as display manager. At the moment win only a gray screen when to connect with it. To connect I'm using the follow line command: XWin -fullscreen -query 103.1.50.63 -from 103.1.50.132 There's attached too the /tmp/XWin.log. I'm already using this same Cygwin with another Linux servers (Conectiva Linux 8 and RH9). And, another gay here can use that server (CL9) from a Cygwin client. Have you idea about ?? Best regards, Nivaldo - Nivaldo Antonio Portela de Vasconcelos [EMAIL PROTECTED] / +55 (92) 614-6607 - (See attached file: XWin.log) XWin.log Description: Binary data
Re: multiwindow + XDMCP + X0.hosts == crash
Kensuke Matsuzaki writes: I can't reproduce that bug. Please send /tmp/XWin.log I forgot to mention that this is on a CPU with hyperthreading enabled. I suspect SMP has something to do with the bug... Also, when I reproduced the problem from a Cygwin shell, I got a message I had not seen before: 3 [main] XWin 3440 pthread_conf::Signal: Released too many threads - 1 now 1 originally I probably missed this before because I was running XWin.exe from a .bat file. Anyway, the crash still happens. My /tmp/XWin.log file is appended. What can I do next to help fix this? Thanks! - Pat ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1024 h 768 winInitializeDefaultScreens - Returning OsVendorInit - Creating bogus screen 0 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (EE) Unable to locate/open config file InitOutput - Error reading config file winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - Allowing PrimaryDD winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 001f InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winSetEngine - Multi Window = ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winCreateBoundingWindowWindowed - User w: 1024 h: 768 winCreateBoundingWindowWindowed - Current w: 1024 h: 768 winAdjustForAutoHide - Original WorkArea: 0 0 738 1024 winAdjustForAutoHide - Adjusted WorkArea: 0 0 738 1024 winCreateBoundingWindowWindowed - WindowClient w 1024 h 738 r 1024 l 0 b 738 t 0 winCreateBoundingWindowWindowed - Returning winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 738 depth: 32 winAllocateFBShadowGDI - Dibsection width: 1024 height: 738 depth: 32 size image: 3022848 winAllocateFBShadowGDI - Created shadow stride: 1024 winFinishScreenInitFB - Masks: 00ff ff00 00ff winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 winCreateDefColormap - Deferring to fbCreateDefColormap () null screen fn ReparentWindow null screen fn RestackWindow winFinishScreenInitFB - Calling winInitWM. InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitWM - Returning. winFinishScreenInitFB - returning winScreenInit - returning InitOutput - Returning. winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = xfree86 Model = pc101 Layout = us Variant = (null) Options = (null) Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! winPointerWarpCursor - Discarding first warp: 512 369 winBlockHandler - Releasing pmServerStarted winBlockHandler - pthread_mutex_unlock () returned winInitMultiWindowWM - pthread_mutex_lock () returned. DetectUnicodeSupport - Windows NT/2000/XP winInitMultiWindowWM - Calling setlocale () winInitMultiWindowWM - setlocale () returned winInitMultiWindowWM - XInitThreads () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - XInitThreads () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winMultiWindowWMErrorHandler - ERROR: BadWindow (invalid Window parameter) winMultiWindowWMErrorHandler - ERROR: BadWindow (invalid Window parameter) winMultiWindowWMErrorHandler - ERROR: BadWindow (invalid Window parameter)
Alt-Esc works, why can't we pass Alt-Tab to the WM?
I've noticed numerous threads regarding the use of Alt-Tab switching in XFree86... to summarize, people say that passing Alt-Tab through to the WM would result in users not being able to get back to windows from full-screen mode. However, both Alt-Esc and Ctrl-Esc will bring you back into the windows interface. So I don't see why Alt-Tab being OPTIONALLY disabled is an issue. Could someone please enlighten me?
Re: Problems installing font
Borge, I have Mentor Graphics Design Architect running under Cygwin/Xfree86 after installing the Mentor fonts. I hope this tutorial will help you and others get up and running. I may have some typos in the commands, so watch out, but it should be accurate enough for you to get the idea of what needs to be done. First you have to extract the Mentor fonts from the Mentor installation on your Unix/Linux system. The instructions below roughly follow the instructions provided in the following URL: http://.hummingbird.com/exceedusers/Jan1999/0031.html Run the Mentor font extraction tool: mkdir /tmp/Mentor $MGC_HOME/bin/mgc_font_collect -v -p /tmp/Mentor cd /tmp tar -zcvf mentor_fonts.tgz Mentor Now, transfer the mentor_fonts.tgz file to /tmp your Cygwin machine, and install the fonts into /usr/X11R6/lib/X11/fonts/Mentor: cd /usr/X11R6/lib/X11/fonts tar -zxvf /tmp/mentor_fonts.tgz Next, create compressed PCF fonts and build a fonts.dir font database for the Mentor directory: cd Mentor gzip * mkfontdir . Now all you need to do is add the new Mentor font directory path at the end your font path: xset fp+ /usr/X11R6/lib/X11/fonts/Mentor This needs to be done once each time your run the Xfree server - I haven't yet figured out how to make the new font path permanent. I need to research XF86Config a little better, but it appears Xfree86 does not use XF86Config. It's handled differently under Windows than Linux. Manybe someone can offer some tips. Now, run your Mentor tool from your remote host, and watch it pop up with the correct icons! Once you have installed the Mentor fonts on one Cygwin/Xfree machine, you can simply archive the Mentor fonts directory and unarchive them on other machines you want to install: tar -zcvf /tmp/mentor_xfree_fonts.tgz /usr/X11R6/lib/X11/fonts/Mentor tar -zxvf /tmp/mentor_xfree_fonts.tgz -C / Don't forget to xset the font path! Here's another resource I fount very helpful: http://xfree86.org/4.2.0/fonts2.html#2 Happy designing! Regards, Tim
Seg Fault when I try to run OTB with XFree
I posed this problem to a OTB mailing list to no avail, so maybe somebody here can help. I recently installed Cygwin and XFree86 in an attempt to get OneSAF Testbed (OTB) running. I have heard from many people that they were able to get it running and I was able to get it to compile but when I run I get a segmentation fault when the GUI is trying to come up. Here is the error: System crashed. Scheduler was idle. An unexpected signal was received. max system bytes = 39432192 system bytes = 39432192 in use bytes = 39430136 Segmentation fault And here's what I got running it with gdb $ gdb ./otbsaf GNU gdb 2003-03-03-cvs (cygwin-special) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i686-pc-cygwin... (gdb) run -nonet Starting program: /cygdrive/d/otb/src/otbsaf/otbsaf.exe -nonet warning: HEAP[otbsaf.exe]: warning: Heap block at 0023E898 modified at 0023F3DA past requested size of b3a Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f9eeaa in ?? () (gdb) c Continuing. warning: HEAP[otbsaf.exe]: warning: Invalid Address specified to RtlReAllocateHeap( 23, 23e8a0 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f9eeaa in ?? () (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00d26343 in _XmFormFindPreferred (f=0x11d20e00, cw=0x0, cg=0x0) at Form.c:1505 1505Form.c: No such file or directory. in Form.c I don't know if this helps or not, I'm new to Cygwin and XFree so I just staring at the screen randomly pushing buttons now. Thanks, Tom
XWin on non-system partition
Thanks in advance for any help. I had the bright idea to dedicate a whole partition to Cygwin (D:\usr, D:bin etc.). Now XWin refuses to run. I initially assumed I was missing something simple like setting an environment variable, and posted to the main cygwin group. I have since come to believe this is an X problem after all and will add a post here. It seems that during my cygwin installation everything was installed in D: (D:\usr, D:\bin etc), except for usr\X11R6\lib\X11\fonts. which was instead installed as C:\cygwin\usr\X11R6\lib\X11\fonts . When I restore the latter XWin will run however it refuses to do so if C:\cygwin\usr\X11R6\lib\X11\fonts does not exist. I did add the font directory to D:\usr\X11R6\lib\X11\, but it did not make a difference. Am I creating more trouble than it is worth by installing in D:\ rather than C:\cygwin?
Re: XWin on non-system partition
Gerald, Personally, I would have put Cygwin in d:\cygwin, not d:\... but that is a personal choice. Using d:\cygwin means that you won't have to modify startxwin.bat, if that is your startup method of choice. Your problem with the fonts directory is due to an explicit binary-mode mount that we use for the fonts directory. Your previous installation of Cygwin/XFree86 left over this mount point that points at c:\cygwin\usr\X11R6\lib\X11\. You can use 'umount' and 'mount' to remove this mount and recreate it, or you can use 'regedit' to manually edit the mount point, which may be easier for you... but I am not about to describe how to do it (only chose this option if you feel you can handle it). Hope that helps, Harold Gerald Pekmezi wrote: Thanks in advance for any help. I had the bright idea to dedicate a whole partition to Cygwin (D:\usr, D:bin etc.). Now XWin refuses to run. I initially assumed I was missing something simple like setting an environment variable, and posted to the main cygwin group. I have since come to believe this is an X problem after all and will add a post here. It seems that during my cygwin installation everything was installed in D: (D:\usr, D:\bin etc), except for usr\X11R6\lib\X11\fonts. which was instead installed as C:\cygwin\usr\X11R6\lib\X11\fonts . When I restore the latter XWin will run however it refuses to do so if C:\cygwin\usr\X11R6\lib\X11\fonts does not exist. I did add the font directory to D:\usr\X11R6\lib\X11\, but it did not make a difference. Am I creating more trouble than it is worth by installing in D:\ rather than C:\cygwin?
Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?
On Wed, 2 Jul 2003, Harold L Hunt II wrote: There is the possibility that Alt+Tab can only be trapped on NT-based OSes, but that isn't much more to worry about. Harold, Win98, at least, has a Misc tab in shortcut properties, that lists Windows shortcut keys to ignore (let the application handle). Alt-Tab is one of them. Thus, you could instruct the users set up a shortcut to XWin.exe and let it handle Alt-Tab, even if XWin.exe can't capture it itself. Igor P.S. I'm not sure Win95/ME have this feature. On Wed, 2 Jul 2003, Harold L Hunt II wrote: Steven, There's not going to be much action on this until someone implements it. It wouldn't take much coding (10 lines, maybe). There is the possibility that Alt+Tab can only be trapped on NT-based OSes, but that isn't much more to worry about. Harold Steven Hurd wrote: I've noticed numerous threads regarding the use of Alt-Tab switching in XFree86... to summarize, people say that passing Alt-Tab through to the WM would result in users not being able to get back to windows from full-screen mode. However, both Alt-Esc and Ctrl-Esc will bring you back into the windows interface. So I don't see why Alt-Tab being OPTIONALLY disabled is an issue. Could someone please enlighten me? -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: CYGWIN_ROOT Question -- Attn: XFree86-fnts maintainer
Gerald, Well, this is not a bug in setup.exe, but it looks like a bug in the postinstall scripts for the XFree86-f??? packages. Basically, the scripts re-mount /usr/X11R6/lib/X11/fonts to force a binary mount. They use `cygpath -w` to find the Windows path of the fonts directory. Unfortunately, they do it *before* unmounting the old one, so if you change the Cygwin installation root between the runs of the scripts, they will still refer to the old directory. The fix (for the postinstall scripts) is to unmount the directory *first*, and then run `cygpath -w`. The corrected postinstall scripts would each look like this: #!/bin/sh FONTDIR=/usr/X11R6/lib/X11/fonts umount -u $FONTDIR 2/dev/null WFONTDIR=`cygpath -w $FONTDIR` mount -bfs $WFONTDIR $FONTDIR 2/dev/null || mount -bfu $WFONTDIR $FONTDIR The same changes as a patch (for XFree86-fnts.sh) are below. Hopefully this makes its way into the fonts package. Until it does, you could simply umount -u /usr/X11R6/lib/X11/fonts, and re-install all of the XFree86-f??? packages that you need using setup.exe. Igor == --- XFree86-fnts.sh-orig2002-04-28 02:11:37.0 -0400 +++ XFree86-fnts.sh 2003-07-02 19:16:29.0 -0400 @@ -1,6 +1,6 @@ #!/bin/sh FONTDIR=/usr/X11R6/lib/X11/fonts -WFONTDIR=`cygpath -w $FONTDIR` umount -u $FONTDIR 2/dev/null +WFONTDIR=`cygpath -w $FONTDIR` mount -bfs $WFONTDIR $FONTDIR 2/dev/null || mount -bfu $WFONTDIR $FONTDIR == On Wed, 2 Jul 2003, Gerald Pekmezi wrote: Thanks for the reply I have come to believe this is an X problem after all and will add a post there. It seems that during my cygwin installation everything was installed in D: (D:\usr, D:\bin etc), except for usr\X11R6\lib\X11\fonts. which was instead installed as C:\cygwin\usr\X11R6\lib\X11\fonts . When I restore the latter XWin will run however it refuses to do so if C:\cygwin\usr\X11R6\lib\X11\fonts does not exist. I did add the font directory to D:\usr\X11R6\lib\X11\, but it did not make a difference. Possible bug in cygwin setup.exe? Larry Hall [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Gerald Pekmezi wrote: Thanks in advance for helping. I originally had Linux RH9 installed on the second partition of my primary (and at the time only) harddrive. I have since dedicated a secondary hard drive to Linux, and figured I would completely dedicate the partition to Cygwin (D:\). However I have begun to suspect that setting CYGWIN_ROOT to D:\ is not sufficient (XWin refuses to run, I don't think its an X problem, but if it is I guess this post will be moved). My question is whether there is a quick fix to this or whether it is more trouble than it is worth. Hm. Now that's a good one. Perhaps my memory is failing me but in all the years I've been using Cygwin, I don't ever recall CYGWIN_ROOT being officially used. Perhaps you should back up and start over with: http://cygwin.com/problems.html and http://cygwin.com/lists.html -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Problem compiling with xlib using GCC and newest Cygwin/Xfree86
I installed the latest release (or at least whatever the newest release available on the website) of Cygwin/XFree86 today, but Im having troubles with GCC and Xlib. When I try to include Xlib.h and go to compile, I get a very long slew of errors, mostly saying things like Window is used as a type but is not defined as a type. and so on with Atom, Font, Pixmap, etc. Next I get a list of about 20 syntax errors in Xlib.h, then errors in my code since types like Display and functions like XCreateSimpleWindow dont work. Im not trying to do anything fancy just yet, so Ive only got like 5 lines of code opening a window and mapping it, but it obviously isnt working. Any help would be appreciated. And if this issue has been addressed before, Im sorry. Im new to the list and tried searching for this problem but couldnt find any instances of it in the archives. Richard Duncan