public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* directory y: exe runs properly, directory x: exe quits straightaway
@ 2014-02-14 18:02 lothar atheling
  2014-02-14 19:50 ` Marco Atzeri
  0 siblings, 1 reply; 3+ messages in thread
From: lothar atheling @ 2014-02-14 18:02 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2400 bytes --]


i am porting an application built with Visual C++ to build under Mingw
gcc (CXX=/usr/bin/i686-w64-mingw32-g++)

in my development directory x, the program apparently builds correctly,
but it quits directly when run.

when i copy the exe to another directory y, the program runs well.

also, in the development directory, ldd shows:
$ ldd mung.exe
        ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
        kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000)

while in the copy directory, ldd shows:
$ ldd mung.exe
        ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
        kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000)
        GLU32.DLL => /xp0/WINDOWS/system32/GLU32.DLL (0x68b20000)
        msvcrt.dll => /xp0/WINDOWS/system32/msvcrt.dll (0x77c10000)
        OPENGL32.dll => /xp0/WINDOWS/system32/OPENGL32.dll (0x5ed00000)
        ADVAPI32.dll => /xp0/WINDOWS/system32/ADVAPI32.dll (0x77dd0000)
        RPCRT4.dll => /xp0/WINDOWS/system32/RPCRT4.dll (0x77e70000)
        Secur32.dll => /xp0/WINDOWS/system32/Secur32.dll (0x77fe0000)
        GDI32.dll => /xp0/WINDOWS/system32/GDI32.dll (0x77f10000)
        USER32.dll => /xp0/WINDOWS/system32/USER32.dll (0x7e410000)
        DDRAW.dll => /xp0/WINDOWS/system32/DDRAW.dll (0x73760000)
        DCIMAN32.dll => /xp0/WINDOWS/system32/DCIMAN32.dll (0x73bc0000)
        glut32.dll => /usr/bin/glut32.dll (0x10000000)
        WINMM.dll => /xp0/WINDOWS/system32/WINMM.dll (0x76b40000)
        libgcc_s_sjlj-1.dll =>
        /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll
        (0x6cec0000)
        libstdc++-6.dll =>
        /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll
        (0x6fc40000)

this behaviour has some reproducibility: if i copy the development
directory with tar and rebuild, the behaviour represents, whereas if i
make a new build directory, copy the sources and the makefile and
rebuild, the behaviour vanishes.

here is another scenario: 
i copy an exe unrelated to this project that i have built elsewhere to
the instant project development directory.
it also quits right off when run and ldd also lists only the 1st two
dlls. 

note that the bash environment and cygwin environment was the same in
all cases.

if someone has a clear understanding of what is going on here, i am
listening.

-- 
http://www.fastmail.fm - Send your email first class


[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 21823 bytes --]


Cygwin Package Information
Last downloaded files to: D:\yxm
Last downloaded files from: 

Package                   Version              Status
_autorebase               000456-1             OK
_update-info-dir          01204-1              OK
alternatives              1.3.30c-10           OK
autoconf                  13-1                 OK
autoconf2.1               2.13-12              OK
autoconf2.5               2.69-2               OK
automake                  9-1                  OK
automake1.10              1.10.3-1             OK
automake1.11              1.11.6-1             OK
automake1.12              1.12.5-1             OK
automake1.8               1.8.5-10             OK
automake1.9               1.9.6-10             OK
base-cygwin               3.3-1                OK
base-files                4.1-1                OK
bash                      4.1.10-4             OK
binutils                  2.23.51-1            OK
bzip2                     1.0.6-2              OK
coreutils                 8.15-1               OK
crypt                     1.2-1                OK
cygutils                  1.4.14-1             OK
cygwin                    1.7.27-2             OK
dash                      0.5.7-1              OK
diffutils                 3.2-1                OK
dos2unix                  6.0.3-1              OK
editrights                1.01-2               OK
ELFIO                     2.2-1                OK
file                      5.11-1               OK
findutils                 4.5.11-1             OK
gawk                      4.1.0-1              OK
gnupg                     1.4.15-1             OK
grep                      2.15-1               OK
gzip                      1.4-1                OK
less                      444-1                OK
libasn1_8                 1.5.2-4              OK
libattr1                  2.4.46-1             OK
libbz2_1                  1.0.6-2              OK
libcom_err2               1.42.7-1             OK
libcurl4                  7.33.0-1             OK
libdb4.5                  4.5.20.2-3           OK
libffi4                   4.5.3-3              OK
libgcc1                   4.8.2-2              OK
libgcrypt11               1.4.6-1              OK
libgdbm4                  1.8.3-20             OK
libgfortran3              4.8.2-2              OK
libgmp10                  5.1.3-1              OK
libgmp3                   4.3.2-1              OK
libgnutls26               2.12.20-1            OK
libgpg-error0             1.10-1               OK
libgssapi3                1.5.2-4              OK
libheimbase1              1.5.2-4              OK
libheimntlm0              1.5.2-4              OK
libhx509_5                1.5.2-4              OK
libiconv2                 1.14-2               OK
libidn11                  1.26-1               OK
libintl8                  0.18.1.1-2           OK
libkrb5_26                1.5.2-4              OK
liblapack0                3.5.0-2              OK
libltdl7                  2.4-1                OK
liblzma5                  5.0.2_20110517-1     OK
liblzo2_2                 2.06-1               OK
libmpc3                   1.0.1-2              OK
libmpfr4                  3.1.2-1              OK
libncurses10              5.7-18               OK
libncursesw10             5.7-18               OK
libopenldap2_4_2          2.4.35-2             OK
libopenssl100             1.0.1e-2             OK
libp11-kit0               0.18.7-1             OK
libpcre0                  8.21-2               OK
libpcre1                  8.33-1               OK
libpopt0                  1.6.4-4              OK
libreadline7              6.1.2-3              OK
libroken18                1.5.2-4              OK
libsasl2_3                2.1.26-5             OK
libsigsegv2               2.10-1               OK
libssh2_1                 1.4.2-1              OK
libssp0                   4.8.2-2              OK
libstdc++6                4.8.2-2              OK
libtasn1_3                2.14-1               OK
libtidy0_99_0             20090325-1           OK
libtool                   2.4-1                OK
libusb-win32              1.2.5.0-1            OK
libwind0                  1.5.2-4              OK
libxml2                   2.9.1-1              OK
libxslt                   1.1.28-1             OK
m4                        1.4.17-1             OK
make                      4.0-2                OK
mingw64-i686-binutils     2.22.52-1            OK
mingw64-i686-bzip2        1.0.6-4              OK
Empty package mingw64-i686-gcc
mingw64-i686-gcc          4.7.3-1              OK
mingw64-i686-gcc-core     4.8.2-1              OK
mingw64-i686-gcc-fortran  4.8.2-1              OK
mingw64-i686-gcc-g++      4.8.2-1              OK
mingw64-i686-headers      3.0b_svn5935-1       OK
mingw64-i686-libgcrypt    1.5.3-1              OK
mingw64-i686-libgpg-error 1.12-1               OK
mingw64-i686-minizip      1.2.8-3              OK
mingw64-i686-pthreads     20100619-5           OK
mingw64-i686-runtime      3.0b_svn5935-2       OK
mingw64-i686-winpthreads  3.0b_svn5935-1       OK
mingw64-i686-xz           5.0.5-1              OK
mingw64-i686-zlib         1.2.8-3              OK
mintty                    1.1.3-1              OK
opengl                    1.1.0-10             OK
perl                      5.14.2-3             OK
perl_vendor               5.14.2-3             OK
python3                   3.2.3-1              OK
python3-lxml              3.2.3-1              OK
python3-numpy             1.6.2-2              OK
python3-setuptools        0.6.34-1             OK
rebase                    4.4.1-1              OK
run                       1.3.0-1              OK
rxvt                      20050409-21          OK
sed                       4.2.2-3              OK
tar                       1.26-1               OK
terminfo                  5.7_20091114-14      OK
texinfo                   5.2-1                OK
tidy                      041206-1             OK
tzcode                    2013d-1              OK
unzip                     6.0-10               OK
vim                       7.3.1314-1           OK
vim-common                7.3.1314-1           OK
vim-minimal               7.3.1314-1           OK
Empty package w32api
w32api                    9999-1               OK
wget                      1.13.4-1             OK
which                     2.20-2               OK
xxd                       7.3.1314-1           OK
xz                        5.0.2_20110517-1     OK
zip                       3.0-11               OK
zlib0                     1.2.8-1              OK

Cygwin Configuration Diagnostics
Current System Time: Fri Feb 14 16:24:38 2014

Windows XP Professional Ver 5.1 Build 2600 Service Pack 3

Path:	H:\cygwin\usr\local\bin
	H:\cygwin\bin
	H:\WINDOWS\system32
	H:\WINDOWS
	H:\WINDOWS\System32\Wbem

Output from H:\cygwin\bin\id.exe
UID: 500(Administrator) GID: 513(None)
513(None)               0(root)                 544(Administrators)
545(Users)

SysDir: H:\WINDOWS\system32
WinDir: H:\WINDOWS

USER = 'Administrator'
PWD = '/xp0/openglut-0.6.3/lib'
HOME = '/home/Administrator'

HOMEPATH = '\Documents and Settings\Administrator'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man:'
APPDATA = 'H:\Documents and Settings\Administrator\Application Data'
HOSTNAME = 'humeloh'
SHELL = '/bin/bash'
TERM = 'rxvt-cygwin-native'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 23 Stepping 10, GenuineIntel'
WINDIR = 'H:\WINDOWS'
WINDOWID = '537147040'
OLDPWD = '/xp0/Documents and Settings/Administrator/bin'
USERDOMAIN = 'HUMELOH'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'H:\Documents and Settings\All Users'
LC_ALL = 'C'
temp = 'H:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
COMMONPROGRAMFILES = 'H:\Program Files\Common Files'
TMP = '/tmp'
USERNAME = 'Administrator'
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'H:'
LANG = 'en_US.UTF-8'
USERPROFILE = 'H:\Documents and Settings\Administrator'
CLIENTNAME = 'Console'
TZ = 'Europe/London'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\HUMELOH'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '1'
COLORFGBG = '0;default;15'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'H:'
COMSPEC = 'H:\WINDOWS\system32\cmd.exe'
SYSTEMROOT = 'H:\WINDOWS'
PROCESSOR_REVISION = '170a'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'H:\Program Files'
DISPLAY = ':0'
NUMBER_OF_PROCESSORS = '2'
SESSIONNAME = 'Console'
COMPUTERNAME = 'HUMELOH'
COLORTERM = 'rxvt-xpm'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\H:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'H:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 5c15029cbae0dd00 Path: H:\cygwin

a:  fd             N/A    N/A                    
c:  hd  NTFS     38256Mb  48% CP CS UN PA FC     xpc
d:  hd  NTFS     76512Mb  39% CP CS UN PA FC     xpd
e:  hd  NTFS     76512Mb  40% CP CS UN PA FC     xpe
h:  hd  NTFS     38256Mb  16% CP CS UN PA FC     xp0
i:  cd             N/A    N/A                    
j:  cd             N/A    N/A                    

H:\cygwin        /          system  binary,auto
H:\cygwin\bin    /usr/bin   system  binary,auto
H:\cygwin\lib    /usr/lib   system  binary,auto
h:               /xp0       system  binary
c:               /xpc       system  binary
d:               /xpd       system  binary
e:               /xpe       system  binary
cygdrive prefix  /cygdrive  user    binary,posix=0,auto

Found: H:\cygwin\bin\awk
 -> H:\cygwin\bin\gawk.exe
Found: H:\cygwin\bin\bash.exe
Found: H:\cygwin\bin\cat.exe
Found: H:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: H:\cygwin\bin\find.exe
Found: H:\WINDOWS\system32\find.exe
Warning: H:\cygwin\bin\find.exe hides H:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: H:\cygwin\bin\grep.exe
Found: H:\cygwin\bin\kill.exe
Found: H:\cygwin\bin\ld.exe
Found: H:\cygwin\bin\ls.exe
Found: H:\cygwin\bin\make.exe
Found: H:\cygwin\bin\mv.exe
Not Found: patch
Found: H:\cygwin\bin\perl.exe
Found: H:\cygwin\bin\rm.exe
Found: H:\cygwin\bin\sed.exe
Not Found: ssh
Found: H:\cygwin\bin\sh.exe
Found: H:\cygwin\bin\tar.exe
Found: H:\cygwin\bin\test.exe
Found: H:\cygwin\bin\vi.exe
Found: H:\cygwin\bin\vim.exe

  449k 2013/01/01 H:\cygwin\bin\cygasn1-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygasn1-8.dll" v0.0 ts=2013-01-01 06:34
   14k 2012/05/04 H:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012-05-04 12:35
   62k 2011/05/21 H:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011-05-21 20:16
   10k 2013/03/11 H:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2013-03-11 03:04
    7k 2012/05/07 H:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012-05-07 12:18
 1518k 2013/02/12 H:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2013-02-12 14:44
  421k 2013/11/14 H:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2013-11-14 03:28
  929k 2011/11/10 H:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2011-11-10 19:52
   93k 2011/11/10 H:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2011-11-10 19:53
   79k 2013/09/04 H:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexslt-0.dll" v0.0 ts=2013-09-04 17:49
   21k 2011/10/26 H:\cygwin\bin\cygffi-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-4.dll" v0.0 ts=2011-10-23 14:33
   43k 2010/01/02 H:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010-01-02 14:49
   47k 2010/01/02 H:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010-01-02 17:31
  101k 2013/12/06 H:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2013-12-06 11:12
  449k 2011/05/20 H:\cygwin\bin\cyggcrypt-11.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcrypt-11.dll" v0.0 ts=2011-05-20 03:29
   19k 2009/02/26 H:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009-02-26 07:58
    8k 2009/02/26 H:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009-02-26 07:58
  966k 2013/12/06 H:\cygwin\bin\cyggfortran-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggfortran-3.dll" v0.0 ts=2013-12-06 12:08
  452k 2013/10/18 H:\cygwin\bin\cyggmp-10.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-10.dll" v0.0 ts=2013-10-18 18:40
  317k 2011/07/31 H:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2011-07-31 06:14
  650k 2012/08/29 H:\cygwin\bin\cyggnutls-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-26.dll" v0.0 ts=2012-08-28 13:19
   22k 2012/08/29 H:\cygwin\bin\cyggnutls-extra-26.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-extra-26.dll" v0.0 ts=2012-08-28 13:19
   24k 2012/08/29 H:\cygwin\bin\cyggnutls-openssl-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutls-openssl-27.dll" v0.0 ts=2012-08-28 13:19
   52k 2012/08/29 H:\cygwin\bin\cyggnutlsxx-27.dll - os=4.0 img=1.0 sys=4.0
                  "cyggnutlsxx-27.dll" v0.0 ts=2012-08-28 13:19
   14k 2011/05/20 H:\cygwin\bin\cyggpg-error-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggpg-error-0.dll" v0.0 ts=2011-05-20 03:04
  180k 2013/01/01 H:\cygwin\bin\cyggssapi-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi-3.dll" v0.0 ts=2013-01-01 06:58
   11k 2013/01/01 H:\cygwin\bin\cygheimbase-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimbase-1.dll" v0.0 ts=2013-01-01 06:31
   20k 2013/01/01 H:\cygwin\bin\cygheimntlm-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimntlm-0.dll" v0.0 ts=2013-01-01 06:49
   25k 2012/05/04 H:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2012-05-04 22:07
  211k 2013/01/01 H:\cygwin\bin\cyghx509-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghx509-5.dll" v0.0 ts=2013-01-01 06:37
  985k 2011/10/16 H:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011-10-16 18:01
  192k 2013/04/05 H:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2013-04-05 09:35
   35k 2011/10/16 H:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2011-10-16 06:38
  373k 2013/01/01 H:\cygwin\bin\cygkrb5-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-26.dll" v0.0 ts=2013-01-01 06:43
   40k 2013/06/17 H:\cygwin\bin\cyglber-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-4-2.dll" v0.0 ts=2013-06-17 19:02
  230k 2013/06/17 H:\cygwin\bin\cygldap-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-4-2.dll" v0.0 ts=2013-06-17 19:03
  244k 2013/06/17 H:\cygwin\bin\cygldap_r-2-4-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-4-2.dll" v0.0 ts=2013-06-17 19:04
    5k 2013/12/09 H:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2013-12-09 10:57
    6k 2013/12/09 H:\cygwin\bin\cyglsa64.dll (not x86 dll)
   30k 2010/09/23 H:\cygwin\bin\cygltdl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-7.dll" v0.0 ts=2010-09-23 20:45
  123k 2011/05/19 H:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2011-05-19 03:41
  116k 2011/11/16 H:\cygwin\bin\cyglzo2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzo2-2.dll" v0.0 ts=2011-11-16 22:27
   94k 2012/04/22 H:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2012-04-22 19:09
   25k 2010/01/02 H:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010-01-02 14:48
   25k 2010/01/02 H:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010-01-02 17:30
  213k 2011/07/31 H:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2011-07-31 06:12
   92k 2013/04/11 H:\cygwin\bin\cygmpc-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpc-3.dll" v0.0 ts=2013-04-11 19:19
  344k 2013/04/11 H:\cygwin\bin\cygmpfr-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-4.dll" v0.0 ts=2013-04-11 19:07
   63k 2010/01/02 H:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010-01-02 15:00
   63k 2010/01/02 H:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010-01-02 17:41
  195k 2010/01/02 H:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010-01-02 14:45
  244k 2010/01/02 H:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010-01-02 17:28
  108k 2013/10/16 H:\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygp11-kit-0.dll" v0.0 ts=2013-10-16 04:49
   13k 2010/01/02 H:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010-01-02 14:47
   13k 2010/01/02 H:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010-01-02 16:30
  255k 2012/02/10 H:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2012-02-10 10:24
  270k 2013/08/04 H:\cygwin\bin\cygpcre-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-1.dll" v0.0 ts=2013-08-04 23:26
 1628k 2012/07/12 H:\cygwin\bin\cygperl5_14.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_14.dll" v0.0 ts=2012-07-12 20:17
   22k 2002/06/09 H:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002-06-09 06:45
  162k 2012/05/04 H:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2012-05-04 22:07
   51k 2013/01/01 H:\cygwin\bin\cygroken-18.dll - os=4.0 img=1.0 sys=4.0
                  "cygroken-18.dll" v0.0 ts=2013-01-01 06:32
  100k 2013/08/11 H:\cygwin\bin\cygsasl2-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-3.dll" v0.0 ts=2013-08-11 19:57
    8k 2011/05/05 H:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011-05-05 08:33
  131k 2012/05/21 H:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2012-05-21 05:57
  366k 2013/02/12 H:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2013-02-12 14:44
   11k 2013/12/06 H:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2013-12-06 11:49
  894k 2013/12/06 H:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2013-12-06 11:26
   59k 2012/10/02 H:\cygwin\bin\cygtasn1-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtasn1-3.dll" v0.0 ts=2012-10-01 16:28
   48k 2010/01/02 H:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010-01-02 14:45
   48k 2010/01/02 H:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010-01-02 17:28
  247k 2004/12/07 H:\cygwin\bin\cygtidy-0-99-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygtidy-0-99-0.dll" v0.0 ts=2004-12-07 14:34
   41k 2011/08/16 H:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2011-08-16 19:28
  157k 2013/01/01 H:\cygwin\bin\cygwind-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwind-0.dll" v0.0 ts=2013-01-01 06:33
 1235k 2013/04/21 H:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2013-04-21 05:37
  222k 2013/09/04 H:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxslt-1.dll" v0.0 ts=2013-09-04 17:49
   73k 2013/05/09 H:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2013-05-09 22:21
 3040k 2013/12/09 H:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2013-12-09 10:57
    Cygwin DLL version info:
        DLL version: 1.7.27
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 271
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.

Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: directory y: exe runs properly, directory x: exe quits straightaway
  2014-02-14 18:02 directory y: exe runs properly, directory x: exe quits straightaway lothar atheling
@ 2014-02-14 19:50 ` Marco Atzeri
       [not found]   ` <1392571459.4260.84059561.1F420E4B@webmail.messagingengine.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Atzeri @ 2014-02-14 19:50 UTC (permalink / raw)
  To: cygwin



On 14/02/2014 18:44, lothar atheling wrote:
>
> i am porting an application built with Visual C++ to build under Mingw
> gcc (CXX=/usr/bin/i686-w64-mingw32-g++)

this is not the mingw list...

> in my development directory x, the program apparently builds correctly,
> but it quits directly when run.
>
> when i copy the exe to another directory y, the program runs well.
>
> also, in the development directory, ldd shows:
> $ ldd mung.exe
>          ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
>          kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll (0x7c800000)
>
> while in the copy directory, ldd shows:
> $ ldd mung.exe
>          ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
[cut]
>          glut32.dll => /usr/bin/glut32.dll (0x10000000)
>          WINMM.dll => /xp0/WINDOWS/system32/WINMM.dll (0x76b40000)
>          libgcc_s_sjlj-1.dll =>
>          /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll
>          (0x6cec0000)
>          libstdc++-6.dll =>
>          /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll
>          (0x6fc40000)
>
> this behaviour has some reproducibility: if i copy the development
> directory with tar and rebuild, the behaviour represents, whereas if i
> make a new build directory, copy the sources and the makefile and
> rebuild, the behaviour vanishes.

ldd is not the right tool for this search.
It does not show the DLLs not available on path

try:
objdump -x mung |grep "DLL Name"




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: directory y: exe runs properly, directory x: exe quits straightaway
       [not found]   ` <1392571459.4260.84059561.1F420E4B@webmail.messagingengine.com>
