This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: X programs compile, but crash


You really don't want the code for greasymouse. The issue is that I have to
port a monstrously big Motif application and I started compiling some other
X programs just for testing purposes. I was able to compile and link NEdit
without any errors, but it crashed. So I looked for the tiniest stupid
little X program and came along greasymouse, which uses just a handfull of
calls to Xlib. No Xt, no Xm calls. It crashes. Must be a configuration
problem. The compiled binaries from the distribution work.

Here's my cygcheck -s -r -v output:

------------------------------
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Aug  2 11:08:16 2000

WinNT Ver 4.0 build 1381 Service Pack 5

Path:	/usr/X11R6/bin
	/usr/bin
	/usr/bin
	/usr/local/bin
	/usr/bin
	/cygdrive/c/sys/winemu

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `/cygdrive/h'
MAKE_MODE = `unix'
PWD = `/tmp/test'
USER = `administrator'

!C: = `C:\cygwin\bin'
APPPATH = `X:\us'
CLASSPATH = `C:\Program Files\Exceed.nt\hcljrcsv.jar;C:\Program
Files\Exceed.nt\;'
COMPUTERNAME = `MKPC5090'
COMSPEC = `C:\WINNT\system32\cmd.exe'
COUNTRY = `us'
DISPLAY = `127.0.0.1:0.0'
DRV = `X:'
GCVER = `2.0.0.0044'
HOMEDRIVE = `C:'
HOMEPATH = `\'
HOSTNAME = `MKPC5090'
HOSTTYPE = `i586'
LOGONSERVER = `\\NEREU101'
MACHINENAME = `HOSTNAME'
MACHNAME = `ngpc100'
MACHTYPE = `i586-pc-cygwin'
NOS = `NT'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/cygdrive/h'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin'
OS_NAME = `CYGWIN_NT-4.0'
OS_SUBVERSION = `_GNU'
OS_VERSION = `1.1.2'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.JS'
PGMDIR = `C:\Program Files'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 7 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0703'
PROMPT = `$P$G'
PS1 = `${PWD##*/}> '
PSTCMD = `%systemroot%\system32\postcmd.exe'
SERVER = `eur1idc3'
SERVERW = `eur1idc3'
SERVERX = `eur1idc3'
SERVERY = `eur1idc3'
SHARENAME = `APPS'
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `/cygdrive/c/TEMP'
TERM = `cygwin'
TOOLPATH = `X:\us\ford\load\nt4\tools'
USERDOMAIN = `FORDEU1'
USERNAME = `kfleisc1'
USERPROFILE = `C:\WINNT\Profiles\kfleisc1'
WINDIR = `C:\WINNT'
XErrorDB = `/usr/X11R6/lib/X11/XErrorDB'
XKeySymDB = `/usr/X11R6/lib/X11/XKeysymDB'
_ = `/bin/cygcheck'
TZ = `GMTST0GMTDT-1,M3.5.0/2,M10.5.0/3'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrd
er\Start Menu\&Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
  (default) = `binmode tty ntsec'

a:  fd           N/A    N/A                    
c:  hd  NTFS   12982Mb  21% CP CS UN PA FC     
d:  cd           N/A    N/A                    
h:  net NTFS    3835Mb  56%          PA        kfleisc1

C:\cygwin\bin  /usr/bin  system  binmode
C:\cygwin\lib  /usr/lib  system  binmode
C:\cygwin  /        system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   83k 2000/06/11 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/6/11 4:34
   35k 2000/06/11 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/6/11 4:34
  402k 2000/06/11 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/6/11 4:30
    5k 2000/06/11 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/06/11 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/6/11 4:30
  639k 2000/06/11 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/6/11 4:34
  568k 2000/07/27 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/7/27 15:59
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 3
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 24
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Jul 27 10:59:35 EDT 2000
        shared id: cygwin1S3

Use -h to see help about each section
------------------------------

What do I have to do to build X from source. 'make World' didn't build the
DLLs. Do I have to 'make World.Win32'?

Thanks for your help.

Karsten


-----Original Message-----
From: Suhaib Siddiqi [mailto:ssiddiqi@inspirepharm.com]
Sent: Dienstag, 1. August 2000 20:40
To: Fleischer, Karsten (K.); cygwin-xfree@sourceware.cygnus.com
Subject: RE: X programs compile, but crash



Email me the code?  i will have a look.  I compiled XFCE desktop, xterm
and all the xclients using same libs and non crashes.

We need investigate your setup and code.

Suhaib
> -----Original Message-----
> From: cygwin-xfree-owner@sources.redhat.com
> [mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Fleischer,
> Karsten (K.)
> Sent: Tuesday, August 01, 2000 4:12 AM
> To: 'cygwin-xfree@sourceware.cygnus.com'
> Subject: RE: X programs compile, but crash
> 
> 
> No, it isn't a LessTif problem. I've compiled a very simple X program
> (greasymouse) which uses only a few calls to Xlib (XOpenDisplay,
> XQueryPointer, XWarpPointer etc.). Even this tiny program fails 
> to run on my
> machine.
> 
> 
> -----Original Message-----
> From: Suhaib Siddiqi [mailto:ssiddiqi@inspirepharm.com]
> Sent: Montag, 31. Juli 2000 16:19
> To: cygwin-xfree@sourceware.cygnus.com
> Subject: RE: X programs compile, but crash
> 
> 
> 
> 
> > I freshly installed cygwin-1.1.3 and everything from xc-4-binaries and
> > lesstif-0.90.
> > Now I'm able to compile and link X- and Motif programs without 
> getting any
> > errors, but upon starting the compiled programs I keep getting a
> > STATUS_ACCESS_VIOLATION. Even the simplest X programs don't work.
> >
> > I installed the latest cygwin1.dll snapshot then, but nothing changed.
> >
> > Should I try to build X from source by myself?
> >
> > My system is running NT 4.0 SP 5 and I use Hummingbird Exceed 
> as X server.
> >
> > Please help me, I've got to get this thing going.
> >
> 
> 
> You should compile LessTif from the latest LessTif sources.  It had
> beena while I submitted precompiled LessTif binaries to LessTif.org.
> LessTif binaries are not my priority list any more because LessTif now
> compiles out of box under Cygwin.
> 
> I suspect the problem with LessTif binaries.
> 
> Suhaib

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]