Subject: Re: under cygwin, zsh cannot run when built against ncurses9-5.7-13
From: "A.R. Burgers" <[email-masked]>
To: [email-masked]
Date: Tue, 17 Mar 2009 22:47:41 +0100
Newsgroups: gmane.os.cygwin
List-Id: <cygwin.cygwin.com>

A bit more info.

first depends.exe results (see png pictures).

the sudoku.exe test program that depends on libpng and libjpeg
as well does run. In the depends output of fluid.exe,
jpeg entry points appear in red for cygwin1.dll. Also cygwin1.dll
is listed a second time with the getreent entry.

The output of gcc -v for the link is in link_fluid.txt
and link_sudoku.txt. -lm and -lc are not linked to.
cygcheck and ldd output are below.

cygcheck and ldd were executed from within cygwin17,
but executed on both 1.5 and 1.7 fluid.exe. ldd.exe
does not detect the dependency on cygjpeg and cygpng
for the faulty 1.7 fluid.exe, though cygcheck does.

> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> $ cygcheck ./fluid.exe
> C:\cygwin\home\burgers\pkg\fltk-1.3\17\cygwin\fluid\fluid.exe
>   C:\cygwin17\bin\cygwin1.dll
>     C:\WINDOWS\system32\ADVAPI32.DLL
>       C:\WINDOWS\system32\ntdll.dll
>       C:\WINDOWS\system32\KERNEL32.dll
>       C:\WINDOWS\system32\RPCRT4.dll
>         C:\WINDOWS\system32\Secur32.dll
>   C:\cygwin17\bin\cygjpeg-62.dll
>   C:\cygwin17\bin\cygpng12.dll
>     C:\cygwin17\bin\cygz.dll
>   C:\WINDOWS\system32\COMCTL32.DLL
>     C:\WINDOWS\system32\GDI32.dll
>       C:\WINDOWS\system32\USER32.dll
>   C:\WINDOWS\system32\OLE32.dll
>     C:\WINDOWS\system32\msvcrt.dll
>   C:\WINDOWS\system32\SHELL32.DLL
>     C:\WINDOWS\system32\SHLWAPI.dll
> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> $ ldd ./fluid.exe
>         /drv/c/WINDOWS/system32/ntdll.dll (0x7c900000)
>         /drv/c/WINDOWS/system32/kernel32.dll (0x7c800000)
>         /usr/bin/cygwin1.dll (0x61000000)
>         /drv/c/WINDOWS/system32/ADVAPI32.DLL (0x77dd0000)
>         /drv/c/WINDOWS/system32/RPCRT4.dll (0x77e70000)
>         /drv/c/WINDOWS/system32/Secur32.dll (0x77fe0000)
> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> $ uname -r
> 1.7.0(0.206/5/3)
> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> $ cygcheck c:/cygwin/home/burgers/pkg/fltk-1.3/15/cygwin/fluid/fluid.exe
> c:\cygwin\home\burgers\pkg\fltk-1.3\15\cygwin\fluid\fluid.exe
>   C:\cygwin17\bin\cygwin1.dll
>     C:\WINDOWS\system32\ADVAPI32.DLL
>       C:\WINDOWS\system32\ntdll.dll
>       C:\WINDOWS\system32\KERNEL32.dll
>       C:\WINDOWS\system32\RPCRT4.dll
>         C:\WINDOWS\system32\Secur32.dll
>   C:\cygwin17\bin\cygjpeg-62.dll
>   C:\cygwin17\bin\cygpng12.dll
>     C:\cygwin17\bin\cygz.dll
>   C:\WINDOWS\system32\COMCTL32.DLL
>     C:\WINDOWS\system32\GDI32.dll
>       C:\WINDOWS\system32\USER32.dll
>   C:\WINDOWS\system32\OLE32.dll
>     C:\WINDOWS\system32\msvcrt.dll
>   C:\WINDOWS\system32\SHELL32.DLL
>     C:\WINDOWS\system32\SHLWAPI.dll
> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> $ ldd /drv/c/cygwin/home/burgers/pkg/fltk-1.3/15/cygwin/fluid/fluid.exe
>         /drv/c/WINDOWS/system32/ntdll.dll (0x7c900000)
>         /drv/c/WINDOWS/system32/kernel32.dll (0x7c800000)
>         /usr/bin/cygwin1.dll (0x61000000)
>         /drv/c/WINDOWS/system32/ADVAPI32.DLL (0x77dd0000)
>         /drv/c/WINDOWS/system32/RPCRT4.dll (0x77e70000)
>         /drv/c/WINDOWS/system32/Secur32.dll (0x77fe0000)
>         /usr/bin/cygjpeg-62.dll (0x63200000)
>         /usr/bin/cygpng12.dll (0x6f200000)
>         /usr/bin/cygz.dll (0x692c0000)
>         /drv/c/WINDOWS/system32/COMCTL32.DLL (0x5d090000)
>         /drv/c/WINDOWS/system32/GDI32.dll (0x77f10000)
>         /drv/c/WINDOWS/system32/USER32.dll (0x7e410000)
>         /drv/c/WINDOWS/system32/OLE32.dll (0x774e0000)
>         /drv/c/WINDOWS/system32/msvcrt.dll (0x77c10000)
>         /drv/c/WINDOWS/system32/SHELL32.DLL (0x7c9c0000)
>         /drv/c/WINDOWS/system32/SHLWAPI.dll (0x77f60000)
> 
> burgers@P4114 ~/pkg/fltk-1.3/17/cygwin/fluid
> 

A.R. Burgers schreef:

> A.R. Burgers schreef:
> 
>> The exact same problem as with zsh, I also run into with fltk's 
>> fluid.exe (from current 1.3 svn) on cygwin 1.7 and gcc 3.4.4.
>> fltk btw does not link to curses libraries.
>>
> 
> fltk's fluid depends on libpng and libjpeg.
> If I move back to from jpeg 6b-20 to 6b-12 and
> from png 1.2.35-10 to 1.2.12-1, the built fluid.exe
> will launch successfully.
> 
> Teun
> 
> 

echo Linking sudoku.exe...
Linking sudoku.exe...
windres sudoku.rc sudokures.o
g++ -v  -g -Wall -Wunused -Wno-format-y2k  -fno-exceptions -fno-strict-aliasing -mwindows  sudoku.o sudokures.o -o sudoku.exe -lwinmm ../lib/libfltk_images.a ../lib/libfltk.a -L../lib -lpng -lz -ljpeg  -lpthread  -lole32 -luuid -lcomctl32
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
 /usr/lib/gcc/i686-pc-cygwin/3.4.4/collect2.exe --subsystem windows -Bdynamic --dll-search-prefix=cyg -o sudoku.exe /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../crt0.o -L../lib -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../.. sudoku.o sudokures.o -lwinmm ../lib/libfltk_images.a ../lib/libfltk.a -lpng -lz -ljpeg -lpthread -lole32 -luuid -lcomctl32 -lstdc++ -lgcc -lcygwin -lgdi32 -lcomdlg32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
echo Linking fluid.exe...
Linking fluid.exe...
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
: /usr/bin/install -c -m 755 fluid fluid.app/Contents/MacOS

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