@ 2014-02-16 18:15     ` Marco Atzeri
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Atzeri @ 2014-02-16 18:15 UTC (permalink / raw)
  To: lothar atheling, cygwin

please reply to the list

On 16/02/2014 18:24, lothar atheling wrote:
>
>
> On Fri, Feb 14, 2014, at 11:31 AM, Marco Atzeri wrote:
>>
>>
>> On 14/02/2014 18:44, lothar atheling wrote:
>>>
>>> i am porting an application built with Visual C++ to build under Mingw
>>> gcc (CXX=/usr/bin/i686-w64-mingw32-g++)
>>
>> this is not the mingw list...
>>
> this is a cygwin problem being reported to the cygwin list!!!!
>
> it is almost certainly not a compiler / toolchain issue.

for me it is a mingw program issue. Just personal opinion.

>>> this behaviour has some reproducibility: if i copy the development
>>> directory with tar and rebuild, the behaviour represents, whereas if i
>>> make a new build directory, copy the sources and the makefile and
>>> rebuild, the behaviour vanishes.
>>
>> ldd is not the right tool for this search.
>> It does not show the DLLs not available on path
>>
>> try:
>> objdump -x mung |grep "DLL Name"
>>
>   i had tried
>
>    objdump -x mung.exe
>
> for these exes - they were identical in all directories.

That is expected. "objdump -x" provides all the info, while
"ldd" only the list of dlls available on the PATH

> i mentioned that the bash environment and the cygwin environments were
> also the same in all cases.

to me it seems than in one case

 >>> $ ldd mung.exe
 >>>           ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
 >>>           kernel32.dll => /xp0/WINDOWS/system32/kernel32.dll 
(0x7c800000)

ldd find only these dll's in the PATH

While in the second case

 >>> while in the copy directory, ldd shows:
 >>> $ ldd mung.exe
 >>>           ntdll.dll => /xp0/WINDOWS/system32/ntdll.dll (0x7c900000)
 >> [cut]
 >>>           glut32.dll => /usr/bin/glut32.dll (0x10000000)
 >>>           WINMM.dll => /xp0/WINDOWS/system32/WINMM.dll (0x76b40000)
 >>>           libgcc_s_sjlj-1.dll =>
 >>>           /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll
 >>>           (0x6cec0000)
 >>>           libstdc++-6.dll =>
 >>>           /usr/i686-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll
 >>>           (0x6fc40000)
 >>>

ldd find all dll's on the PATH

Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-16 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14 18:02 directory y: exe runs properly, directory x: exe quits straightaway lothar atheling
2014-02-14 19:50 ` Marco Atzeri
     [not found]   ` <1392571459.4260.84059561.1F420E4B@webmail.messagingengine.com>
2014-02-16 18:15     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).