X11 apps failing after upgrade
All help gratefully received! I haven't found this problem through searches, apologies if I've been searching for the wrong terms. In my first update in a few months I picked up the major upgrade to the X server. XWin -version now reports 1.5.3.0. After having the problems below I did a full reinstall of Cygwin, with no success. My symptoms look similar to tunneling via `ssh -X`, but it happens with both `ssh -Y`, and when I do `xhost +` and display directly to server:0 without ssh tunneling. My client machine is Solaris. Everything worked fine before the update. I'm running the installed startxwin.bat startup (with xterm REM'd out). I can display xclock fine. xterm appears up, but as soon as I hit a key it crashes with: $ xterm xterm: warning, error event received: X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 136 (XKEYBOARD) Minor opcode of failed request: 16 (XkbSetNamedIndicator) Serial number of failed request: 117 Current serial number in output stream: 130 During which, my /var/log/XWin.0.log gets 8 lines of: GetWindowProp - pWin or name was NULL I can't run GNU Emacs at all (self-built Emacs 22.3.1 on the client Solaris machine, but I also tried 21.3.1 installed from sunfreeware.com, same result): $ emacs X protocol error: BadAtom (invalid Atom parameter) on protocol request 20 Fatal error (6)Abort (core dumped) Nothing in /var/win/Xwin.0.log on that failure though. I /can/ run the local, Cygwin-installed GNU Emacs - kicked it off via the X server system-tray menu. Any suggestions gratefully received, including what other info I can supply or what diagnostics can I run? Since it seems nobody else is screaming about this suggests it's something about my setup, but I can't think what. On the plus side, I've now fixed my Emacs configuration to work better in the terminal :). Thanks in advance, James. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Installed CygwinX and xhost not found
Hi, I have just installed CygwinX on my new laptop which is running MS XP Pro version 2002 service pack 2. I used install options All User and Unix mode. I also took the default of downloading all packages. I am trying to setup a X window environment so I can run the Oracle Universal Installer to load Oracle onto my zOS mainframe environment. The first time I started Cygwin from the desktop short cut, I issue the command xhost + , I then received the error message 'bash: xhost not found'. So I have searched the FAQs and found a note that says to add a path statement to correct this problem. Next, I remembered the installation said I could customize the C:\cygwin\home\rraso\.bash_profile by adding this statement PATH=/usr/local/bin:/usr/bin:/bin:$PATH.So I customized the profile and retried the shortcut, followed by xhost +, same resulting error message. After removing the change, I tried inserting the path statement into the Cygwin.BAT file, both before the change directory command and after the bash logon command. Both tests produced the same results 'xhost + not found'. Next, I reinstalled the software but I installed the CygwinX support. I checked the CygwinX documentation and in chapter 4, it talks about starting CygwinX with either startwxin.bat, or startxwin.sh or startx. I have searched my Cygwin files for this members and do not find them. I was expecting to find one or more of them. Do I create a startxwin file? If not, did my installation not work correctly? So at this point, I am not sure where to insert the path statement or even if I have the right statement to insert into someplace the Cygwin files. Any suggestion will be greatly appreciated. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Recent X11 upgrade and getting _gl?? Undefined references compiling another package
I periodically do test compile for OpenSceneGraph in Cygwin and up until I recently accidentally updated to the latest X11 stuff the compiles had been working fine. With the recent change I now getting a lot of undefined references for various _gl?? References. I posted this to the OpenSceneGraph list and they suggested I also post here. The package uses ccmake/cmake and from the settings in ccmake when I review them it seems to be properly finding OpenGl according to cmake as: OPENGL_INCLUDE_DIR /usr/include OPENGL_gl_LIBRARY/usr/lib/w32api/libopengl32.a OPENGL_glu_LIBRARY /usr/lib/w32api/libglu32.a the following is the errors and I have include the output from cygcheck -a -r -v. Is this related to the upgrade or something else - any and all suggestion or answers greatly appreciated. Bk CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f3 8): undef ined reference to `_glTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x1f8 7): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x209 a): undef ined reference to `_glPixelStorei' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x224 1): undef ined reference to `_glTexSubImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x241 4): undef ined reference to `_glCopyTexImage2D' CMakeFiles/osg.dir/TextureRectangle.o:TextureRectangle.cpp:(.text+0x254 b): undef ined reference to `_glCopyTexSubImage2D' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x14ba): undefined r eference to `_glGetError' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x154e): undefined r eference to `_glGetIntegerv' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1564): undefined r eference to `_glGetString' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x1966): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/VertexProgram.o:VertexProgram.cpp:(.text+0x19a7): undefined r eference to `_glMatrixMode' CMakeFiles/osg.dir/Viewport.o:Viewport.cpp:(.text+0x191): undefined reference to `_glViewport' Creating library file: ../../lib/libosg.dll.a collect2: ld returned 1 exit status make[2]: *** [bin/cygosg-2.7.6.dll] Error 1 make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2 make: *** [all] Error 2 [EMAIL PROTECTED] /usr/develop/obj/osg $ cygcheck -s -r -v output: Cygwin Configuration Diagnostics Current System Time: Tue Dec 02 12:52:59 2008 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: C:\cygwin\usr\local\share\OpenSceneGraph\bin C:\cygwin\usr\local\bin C:\cygwin\usr\local\lib C:\cygwin\usr\local\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\Program Files\Business Objects XI\common\3.5\bin\NOTES\ C:\Program Files\Business Objects XI\common\3.5\bin\NOTES\DATA\ C:\program files\sdb\programs\bin C:\program files\sdb\programs\pgm C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\SQLLIB\BIN C:\Program Files\SQLLIB\FUNCTION C:\Program Files\SQLLIB\HELP C:\Program Files\Sybase\SQL Anywhere 8\win32 C:\Program Files\Sybase\Shared\win32 C:\Program Files\Sybase\Shared\Sybase Central 4.1 C:\Program Files\Symantec\pcAnywhere\ C:\PROGRA~1\IBM\CLIENT~1 C:\PROGRA~1\IBM\CLIENT~1\Shared C:\PROGRA~1\IBM\CLIENT~1\Emulator .\ Output from C:\cygwin\bin\id.exe (nontsec) UID: 11003(BrianK)GID: 10513(Domain Users) 544(Administrators) 547(Power Users) 555(Remote Desktop Users) 545(Users)1004(Debugger Users) 10512(Domain Admins) 11059(Domain Super Users) 10513(Domain Users) 11815(Information Tech) Output from C:\cygwin\bin\id.exe (ntsec) UID: 11003(BrianK)GID: 10513(Domain Users) 544(Administrators) 547(Power Users) 555(Remote Desktop Users) 545(Users)1004(Debugger Users) 10512(Domain Admins) 11059(Domain Super Users) 10513(Domain Users) 11815(Information Tech) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER = 'BrianK' LD_LIBRARY_PATH = '/usr/local/lib:/usr/local/bin:/usr/bin:/bin:' PWD = '/home/BrianK' CYGWIN = 'binmode ntsec nostrip_title title' HOME = '/home/BrianK' MAKE_MODE = 'unix' HOMEPATH = '\BrianK' OSG_LIBRARY_PATH = '/usr/local/bin' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' DB2INSTANCE = 'DB2' APPDATA = 'C:\Documents and Settings\BrianK\Application Data' POPFILE_ROOT = 'c:\netime\popfile' HOSTNAME = 'atl-lt-5783' SHELL = '/bin/bash' TERM = 'cygwin' VWS_LOGGING = 'C:\Program Files\SQLLIB\LOGGING' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 13 Stepping 8, GenuineIntel' WINDIR = 'C:\WINDOWS' VSCOMNTOOLS = 'C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\' VS80COMNTOOLS =
RE: Installed CygwinX and xhost not found
Lots of apps have moved into their own packages. xhost can be found in the X11 group, to be installed on its own. However, it's generally a good option to connect to your client with ssh -Y and then you can display directly, without using xhost. I have a Cygwin-X menu item, with XWin server option in it. I think that's a default install... It runs /usr/bin/startxwin.bat (which was created/installed automatically). If you don't have that it must have been one of the X11 items I selected - not sure which. HTH, James. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of RICHARD RASO Sent: Tuesday, December 02, 2008 1:03 PM To: cygwin-xfree@cygwin.com Subject: Installed CygwinX and xhost not found Hi, I have just installed CygwinX on my new laptop which is running MS XP Pro version 2002 service pack 2. I used install options All User and Unix mode. I also took the default of downloading all packages. I am trying to setup a X window environment so I can run the Oracle Universal Installer to load Oracle onto my zOS mainframe environment. The first time I started Cygwin from the desktop short cut, I issue the command xhost + , I then received the error message 'bash: xhost not found'. So I have searched the FAQs and found a note that says to add a path statement to correct this problem. Next, I remembered the installation said I could customize the C:\cygwin\home\rraso\.bash_profile by adding this statement PATH=/usr/local/bin:/usr/bin:/bin:$PATH.So I customized the profile and retried the shortcut, followed by xhost +, same resulting error message. After removing the change, I tried inserting the path statement into the Cygwin.BAT file, both before the change directory command and after the bash logon command. Both tests produced the same results 'xhost + not found'. Next, I reinstalled the software but I installed the CygwinX support. I checked the CygwinX documentation and in chapter 4, it talks about starting CygwinX with either startwxin.bat, or startxwin.sh or startx. I have searched my Cygwin files for this members and do not find them. I was expecting to find one or more of them. Do I create a startxwin file? If not, did my installation not work correctly? So at this point, I am not sure where to insert the path statement or even if I have the right statement to insert into someplace the Cygwin files. Any suggestion will be greatly appreciated. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Installed CygwinX and xhost not found
RICHARD RASO wrote: So I have searched the FAQs and found a note that says to add a path statement to correct this problem. for missing xhost, the correct FAQ is http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-where-is-xxyzy If it's the Cygwin/X FAQ which has given you the wrong advice to adjust your path, can you please give me a reference so I can correct it Next, I reinstalled the software but I installed the CygwinX support. I checked the CygwinX documentation and in chapter 4, it talks about starting CygwinX with either startwxin.bat, or startxwin.sh or startx. I have searched my Cygwin files for this members and do not find them. I was expecting to find one or more of them. Do I create a startxwin file? If not, did my installation not work correctly? http://x.cygwin.com/docs/ug/setup-cygwin-x-installing.html See point 15. For the startup scripts you need to install the xinit package. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: PATCH: Fix mwextwm mode to build again
Colin Harrison wrote: Hi, Jon TURNEY wrote Based on somebody else's patch, I'm can't remember who's... I'll give you one guess. Sorry. I managed to confuse myself somehow. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Recent X11 upgrade and getting _gl?? Undefined references compiling another package
Brian Keener wrote: I periodically do test compile for OpenSceneGraph in Cygwin and up until I recently accidentally updated to the latest X11 stuff the compiles had been working fine. With the recent change I now getting a lot of undefined references for various _gl?? References. I posted this to the OpenSceneGraph list and they suggested I also post here. The package uses ccmake/cmake and from the settings in ccmake when I review them it seems to be properly finding OpenGl according to cmake as: OPENGL_INCLUDE_DIR /usr/include OPENGL_gl_LIBRARY/usr/lib/w32api/libopengl32.a OPENGL_glu_LIBRARY /usr/lib/w32api/libglu32.a I suspect you might have the problem discussed here: http://cygwin.com/ml/cygwin-apps/2008-11/msg00036.html libglut-devel 2.4.0-1 opengl 1.1.0-8 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
WMaker compile
Hello, let first start by introducing myself: I'm a long time linux user, and tired of rebooting the home machine because childrens can't play Zoo Tycon under linux. I've just fiddled a bit with WindowMaker, and finally compiled the latest version, 0.92. It ran out of the box, configured as CC=gcc-4 CPP=cpp-4 CXX=g++-4 ../configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/sbin --localstatedir=/var --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --with-gnustepdir=/usr/lib/GNUstep/System Two explanations: 1) the path reflect the way there are setup in the corresponding debian package 2) I compiled it under gcc-4 In order to make it run: 1) create a ~/.xserverrc file with export CYGWIN=server exec X :0 This ensures the X server starts with the MIT-SHM ewtension enabled, run 'cygserver-config' once to have the required service enabled under Windows 2) launch wmaker at the end of .xinitrc as exec env CYGWIN=server LANG=fr_BE.UTF-8 wmaker This ensures that wmaker can access shared memory from the client side So ... it works. I used it with Belgian french locales. I would like to share the new wmaker package. To this end I tried to install it locally as make PREFIX=/usr/src/WindowMaker-0.92.0/package/ install but the package ended up being installed under /usr Could someone tell me how to generate a package under cygwin ? Where should I sent it to have it included in the cygwin distribution ? Which compiler should I use ? gcc-3 ? MingGW ? gcc-4 ? Regards Pascal Dupuis -- A conservative is a man who believes that nothing should be done for the first time. -- Alfred E. Wiggam -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X11 apps failing after upgrade
James Ferguson wrote: My client machine is Solaris. Everything worked fine before the update. I'm running the installed startxwin.bat startup (with xterm REM'd out). I can display xclock fine. xterm appears up, but as soon as I hit a key it crashes with: $ xterm xterm: warning, error event received: X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 136 (XKEYBOARD) Minor opcode of failed request: 16 (XkbSetNamedIndicator) Serial number of failed request: 117 Current serial number in output stream: 130 This appears to be an issue with connecting to the Cygwin/X server from X clients from older X versions running on Solaris See the thread at [1] This thread references [2] (and it can also be found at [3]), which would suggest this is not a cygwin specific issue, but seems to be something that has changed in the X.Org 1.5.x server. Those bugs reference some Solaris patches, which, as far as I can tell, upgrade X to a later version. Applying those is the only solution I know of at this time. I did some searching, but I can't find a X server patch for this issue. If you find a patch that someone else has written, please let me know! This is on my list of issues to investigate, but it is not straightforward for me to duplicate as I don't have a Solaris server to hand. [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00141.html [2] https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/292973 [3] https://bugzilla.redhat.com/show_bug.cgi?id=458373 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi wrote: Jon TURNEY wrote: Ok, I've tried this and a few other things an I can't reproduce this, so I'd like your help to get a backtrace if you are willing: 1. Download http://www.dronecode.org.uk/cygwin/XWin.exe.bz2 (this is a build of XWin with debugging symbols) 2. bunzip2.exe XWin.exe.bz2 3. export CYGWIN=$CYGWIN error_start=gdb -nw %1 %2 4. ./XWin.exe -multiwindow -clipboard +bs 5. Do what ever you do to reproduce the problem 6. When a gdb window pops up, wait for the (gdb) prompt, then thread apply all bt full 7. Mail me the output I have done the above, but the 'XWin.exe' you propose DOES NOT segfault! Well, this is very confusing. However I note: 1. it has the icon of X11R6.99, not that of X11R7.4 2. with it, I have the keyboard layout problem described here [1], and rebasing does not solve 3. with it not only ROOT, hsimple.C etc. work but the OpenGL demos work without the workaround described here [2] (remember the OpenGL problems here [3]). I'm sorry, your our previous mail hadn't really made it clear to me that there was problem with glxgears etc. Just for my comprehension, can you explain again what happens if you run glxinfo and glxgears on 1.5.3-4. 4. When I R-click on systray icon, mine 'XWin.exe', which comes from [*], has a context menu with five items: Don't worry about differences 1), 2) and 4), they are just artefacts of the quick way I made the test build. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: XWin Server starting everything offscreen
Yaakov (Cygwin Ports) wrote: I don't have a multihead setup, so I'm unable to test any of this. Just a thought for a work-around for testing, in case you or anyone else is interested. Install Synergy (http://synergy2.sourceforge.net/), ZoneScreen (http://www.zoneos.com/zonescreen.htm), or another alternative. Even without another client connected, Windows will essentially have dual-screen. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote: I'm sorry, your our previous mail hadn't really made it clear to me that there was problem with glxgears etc. Just for my comprehension, can you explain again what happens if you run glxinfo and glxgears on 1.5.3-4. Really, in my posts, I never cited 'glxgears', 'glxinfo' etc. Sincerely, I do not know what they are... I have written: 1. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT macro (hsimple.C etc.) both ROOT and XWin-1.5.3-4 (from [1]) segfault. Using YOUR XWin with debug info etc., ROOT, hsimple.C etc. work fine, i.e. NO segfault etc. 2. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT OPENGL macro (geom/shapes.C, for example see [2]) then the macro fails to be excuted (see [2]), but it works if I omit '+bs' OR if I use the workaround described here [3] OR if I use YOUR debug XWin.exe! MAY YOU try [1] with the steps described in [2] and confir/or not the segfaults? Cheers, Angelo. --- [1] ftp://mirrors.kernel.org/sourceware/cygwin/release/X.Org/xorg-server/xorg-server-1.5.3-4.tar.bz2 [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html [3] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00017.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/