Agostino Ruscito | 1 Mar 2007 04:20
Picon

newbie xlib/xt question

apologies for my poor English) I just installed cygwin.
 I'm trying to compile a program under cygwin, but I got some errors.

This is the program :

#include <Xm/Xm.h>    /* Standard Motif definitions */
#include <Xm/Label.h>     /* Motif Label Widget */
main(argc, argv)
int argc;
char **argv;
{
    XtAppContext app_context;
    Widget topLevel, hello;

    /* Register the default language procedure */
        XtSetLanguageProc(NULL, (XtLanguageProc)NULL, NULL);

    /* Initialize the Xt Intrinsics */
    topLevel = XtVaAppInitialize(
            &app_context,       /* Application context */
            "XHello",               /* Application class */
            NULL, 0,                /* command line option list */
            &argc, argv,        /* command line args */
            NULL,                   /* for missing app-defaults file */
            NULL);                  /* terminate varargs list */

        /* Create a widget */
    hello = XtVaCreateManagedWidget(
            "hello",                /* arbitrary widget name */
            xmLabelWidgetClass,     /* widget class from Label.h */
(Continue reading)

René Berber | 1 Mar 2007 05:45
Picon
Favicon

Re: newbie xlib/xt question

Agostino Ruscito wrote:

> apologies for my poor English) I just installed cygwin.
> I'm trying to compile a program under cygwin, but I got some errors.
[snip]
> gcc -L/usr/X11R6/lib -lXm -lXt -lX11 -lICE -lSM -lXext xhello.o  -o xhello
> xhello.o:xhello.c:(.text+0x42): undefined reference to `_XtSetLanguageProc'
...
> Do I missing some lib in the Makefile?

No, the problem is the order of the parameters, put your LDFLAGS at the end in
the makefile:

# rule to link the program
$(PROG): $(OBJS)
       $(LD) $(OBJS) -o $(PROG) $(LDFLAGS)

BTW those are not really "LDFLAGS" it's the flags and the libraries, the problem
with unresolved symbols is caused by the order in which the libraries are searched.
--

-- 
René Berber

--
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/

Agostino Ruscito | 1 Mar 2007 15:32
Picon

Re: newbie xlib/xt question

> # rule to link the program
> $(PROG): $(OBJS)
>       $(LD) $(OBJS) -o $(PROG) $(LDFLAGS)
>
> BTW those are not really "LDFLAGS" it's the flags and the libraries, the problem
> with unresolved symbols is caused by the order in which the libraries are searched.
> --
> René Berber
>
>

Thank you very much. Now it work !

--
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/

JASON FLETCHER | 1 Mar 2007 21:27
Favicon

Unable to connect to an AIX server

I have an AIX server that I am trying to use CYgwin XFree86 Server on. When I connect I type in x -query
<servername>. Where servername is the name of the server. On other servers we have no trouble but on this
one we do not get the login screen only a gray screen with an X as the cursor.

Can you help?

Jason

--
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/

Holger Krull | 1 Mar 2007 22:30
Picon
Picon

Re: Unable to connect to an AIX server

JASON FLETCHER schrieb:
> I have an AIX server that I am trying to use CYgwin XFree86 Server on. When I connect I type in x -query
<servername>. Where servername is the name of the server. On other servers we have no trouble but on this
one we do not get the login screen only a gray screen with an X as the cursor.

try -query aix.address.in.numbers -from cygwin.address.in.numbers

--
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/

j t | 2 Mar 2007 09:56
Picon

xwin server crashes in multiwindow mode

Hello,
xwin server crashes in multiwindow mode when launching it with "xwin
-multiwindow&" command (also launching with startx script). The server
is working correctly launched with "xwin &".

I had the screen log:

$ Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.99.901-4

Contact: cygwin-xfree <at> cygwin.com

XWin was started with the following command line:

XWin -multiwindow

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 00000007
winSetEngine - Multi Window or Rootless => ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024 depth: 32
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
(Continue reading)

Alexander Skwar | 2 Mar 2007 13:07

Keyboard does not work with JDS 3.0 (Gnome <at> Solaris 10)

Hello!

I'm using XWin 6.8.99.901-4 to connect to a Solaris 10 system
from my Windows 2000 SP4 PC. I connect to it by running:

Xwin :0 -xkblayout ch -clipboard -screen 0 1261x941 -fp tcp/winds06.win.ch.da.rtr:7100 -query
winds06.win.ch.da.rtr -once

This will give me the XDM login screen of Solaris 10. There
I select "Java Desktop System, Release 3" (JDS, ie. Gnome).
After logging in, I get the following error message:

http://img135.imagevenue.com/img.php?image=30151_Error_when_starting_JDS_Gnome_on_Solaris_10_122_177lo.jpeg

	Error activating XKB configuration.
	Probably internal libxklavier or gnome-settings-daemon problem.

	X server version data:
	The Cygwin/X project
	60899901

	If you report this situation as a bug, please include:
	- The result of xprop -root | grep XKB
	- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb

xprop:
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc105", "ch", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc105", "ch", "", ""

gconftool-2:
(Continue reading)

Alexander Skwar | 2 Mar 2007 13:21

X server freezes after connecting to JDS (Gnome) on Solaris 10

Hello!

I've got yet another problem with Cygwin/X  <at>  Win2k SP4, connecting to
a Solaris 10 machine running JDS 3.0 (Gnome). As before, I use the 
following command line to fire up Xwin and connect to XDM:

Xwin :0 -xkblayout ch -clipboard -screen 0 1261x941 -fp
tcp/winds06.win.ch.da.rtr:7100 -query winds06.win.ch.da.rtr -once

(It's just one line, of course... *g*)

More or less shortly after having logged on to JDS/S10, the Cygwin
X window "freezes". Ie. I cannot move any windows in it anymore
and when I move a MS Windows window in front of the Cygwin window,
the Cygwin window stays completely white (ie. it does not refresh
anymore). Please have a look at 
http://img162.imagevenue.com/view.php?image=31074_Cygwin_X,_weisses_Fenster,_keine_Reaktion_122_61lo.jpg
(or http://kuerzer.de/M7LjjCfJX for a shorter URL) and notice, how
the window in the background (the Cygwin window) is all white...

When I wait like 5 to 10 minutes, the Cygwin window refreshes again.
But I still cannot move anything in it.

When I use CDE 1.6 (on the system Solaris 10 box) or when I use
Exceed (from a different PC client), I don't have any problems what
so ever. I also don't have any problems with XKB (see thread
"Keyboard does not work with JDS 3.0 (Gnome  <at>  Solaris 10)").

What might be causing these problems and what can I do to solve
these issues?
(Continue reading)

William | 5 Mar 2007 16:46
Picon
Favicon

Re:

richard goldstein <bg573 <at> lafn.org> writes:

> 
> Hello,
> 
> Thanks for helping me.  I turned off my McAfee firewall and virus scans, 
> but, unfortunately, running "startxwin.bat" gave the same error message 
> as before (reproduced below). Can you give some further advice?
> 
> Thanks,
> Richard Goldstein
> 
>
-----------------------------------------------------------------------------

Good Day Richard,

I do not knoe if this helps you, but I had an identical problem and 
managed to find a fix by trial and error..!

I am running Cygwin on Xp. I also run Skype (communication software) 
that needs to grab a particular port for efficent communication (this 
allows it to pass through the firewall as an exception!). I had skype 
set up to use port 6000.
When I went in and changed that to a different port, XWin started up 
with no trouble (with my firewall and virus software running!).

So I thinkt he problem is that there could be something that is 
conflicting with XWin in the network setup. You might want to try 
that and also make sure that port 6000 has an exception in your 
(Continue reading)

thebigcheeze | 6 Mar 2007 23:38
Picon

Error 29 on Vista


I installed Cygwin with the default packages with added ssh and the entire
x11 package.  when I attempt to run xwindows using this batch file:

 <at> echo off

C:
chdir C:\cygwin\bin

bash --login -i startx

It gives the following error:

     45 [main] xterm 2240 child_copy: linked dll data write copy failed,
0x3AB0
0..0x3AB440, done 0, windows pid 2356, Win32 error 487
xterm: Error 29, errno 11: Resource temporarily unavailable
Reason: spawn: fork() failed

followed by:

winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT
message,
winClipboardProc - XDestroyWindow succeeded.

winClipboardIOErrorHandler!

FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be
1; f
ixing.
(Continue reading)


Gmane