public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app
@ 2009-02-27 13:53 Alexey Lyubimov
  2009-02-27 14:25 ` Dave Korn
  0 siblings, 1 reply; 18+ messages in thread
From: Alexey Lyubimov @ 2009-02-27 13:53 UTC (permalink / raw)
  To: cygwin

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

Hello,
I decided to learn HOWTO write applications with ncurses library, but my attempt failed during linking step (seems to me, that for some reason ld did not find stdscr).

OS: Win98SE

Source (tnc.c):
------------------------------------------------
#include <curses.h> /* -lncurses */

int
main(int argc, char** argv)
{
  // Determine the terminal type and initialize curses data structures.
  // The first function called should almost always be initscr().
  initscr();

  printw("Hello World!"); // write to an imaginary window (stdscr buffer)
  refresh(); // dump the buffer contents on the screen
  
  // Clean up after the curses routines. Anytime after the call to
  // initscr(), endwin() should be called before exiting.
  endwin();
}
------------------------------------------------

$ gcc -otnc -g tnc.c -lncurses
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.Info: resolving _stdscr by linking to __imp__stdscr (auto-import)

Notes:
1. Without refresh() call, the program builds and runs Ok (but, of course, nothing is shown on the "real" screen).
2. After adding refresh() call, I get the "auto-import" warning shown above, and again NOTHING is shown on the real screen during program run :-(

Can anybody explain me, where is my mistake?

--
Thank you.
Alexey Lyubimov


      

[-- Attachment #2: cygcheckout.txt --]
[-- Type: text/plain, Size: 23312 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Fri Feb 27 16:30:03 2009

Windows 98 SE Ver 4.10 Build 2222 

Path:	C:\cygwin\usr\sbin
	e:\home\ael\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	e:\HOME\AEL\BIN
	e:\SIEMENS\COMMON\BIN
	e:\SIEMENS\COMMON\SQLANY
	c:\WINDOWS
	c:\WINDOWS\COMMAND
	e:\USR\BIN
	e:\PROGRA~1\BORLAND\CBUILD~1\BIN
	e:\PROGRA~1\BORLAND\CBUILD~1\PROJECTS\BPL
	c:\PROGRA~1\COMMON~1\AUTODE~1
	e:\USR\LOCAL\MATLAB6P5P1\BIN\WIN32
	e:\USR\LOCAL\SVN\BIN
	e:\PROGRA~1\IMAGEMAGICK-6.4.9-Q16\BIN
	e:\PROGRA~1\7-ZIP
	e:\PROGRA~1\SDCC\BIN
	e:\PROGRA~1\FIREBIRD\FIREBIRD_2_1\BIN

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 910(ael) GID: 544(all)
544(all)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 910(ael) GID: 544(all)
544(all)

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

USER = 'ael'
PWD = '/cygdrive/e/home/ael/work/ncurses'
CYGWIN = 'server'
HOME = '/cygdrive/e/home/ael'
MAKE_MODE = 'unix'

MANPATH = '/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
SQLANY = 'e:\Siemens\Common\sqlany'
HOSTNAME = 'AEL'
TERM = 'cygwin'
CMDLINE = 'bash --login -i'
WINDIR = 'C:\WINDOWS'
CVSROOT = ':local:/cygdrive/c/usr/local/CVS'
OLDPWD = '/cygdrive/e/home/ael/work/gt'
SNDSCAPE = 'C:\WINDOWS'
TEMP = '/cygdrive/c/windows/temp'
TVDUMPFLAGS = '8'
TZ = 'UTC-3MSD'
PS1 = '\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
!C: = 'C:\cygwin\bin'
WINBOOTDIR = 'C:\WINDOWS'
SHLVL = '1'
FIREBIRD = 'e:\progra~1\firebird\firebird_2_1'
BLASTER = 'A220 I7 D1 T2 '
COMSPEC = 'C:\COMMAND.COM'
PROMPT = '$p$g'
TMP = '/cygdrive/c/windows/temp'
PRINTER = 'PDFCreator'
CVS_RSH = '/bin/ssh'
S7TMP = 'E:\Siemens\Step7\S7tmp'
PGDATA = '/usr/share/postgresql/data'
!E: = 'E:\home\ael\work\ncurses'
INFOPATH = '/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
_ = '/usr/bin/cygcheck'
SYSTEMROOT = 'C:\WINDOWS'

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 = 0x00000022
HKEY_CURRENT_USER\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
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

a:  fd             N/A    N/A                    
c:  hd  FAT32     2935Mb  41% CP    UN           DOS_32
d:  hd  FAT         46Mb  55% CP    UN           DOS
e:  hd  FAT32    12350Mb  92% CP    UN           
f:  cd             N/A    N/A                    

.              /cygdrive  user    binmode,cygdrive
C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: e:\PROGRA~1\BORLAND\CBUILD~1\BIN\grep.exe
Warning: C:\cygwin\bin\grep.exe hides e:\PROGRA~1\BORLAND\CBUILD~1\BIN\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: e:\USR\BIN\make.exe
Warning: C:\cygwin\bin\make.exe hides e:\USR\BIN\make.exe
Found: e:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
Warning: C:\cygwin\bin\make.exe hides e:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: e:\USR\BIN\tar.exe
Warning: C:\cygwin\bin\tar.exe hides e:\USR\BIN\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 11:57
  271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 11:24
  118k 2007/04/06 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2007/4/7 0:43
  647k 2007/12/17 C:\cygwin\bin\cygdb-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.1.dll" v0.0 ts=2007/12/16 21:35
  703k 2007/12/17 C:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.2.dll" v0.0 ts=2007/12/17 14:58
  181k 2008/09/07 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/9/7 7:36
  103k 2008/09/07 C:\cygwin\bin\cygneon-27.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-27.dll" v0.0 ts=2008/8/28 15:10
   39k 2008/09/07 C:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 16:28
  189k 2008/09/07 C:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 16:29
  201k 2008/09/07 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 16:31
  302k 2008/09/07 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/9/7 7:36
   46k 2009/01/07 C:\cygwin\bin\cygecpg.dll - os=4.0 img=1.0 sys=4.0
                  "cygecpg.dll" v0.0 ts=2009/1/7 19:46
  967k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.1.dll" v0.0 ts=2007/12/16 21:35
 1036k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.2.dll" v0.0 ts=2007/12/17 14:58
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 6:05
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 11:58
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 12:00
   52k 2009/01/07 C:\cygwin\bin\cygpgtypes.dll - os=4.0 img=1.0 sys=4.0
                  "cygpgtypes.dll" v0.0 ts=2009/1/7 19:46
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 12:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/11 1:50
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 5:04
  103k 2009/01/07 C:\cygwin\bin\cygpq.dll - os=4.0 img=1.0 sys=4.0
                  "cygpq.dll" v0.0 ts=2009/1/7 19:46
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 13:25
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 13:25
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 13:24
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 13:24
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 9:45
   29k 2003/08/11 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/11 3:16
  148k 2003/08/11 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/11 3:16
    7k 2008/09/07 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/9/7 7:36
 1543k 2008/07/03 C:\cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 20:06
 1125k 2006/10/04 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2006/10/4 16:12
  231k 2006/10/04 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2006/10/4 16:12
   24k 2008/11/29 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/11/29 17:30
 1082k 2009/01/28 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2009/1/28 7:37
  155k 2008/11/29 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/11/29 17:30
  107k 2009/01/18 C:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2009/1/18 22:12
   89k 2008/09/01 C:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2008/9/1 11:48
   97k 2007/09/16 C:\cygwin\bin\cygneon-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-26.dll" v0.0 ts=2007/9/16 21:41
  430k 2009/01/28 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2009/1/28 8:48
   24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/31 2:53
   61k 2008/04/01 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/4/1 6:37
   19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 10:55
    8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 10:56
   28k 2009/02/21 C:\cygwin\bin\cygltdl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-7.dll" v0.0 ts=2009/2/21 6:53
   41k 2009/02/23 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/2/23 19:21
   21k 2009/02/23 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/2/23 19:20
  335k 2009/02/23 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/2/23 19:28
  161k 2009/02/23 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/2/23 19:18
   43k 2009/02/02 C:\cygwin\bin\cygserf-0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygserf-0-0.dll" v0.0 ts=2009/2/2 21:03
   11k 2009/02/23 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/2/23 19:19
   66k 2009/02/23 C:\cygwin\bin\cygtic-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-8.dll" v0.0 ts=2009/2/23 19:15
   90k 2006/01/25 C:\cygwin\bin\cygneon-25.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-25.dll" v0.0 ts=2006/1/25 14:02
  219k 2008/12/31 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2008/12/31 11:00
  764k 2007/12/17 C:\cygwin\bin\cygdb-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.3.dll" v0.0 ts=2007/12/17 15:29
 1106k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.3.dll" v0.0 ts=2007/12/17 15:29
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 16:12
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 16:12
  963k 2008/12/31 C:\cygwin\bin\cyggettextlib-0-17.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-17.dll" v0.0 ts=2008/12/31 10:51
   31k 2008/12/31 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2008/12/31 10:42
  761k 2008/09/30 C:\cygwin\bin\cygruby18.dll - os=4.0 img=1.0 sys=4.0
                  "cygruby18.dll" v0.0 ts=2008/9/30 17:10
   65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/16 5:10
  203k 2008/12/31 C:\cygwin\bin\cyggettextsrc-0-17.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-17.dll" v0.0 ts=2008/12/31 10:54
  232k 2009/01/08 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2009/1/8 13:03
    7k 2008/11/10 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2008/11/10 3:34
  161k 2008/06/01 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2008/6/2 2:16
   41k 2007/03/31 C:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2007/4/1 0:00
   19k 2008/10/26 C:\cygwin\bin\cygfontenc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontenc-1.dll" v0.0 ts=2008/10/27 0:25
 1074k 2009/01/08 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2009/1/8 13:03
  212k 2008/12/23 C:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2008/12/23 22:22
   34k 2008/12/23 C:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2008/12/23 21:55
  978k 2008/11/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2008/11/10 3:35
   32k 2008/12/23 C:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2008/12/23 21:56
   15k 2008/12/23 C:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2008/12/23 22:04
  136k 2008/12/23 C:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2008/12/23 21:58
  106k 2008/12/23 C:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2008/12/23 21:57
    6k 2008/12/23 C:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2008/12/23 21:55
   83k 2007/06/06 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2007/6/6 14:41
   24k 2008/04/14 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2008/4/14 9:40
   26k 2008/12/23 C:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2008/12/23 22:11
   22k 2008/12/23 C:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2008/12/23 22:06
  118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/9 8:03
  111k 2008/12/23 C:\cygwin\bin\cygsvn_ra_neon-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_neon-1-0.dll" v0.0 ts=2008/12/23 22:01
  115k 2008/12/23 C:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2008/12/23 22:02
   67k 2008/12/23 C:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2008/12/23 21:59
  221k 2007/06/30 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2007/6/30 4:54
   78k 2004/10/13 C:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2004/10/14 2:50
  118k 2007/06/27 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2007/6/27 9:56
   12k 2008/08/26 C:\cygwin\bin\cyglzmadec-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzmadec-0.dll" v0.0 ts=2008/8/26 6:31
  355k 2008/09/09 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2008/9/9 22:20
  132k 2008/12/23 C:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2008/12/23 22:05
  191k 2008/12/23 C:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2008/12/23 21:54
  209k 2008/12/23 C:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2008/12/23 22:00
 1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/6/12 21:35
    Cygwin DLL version info:
        DLL version: 1.5.25
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        Shared data: 4
        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
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Jun 12 19:34:46 CEST 2008
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4

Can't GetProcAddress() for NtQuerySystemInformation, skipping dodgy app check.

Cygwin Package Information
Last downloaded files to: E:\usr\incoming\a-d\cygwin
Last downloaded files from: ftp://mirrors.xmission.com/cygwin/

Package                 Version
_update-info-dir        00808-1
alternatives            1.3.30c-2
ash                     20040127-4
autoconf                6-1
autoconf2.1             2.13-5
autoconf2.5             2.63-1
automake                3-1
automake1.10            1.10.1-2
automake1.4             1.4p6-5
automake1.5             1.5-3
automake1.6             1.6.3-5
automake1.7             1.7.9-4
automake1.8             1.8.5-4
automake1.9             1.9.6-3
base-files              3.7-1
base-passwd             2.2-1
bash                    3.2.48-21
binutils                20080624-2
bison                   2.3-1
bool                    0.2.1-1
bzip2                   1.0.5-2
ccrypt                  1.7-1
colordiff               1.0.7-1
coreutils               6.10-2
crypt                   1.1-1
cvs                     1.11.22-1
cygutils                1.3.2-1
cygwin                  1.5.25-15
cygwin-doc              1.4-4
diffutils               2.8.7-1
editrights              1.01-2
expat                   2.0.1-1
file                    4.21-1
findutils               4.4.0-3
font-bitstream-vera-ttf 1.10-1
fontconfig              2.6.0-1
gawk                    3.1.6-1
gcc                     3.4.4-3
gcc-core                3.4.4-3
gcc-g++                 3.4.4-3
gcc-java                3.4.4-3
gcc-mingw-core          20050522-1
gcc-mingw-g++           20050522-1
gcc-mingw-java          20050522-1
gdb                     6.8-2
gdbm                    1.8.3-9
gettext                 0.17-3
gettext-devel           0.17-3
gnupg                   1.4.9-2
grep                    2.5.3-1
groff                   1.19.2-2
gzip                    1.3.12-2
less                    382-1
libapr1                 1.3.3-3
libaprutil1             1.3.4-1
libbz2_1                1.0.5-2
libcharset1             1.12-1
libcurl4                7.16.3-1
libdb4.1                4.1.25.3-2
libdb4.2                4.2.52.5-2
libdb4.3                4.3.29.1-1
libdb4.5                4.5.20.2-2
libecpg5                8.2.11-1
libexpat0               1.95.8-2
libexpat1               2.0.1-1
libexpat1-devel         2.0.1-1
libfontconfig1          2.6.0-1
libfontenc1             1.0.4-2
libfreetype26           2.3.8-1
libfreetype6            2.3.8-1
libgdbm                 1.8.0-5
libgdbm-devel           1.8.3-9
libgdbm3                1.8.3-3
libgdbm4                1.8.3-9
libgettextpo0           0.17-3
libiconv                1.12-1
libiconv2               1.12-1
libintl1                0.10.40-1
libintl2                0.12.1-3
libintl3                0.14.5-1
libintl8                0.17-3
libltdl3                1.5.27a-1
libltdl7                2.2.7a-1
liblzmadec0             4.32.7-2
libncurses-devel        5.7-1
libncurses7             5.3-4
libncurses8             5.7-1
libneon25               0.25.5-1
libneon26               0.26.4-1
libneon27               0.28.3-1
libopenldap2_3_0        2.3.43-1
libpcre0                7.8-1
libpgtypes2             8.2.11-1
libpopt0                1.6.4-4
libpq4                  8.2.5-1
libpq5                  8.2.11-1
libreadline5            4.3-5
libreadline6            5.2.13-11
libsasl2                2.1.19-3
libserf0_0              0.3.0-1
libsqlite3_0            3.6.2-1
libssh2_1               0.15-1
libtool                 2.2.7a-1
libusb-win32            0.1.12.1-2
libxml2                 2.7.3-1
login                   1.9-8
lzma                    4.32.7-2
m4                      1.4.10b-2
make                    3.81-2
man                     1.6e-1
mingw-runtime           3.15.2-1
minires                 1.02-1
mkfontdir               1.0.4-1
mkfontscale             1.0.5-1
ncurses                 5.7-1
openssl                 0.9.8j-1
openssl097              0.9.7l-1
patch                   2.5.8-9
perl                    5.10.0-5
perl-libwin32           0.28-2
pkg-config              0.23a-2
popt                    1.6.4-4
postgresql              8.2.11-1
postgresql-client       8.2.11-1
python                  2.5.2-1
readline                5.2.13-11
rebase                  2.4.4-1
rpm                     4.1-2
rsync                   3.0.4-1
ruby                    1.8.7-p72-2
run                     1.1.10-1
rxvt                    20050409-9
sed                     4.1.5-2
subversion              1.5.5-1
tar                     1.21-1
tcltk                   20080420-1
termcap                 20050421-1
terminfo                5.7_20090221-1
texinfo                 4.8a-1
time                    1.7-2
tzcode                  2008h-1
vim                     7.2-3
w32api                  3.13-1
which                   2.20-1
zlib                    1.2.3-2
Use -h to see help about each section

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

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-02-27 13:53 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app Alexey Lyubimov
@ 2009-02-27 14:25 ` Dave Korn
  0 siblings, 0 replies; 18+ messages in thread
From: Dave Korn @ 2009-02-27 14:25 UTC (permalink / raw)
  To: cygwin

Alexey Lyubimov wrote:
> Hello, I decided to learn HOWTO write applications with ncurses library,
> but my attempt failed during linking step (seems to me, that for some
> reason ld did not find stdscr).

  Not quite.  It found it, but wasn't prepared for /where/ it found it.

> $ gcc -otnc -g tnc.c -lncurses 
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
> warning: auto-importing has been activated without --enable-auto-import
> specified on the command line. This should work unless it involves constant
> data structures referencing symbols from auto-imported DLLs.Info: resolving
> _stdscr by linking to __imp__stdscr (auto-import)

  On win32, linking against shared libraries (DLLs) doesn't work quite the
same as on Linux platforms, and this is one of the minor cases.  You need to
pass the --enable-auto-import option to the linker, which can be done by
adding "-Wl,--enable-auto-import" to your gcc command line.

  Also, the reason it seems to do nothing is because as soon as it prints
"Hello World", it immediately exits, restoring the original screen contents!
Try adding "getc(stdin)" just after the refresh() call if you want to see the
output!

    cheers,
      DaveK


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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build        Hello_world app
  2009-03-04  2:21           ` Dave Korn
@ 2009-03-04  2:32             ` Charles Wilson
  0 siblings, 0 replies; 18+ messages in thread
From: Charles Wilson @ 2009-03-04  2:32 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:

>   Right; but seeing as he /didn't/ add -ltinfo, he would have ended up with
> exactly the error we saw, wouldn't he?

No, because the headers that came with 5.7-2 had macros that turned his
code 'curscr' into 'ncwrap_curscr()'.  In the briefly released 5.7-1 the
macros turned 'curscr' into '_nc_curscr()'.  So, the only way his object
code would be "looking" for the symbol "_curscr" would be if he was
using the headers from ncurses-5.5-3 or older.  But the headers and
import libraries are distributed in the same package; it's not possible
to have the headers from one release and the import libraries from a
different one.

Unless you do
$ gcc -o foo.o -c foo.c

and then upgrade ncurses-devel, before doing
$ gcc -o foo.exe foo.o -lncurses

But Alexey did the compile and link all in one command.  That's a REALLY
fast setup.exe...

That's why I was confused.  But, 'tis working now, with 5.7-3. So...

--
Chuck


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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build       Hello_world app
  2009-03-04  1:07         ` Charles Wilson
@ 2009-03-04  2:21           ` Dave Korn
  2009-03-04  2:32             ` Charles Wilson
  0 siblings, 1 reply; 18+ messages in thread
From: Dave Korn @ 2009-03-04  2:21 UTC (permalink / raw)
  To: cygwin

Charles Wilson wrote:
> Dave Korn wrote:
>> Charles Wilson wrote:
>>> Nah.  That scenario might cause a run-time failure, but not a link-time
>>> failure like the one Alexey described.
>>   He'd end up with the old DLL but the /new/ import library, wouldn't he?  So
>> adding -ltinfo might fix the link, but then it would fail to find the right
>> imports if he had tried running it?
>>
> 
> Exactly.

  Right; but seeing as he /didn't/ add -ltinfo, he would have ended up with
exactly the error we saw, wouldn't he?

    cheers,
      DaveK

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build      Hello_world app
  2009-03-03 18:36       ` Dave Korn
@ 2009-03-04  1:07         ` Charles Wilson
  2009-03-04  2:21           ` Dave Korn
  0 siblings, 1 reply; 18+ messages in thread
From: Charles Wilson @ 2009-03-04  1:07 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:
> Charles Wilson wrote:
>> Nah.  That scenario might cause a run-time failure, but not a link-time
>> failure like the one Alexey described.
> 
>   He'd end up with the old DLL but the /new/ import library, wouldn't he?  So
> adding -ltinfo might fix the link, but then it would fail to find the right
> imports if he had tried running it?
> 

Exactly.

--
Chuck

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build     Hello_world app
  2009-03-03 16:53     ` Charles Wilson
@ 2009-03-03 18:36       ` Dave Korn
  2009-03-04  1:07         ` Charles Wilson
  0 siblings, 1 reply; 18+ messages in thread
From: Dave Korn @ 2009-03-03 18:36 UTC (permalink / raw)
  To: cygwin

Charles Wilson wrote:
> Dave Korn wrote:
>> Charles Wilson wrote:
>>> Alexey Lyubimov wrote:
> 
>>>> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
>>>> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
>>>> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
>>>> collect2: ld returned 1 exit status
> 
>>   My guess is that Alexey didn't notice a dll-in-use-must-reboot warning on
>> cygncurses-8.dll when running setup.exe, and a reboot might have fixed it.
> 
> Nah.  That scenario might cause a run-time failure, but not a link-time
> failure like the one Alexey described.

  He'd end up with the old DLL but the /new/ import library, wouldn't he?  So
adding -ltinfo might fix the link, but then it would fail to find the right
imports if he had tried running it?

    cheers,
      DaveK

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build    Hello_world app
  2009-03-03 16:42   ` Dave Korn
@ 2009-03-03 16:53     ` Charles Wilson
  2009-03-03 18:36       ` Dave Korn
  0 siblings, 1 reply; 18+ messages in thread
From: Charles Wilson @ 2009-03-03 16:53 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:
> Charles Wilson wrote:
>> Alexey Lyubimov wrote:

>>> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
>>> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
>>> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
>>> collect2: ld returned 1 exit status

>   My guess is that Alexey didn't notice a dll-in-use-must-reboot warning on
> cygncurses-8.dll when running setup.exe, and a reboot might have fixed it.

Nah.  That scenario might cause a run-time failure, but not a link-time
failure like the one Alexey described.

--
Chuck


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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build   Hello_world app
  2009-03-03 16:28 ` Charles Wilson
@ 2009-03-03 16:42   ` Dave Korn
  2009-03-03 16:53     ` Charles Wilson
  0 siblings, 1 reply; 18+ messages in thread
From: Dave Korn @ 2009-03-03 16:42 UTC (permalink / raw)
  To: cygwin

Charles Wilson wrote:
> Alexey Lyubimov wrote:
>> Unfortunately, things went worse :-(
>> After I've upgraded to GCC 3.4.4-999 and libncurses9-5.7-2 I get the following error instead of a ld's warning (see my first message in this thread for the reference):
>>
>> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
>> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
>> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
>> collect2: ld returned 1 exit status
> 
> The only way this could've happened is if you compiled tnc.c with the
> 5.5-3 headers (that is, the ones matching libncurses8) but tried to link
> against libncurses9 (e.g. 5.7-1, 5.7-2, or 5.7-3).  However, because the
> link libraries and header files are all distributed together in one
> package (libncurses-devel), AND because you compiled and linked all at
> once in the same command, I'm at a loss to explain what happened.

  My guess is that Alexey didn't notice a dll-in-use-must-reboot warning on
cygncurses-8.dll when running setup.exe, and a reboot might have fixed it.

  Erk.  I wonder what happens if you update, it adds a file to the
rename-on-reboot list, then update again - this time without a shell (or
whatever) running so that it goes ahead and installs the even-newer version
successfully.  I suspect a reboot might bring auto-downgrade in its wake :-(
not good.

  Alexey, if this happens, you might need to reinstall libncurses.  If you
haven't rebooted yet, is there a file called "wininit.ini" in your \WINDOWS
folder?  Or any file matching "*.dll.new" in /bin?

    cheers,
      DaveK


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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-03-03 11:48 Alexey Lyubimov
  2009-03-03 13:30 ` Dave Korn
  2009-03-03 13:42 ` Dave Korn
@ 2009-03-03 16:28 ` Charles Wilson
  2009-03-03 16:42   ` Dave Korn
  2 siblings, 1 reply; 18+ messages in thread
From: Charles Wilson @ 2009-03-03 16:28 UTC (permalink / raw)
  To: cygwin

Alexey Lyubimov wrote:
> Unfortunately, things went worse :-(
> After I've upgraded to GCC 3.4.4-999 and libncurses9-5.7-2 I get the following error instead of a ld's warning (see my first message in this thread for the reference):
> 
> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
> collect2: ld returned 1 exit status

The only way this could've happened is if you compiled tnc.c with the
5.5-3 headers (that is, the ones matching libncurses8) but tried to link
against libncurses9 (e.g. 5.7-1, 5.7-2, or 5.7-3).  However, because the
link libraries and header files are all distributed together in one
package (libncurses-devel), AND because you compiled and linked all at
once in the same command, I'm at a loss to explain what happened.

FYI, for ease of diagnosing build failures like this, I usually -- even
when an app consists of only a single source file -- compile and link in
separate steps:

$ gcc -g -o tnc.o -c tnc.c
$ gcc -Wl,--enable-auto-import -o tnc tnc.o -lncurses

My first guess, with 5.7-1 and 5.7-2, but not 5.7-3, would be that the
stdscr symbol has moved from the ncurses library to the tinfo library,
so you needed to link using '-lncurses -ltinfo'.  BUT, in the 5.7
versions of ncurses, that symbol is no longer named _stdscr (you use
stdscr in YOUR code, but the ncurses.h header magic turns it into
ncwrap_stdscr() behind your back).  So, if THAT were the problem, you'd
have seen "...tnc.c:15: undefined reference to `_ncwrap_scdstr'" once
you got to the linker stage.

In any case, the tinfo library has been re-merged back into the main
ncurses library with the release of 5.7-3/5.7-12.

So, my recommendation in any case would have been to upgrade to
ncurses-5.7-3 once it propagated to the mirrors. So, I'm glad that fixed
the problem for you.

Sorry for the trouble.

--
Chuck

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app
@ 2009-03-03 14:01 Alexey Lyubimov
  0 siblings, 0 replies; 18+ messages in thread
From: Alexey Lyubimov @ 2009-03-03 14:01 UTC (permalink / raw)
  To: cygwin


Thanks again, Dave!
I've updated again too, and now ncurses 5.7-3 works for me also! :-)



      

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-03-03 11:48 Alexey Lyubimov
  2009-03-03 13:30 ` Dave Korn
@ 2009-03-03 13:42 ` Dave Korn
  2009-03-03 16:28 ` Charles Wilson
  2 siblings, 0 replies; 18+ messages in thread
From: Dave Korn @ 2009-03-03 13:42 UTC (permalink / raw)
  To: cygwin

Alexey Lyubimov wrote:

> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses 
> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main': 
> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to
> `_stdscr' collect2: ld returned 1 exit status
> 
> "-Wl,--enable-auto-import" works fine with the previous release of GCC
> v3.4.4-3 and libncurses8.
> 
> What is wrong now?

  Dunno, since I can't reproduce it.  But there's been a couple of reissues of
ncurses updates recently owing to bugs connected to the exported apis, and
while you've got libncurses-5.7-2, I just did an update and got 5.7-3, so I
think there's maybe a bugfix version in the process of propagating to the
mirrors and not yet announced.  Try upgrading again!

    cheers,
      DaveK


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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-03-03 11:48 Alexey Lyubimov
@ 2009-03-03 13:30 ` Dave Korn
  2009-03-03 13:42 ` Dave Korn
  2009-03-03 16:28 ` Charles Wilson
  2 siblings, 0 replies; 18+ messages in thread
From: Dave Korn @ 2009-03-03 13:30 UTC (permalink / raw)
  To: cygwin

Alexey Lyubimov wrote:
> Unfortunately, things went worse :-( After I've upgraded to GCC 3.4.4-999
> and libncurses9-5.7-2 I get the following error instead of a ld's warning
> (see my first message in this thread for the reference):
> 
> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses 
> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main': 
> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to
> `_stdscr' collect2: ld returned 1 exit status
> 
> "-Wl,--enable-auto-import" works fine with the previous release of GCC
> v3.4.4-3 and libncurses8.
> 
> What is wrong now?

  Dunno yet, but I'll see if I can reproduce.  There have been updates to
ncurses as well as gcc.  I've still got an old ncurses and new gcc:

/tmp/hash $ cygcheck -c libncurses-devel gcc-core
Cygwin Package Information
Package              Version        Status
gcc-core             3.4.4-999      OK
libncurses-devel     5.5-3          OK

.. so I'll see if I can reproduce it, then upgrade my ncurses and try again.

    cheers,
      DaveK



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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app
@ 2009-03-03 11:48 Alexey Lyubimov
  2009-03-03 13:30 ` Dave Korn
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Alexey Lyubimov @ 2009-03-03 11:48 UTC (permalink / raw)
  To: cygwin

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

Unfortunately, things went worse :-(
After I've upgraded to GCC 3.4.4-999 and libncurses9-5.7-2 I get the following error instead of a ld's warning (see my first message in this thread for the reference):

$ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
/cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
/cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
collect2: ld returned 1 exit status

"-Wl,--enable-auto-import" works fine with the previous release of GCC v3.4.4-3 and libncurses8.

What is wrong now?

--
Thank you,
Alexey Lyubimov





      

[-- Attachment #2: cygcheckout.txt --]
[-- Type: text/plain, Size: 24227 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Mar 03 14:36:23 2009

Windows 98 SE Ver 4.10 Build 2222 

Path:	C:\cygwin\usr\sbin
	e:\home\ael\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	e:\HOME\AEL\BIN
	e:\SIEMENS\COMMON\BIN
	e:\SIEMENS\COMMON\SQLANY
	c:\WINDOWS
	c:\WINDOWS\COMMAND
	e:\USR\BIN
	e:\PROGRA~1\BORLAND\CBUILD~1\BIN
	e:\PROGRA~1\BORLAND\CBUILD~1\PROJECTS\BPL
	c:\PROGRA~1\COMMON~1\AUTODE~1
	e:\USR\LOCAL\MATLAB6P5P1\BIN\WIN32
	e:\USR\LOCAL\SVN\BIN
	e:\PROGRA~1\IMAGEMAGICK-6.4.9-Q16\BIN
	e:\PROGRA~1\7-ZIP
	e:\PROGRA~1\SDCC\BIN
	e:\PROGRA~1\FIREBIRD\FIREBIRD_2_1\BIN

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 910(ael) GID: 544(all)
544(all)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 910(ael) GID: 544(all)
544(all)

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

USER = 'ael'
PWD = '/cygdrive/e/home/ael/work/ncurses'
CYGWIN = 'server'
HOME = '/cygdrive/e/home/ael'
MAKE_MODE = 'unix'

MANPATH = '/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
SQLANY = 'e:\Siemens\Common\sqlany'
HOSTNAME = 'AEL'
TERM = 'cygwin'
CMDLINE = 'bash --login -i'
WINDIR = 'C:\WINDOWS'
CVSROOT = ':local:/cygdrive/c/usr/local/CVS'
OLDPWD = '/cygdrive/e/home/ael/work/gt'
SNDSCAPE = 'C:\WINDOWS'
TEMP = '/cygdrive/c/windows/temp'
TVDUMPFLAGS = '8'
TZ = 'UTC-3MSD'
PS1 = '\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
!C: = 'C:\cygwin\bin'
WINBOOTDIR = 'C:\WINDOWS'
SHLVL = '1'
FIREBIRD = 'e:\progra~1\firebird\firebird_2_1'
BLASTER = 'A220 I7 D1 T2 '
COMSPEC = 'C:\COMMAND.COM'
PROMPT = '$p$g'
TMP = '/cygdrive/c/windows/temp'
PRINTER = 'PDFCreator'
CVS_RSH = '/bin/ssh'
S7TMP = 'E:\Siemens\Step7\S7tmp'
PGDATA = '/usr/share/postgresql/data'
!E: = 'E:\Program Files\Mozilla Firefox 2'
INFOPATH = '/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
_ = '/usr/bin/cygcheck'
SYSTEMROOT = 'C:\WINDOWS'

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 = 0x00000022
HKEY_CURRENT_USER\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
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

a:  fd             N/A    N/A                    
c:  hd  FAT32     2935Mb  98% CP    UN           DOS_32
d:  hd  FAT         46Mb  55% CP    UN           DOS
e:  hd  FAT32    12350Mb  87% CP    UN           
f:  cd             N/A    N/A                    

.              /cygdrive  user    binmode,cygdrive
C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Not Found: gcc
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: e:\PROGRA~1\BORLAND\CBUILD~1\BIN\grep.exe
Warning: C:\cygwin\bin\grep.exe hides e:\PROGRA~1\BORLAND\CBUILD~1\BIN\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: e:\USR\BIN\make.exe
Warning: C:\cygwin\bin\make.exe hides e:\USR\BIN\make.exe
Found: e:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
Warning: C:\cygwin\bin\make.exe hides e:\PROGRA~1\BORLAND\CBUILD~1\BIN\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\patch.exe
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Not Found: ssh
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: e:\USR\BIN\tar.exe
Warning: C:\cygwin\bin\tar.exe hides e:\USR\BIN\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 11:57
  271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 11:24
  118k 2007/04/06 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2007/4/7 0:43
  647k 2007/12/17 C:\cygwin\bin\cygdb-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.1.dll" v0.0 ts=2007/12/16 21:35
  703k 2007/12/17 C:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.2.dll" v0.0 ts=2007/12/17 14:58
  181k 2008/09/07 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/9/7 7:36
  103k 2008/09/07 C:\cygwin\bin\cygneon-27.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-27.dll" v0.0 ts=2008/8/28 15:10
   39k 2008/09/07 C:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 16:28
  189k 2008/09/07 C:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 16:29
  201k 2008/09/07 C:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 16:31
  302k 2008/09/07 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/9/7 7:36
   46k 2009/01/07 C:\cygwin\bin\cygecpg.dll - os=4.0 img=1.0 sys=4.0
                  "cygecpg.dll" v0.0 ts=2009/1/7 19:46
  967k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.1.dll" v0.0 ts=2007/12/16 21:35
 1036k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.2.dll" v0.0 ts=2007/12/17 14:58
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 6:05
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 11:58
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 12:00
   52k 2009/01/07 C:\cygwin\bin\cygpgtypes.dll - os=4.0 img=1.0 sys=4.0
                  "cygpgtypes.dll" v0.0 ts=2009/1/7 19:46
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 12:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/11 1:50
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 5:04
  103k 2009/01/07 C:\cygwin\bin\cygpq.dll - os=4.0 img=1.0 sys=4.0
                  "cygpq.dll" v0.0 ts=2009/1/7 19:46
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 13:25
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 13:25
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 13:24
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 13:24
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 9:45
   29k 2003/08/11 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/11 3:16
  148k 2003/08/11 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/11 3:16
    7k 2008/09/07 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/9/7 7:36
 1543k 2008/07/03 C:\cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 20:06
 1125k 2006/10/04 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2006/10/4 16:12
  231k 2006/10/04 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2006/10/4 16:12
   24k 2008/11/29 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/11/29 17:30
 1082k 2009/01/28 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2009/1/28 7:37
  155k 2008/11/29 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/11/29 17:30
  107k 2009/01/18 C:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2009/1/18 22:12
   89k 2008/09/01 C:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2008/9/1 11:48
   97k 2007/09/16 C:\cygwin\bin\cygneon-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-26.dll" v0.0 ts=2007/9/16 21:41
  430k 2009/01/28 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2009/1/28 8:48
   24k 2008/10/30 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/31 2:53
   61k 2009/03/02 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2009/3/2 5:52
   19k 2009/02/26 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 10:55
    8k 2009/02/26 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 10:56
   28k 2009/02/21 C:\cygwin\bin\cygltdl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-7.dll" v0.0 ts=2009/2/21 6:53
   40k 2009/03/01 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/3/1 5:40
   21k 2009/03/01 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/3/1 5:38
   66k 2009/03/01 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/3/1 5:50
   43k 2009/02/02 C:\cygwin\bin\cygserf-0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygserf-0-0.dll" v0.0 ts=2009/2/2 21:03
  237k 2009/03/01 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/3/1 5:36
   41k 2009/03/01 C:\cygwin\bin\cygform-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-9.dll" v0.0 ts=2009/3/1 6:54
   11k 2009/03/01 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/3/1 5:38
   21k 2009/03/01 C:\cygwin\bin\cygmenu-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-9.dll" v0.0 ts=2009/3/1 6:53
  335k 2009/03/01 C:\cygwin\bin\cygncurses++-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-9.dll" v0.0 ts=2009/3/1 7:02
   90k 2006/01/25 C:\cygwin\bin\cygneon-25.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-25.dll" v0.0 ts=2006/1/25 14:02
  114k 2009/03/01 C:\cygwin\bin\cygncurses-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-9.dll" v0.0 ts=2009/3/1 6:51
   11k 2009/03/01 C:\cygwin\bin\cygpanel-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-9.dll" v0.0 ts=2009/3/1 6:52
  219k 2008/12/31 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2008/12/31 11:00
  764k 2007/12/17 C:\cygwin\bin\cygdb-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.3.dll" v0.0 ts=2007/12/17 15:29
 1106k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.3.dll" v0.0 ts=2007/12/17 15:29
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 16:12
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 16:12
  963k 2008/12/31 C:\cygwin\bin\cyggettextlib-0-17.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-17.dll" v0.0 ts=2008/12/31 10:51
   31k 2008/12/31 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2008/12/31 10:42
  761k 2008/09/30 C:\cygwin\bin\cygruby18.dll - os=4.0 img=1.0 sys=4.0
                  "cygruby18.dll" v0.0 ts=2008/9/30 17:10
   66k 2009/03/01 C:\cygwin\bin\cygtic-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-9.dll" v0.0 ts=2009/3/1 6:48
  203k 2008/12/31 C:\cygwin\bin\cyggettextsrc-0-17.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-17.dll" v0.0 ts=2008/12/31 10:54
  232k 2009/01/08 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2009/1/8 13:03
    7k 2008/11/10 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2008/11/10 3:34
  161k 2008/06/01 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2008/6/2 2:16
   41k 2007/03/31 C:\cygwin\bin\cygusb0.dll - os=4.0 img=1.0 sys=4.0
                  "cygusb0.dll" v0.0 ts=2007/4/1 0:00
   19k 2008/10/26 C:\cygwin\bin\cygfontenc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontenc-1.dll" v0.0 ts=2008/10/27 0:25
 1074k 2009/01/08 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2009/1/8 13:03
  212k 2008/12/23 C:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2008/12/23 22:22
   34k 2008/12/23 C:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2008/12/23 21:55
  978k 2008/11/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2008/11/10 3:35
   68k 2009/03/01 C:\cygwin\bin\cygtinfo-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtinfo-9.dll" v0.0 ts=2009/3/1 6:48
   32k 2008/12/23 C:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2008/12/23 21:56
   15k 2008/12/23 C:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2008/12/23 22:04
  136k 2008/12/23 C:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2008/12/23 21:58
  106k 2008/12/23 C:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2008/12/23 21:57
    6k 2008/12/23 C:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2008/12/23 21:55
   83k 2007/06/06 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2007/6/6 14:41
   24k 2008/04/14 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2008/4/14 9:40
   26k 2008/12/23 C:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2008/12/23 22:11
   22k 2008/12/23 C:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2008/12/23 22:06
  118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/9 8:03
  111k 2008/12/23 C:\cygwin\bin\cygsvn_ra_neon-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_neon-1-0.dll" v0.0 ts=2008/12/23 22:01
  115k 2008/12/23 C:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2008/12/23 22:02
   67k 2008/12/23 C:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2008/12/23 21:59
  221k 2007/06/30 C:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2007/6/30 4:54
   78k 2004/10/13 C:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2004/10/14 2:50
  118k 2007/06/27 C:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2007/6/27 9:56
   12k 2008/08/26 C:\cygwin\bin\cyglzmadec-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzmadec-0.dll" v0.0 ts=2008/8/26 6:31
  355k 2008/09/09 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2008/9/9 22:20
  132k 2008/12/23 C:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2008/12/23 22:05
  191k 2008/12/23 C:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2008/12/23 21:54
  209k 2008/12/23 C:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2008/12/23 22:00
   65k 2009/03/02 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2009/3/2 4:19
 1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/6/12 21:35
    Cygwin DLL version info:
        DLL version: 1.5.25
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        Shared data: 4
        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
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Jun 12 19:34:46 CEST 2008
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4

Can't GetProcAddress() for NtQuerySystemInformation, skipping dodgy app check.

Cygwin Package Information
Last downloaded files to: E:\usr\incoming\a-d\cygwin
Last downloaded files from: ftp://mirrors.xmission.com/cygwin/

Package                 Version
_update-info-dir        00810-1
alternatives            1.3.30c-2
ash                     20040127-4
autoconf                6-1
autoconf2.1             2.13-5
autoconf2.5             2.63-1
automake                3-1
automake1.10            1.10.1-2
automake1.4             1.4p6-5
automake1.5             1.5-3
automake1.6             1.6.3-5
automake1.7             1.7.9-4
automake1.8             1.8.5-4
automake1.9             1.9.6-3
base-files              3.7-1
base-passwd             2.2-1
bash                    3.2.48-21
binutils                20080624-2
bison                   2.3-1
bool                    0.2.1-1
bzip2                   1.0.5-3
ccrypt                  1.7-1
colordiff               1.0.7-1
coreutils               6.10-2
crypt                   1.1-1
cvs                     1.11.22-1
cygutils                1.3.2-1
cygwin                  1.5.25-15
cygwin-doc              1.4-4
diffutils               2.8.7-1
editrights              1.01-2
expat                   2.0.1-1
file                    4.21-1
findutils               4.4.0-3
font-bitstream-vera-ttf 1.10-1
fontconfig              2.6.0-1
gawk                    3.1.6-1
gcc                     3.4.4-999
gcc-core                3.4.4-999
gcc-g++                 3.4.4-999
gcc-java                3.4.4-999
gcc-mingw-core          20050522-1
gcc-mingw-g++           20050522-1
gcc-mingw-java          20050522-1
gdb                     6.8-2
gdbm                    1.8.3-9
gettext                 0.17-3
gettext-devel           0.17-3
gnupg                   1.4.9-2
grep                    2.5.3-1
groff                   1.19.2-2
gzip                    1.3.12-2
less                    382-1
libapr1                 1.3.3-3
libaprutil1             1.3.4-1
libbz2_1                1.0.5-3
libcharset1             1.12-1
libcurl4                7.16.3-1
libdb4.1                4.1.25.3-2
libdb4.2                4.2.52.5-2
libdb4.3                4.3.29.1-1
libdb4.5                4.5.20.2-2
libecpg5                8.2.11-1
libexpat0               1.95.8-2
libexpat1               2.0.1-1
libexpat1-devel         2.0.1-1
libfontconfig1          2.6.0-1
libfontenc1             1.0.4-2
libfreetype26           2.3.8-1
libfreetype6            2.3.8-1
libgdbm                 1.8.0-5
libgdbm-devel           1.8.3-9
libgdbm3                1.8.3-3
libgdbm4                1.8.3-9
libgettextpo0           0.17-3
libiconv                1.12-1
libiconv2               1.12-1
libintl1                0.10.40-1
libintl2                0.12.1-3
libintl3                0.14.5-1
libintl8                0.17-3
libltdl3                1.5.27a-1
libltdl7                2.2.7a-1
liblzmadec0             4.32.7-2
libncurses-devel        5.7-2
libncurses7             5.3-4
libncurses8             5.5-4
libncurses9             5.7-2
libneon25               0.25.5-1
libneon26               0.26.4-1
libneon27               0.28.3-1
libopenldap2_3_0        2.3.43-1
libpcre0                7.8-1
libpgtypes2             8.2.11-1
libpopt0                1.6.4-4
libpq4                  8.2.5-1
libpq5                  8.2.11-1
libreadline5            4.3-5
libreadline6            5.2.13-11
libsasl2                2.1.19-3
libserf0_0              0.3.0-1
libsqlite3_0            3.6.2-1
libssh2_1               0.15-1
libtool                 2.2.7a-1
libusb-win32            0.1.12.1-2
libxml2                 2.7.3-1
login                   1.9-8
lzma                    4.32.7-2
m4                      1.4.10b-2
make                    3.81-2
man                     1.6e-1
mingw-runtime           3.15.2-1
minires                 1.02-1
mkfontdir               1.0.4-1
mkfontscale             1.0.5-1
ncurses                 5.7-2
openssl                 0.9.8j-1
openssl097              0.9.7l-1
patch                   2.5.8-9
perl                    5.10.0-5
perl-libwin32           0.28-2
pkg-config              0.23a-2
popt                    1.6.4-4
postgresql              8.2.11-1
postgresql-client       8.2.11-1
python                  2.5.2-1
readline                5.2.13-11
rebase                  2.4.4-1
rpm                     4.1-2
rsync                   3.0.4-1
ruby                    1.8.7-p72-2
run                     1.1.10-1
rxvt                    20050409-9
sed                     4.1.5-2
subversion              1.5.5-1
tar                     1.21-1
tcltk                   20080420-1
termcap                 20050421-1
terminfo                5.7_20090228-1
terminfo0               5.5_20061104-2
texinfo                 4.8a-1
time                    1.7-2
tzcode                  2008h-1
vim                     7.2-3
w32api                  3.13-1
which                   2.20-1
zlib                    1.2.3-3
zlib-devel              1.2.3-3
zlib0                   1.2.3-3
Use -h to see help about each section

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

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build   Hello_world app
  2009-02-27 19:00   ` Vincent R.
@ 2009-02-27 19:15     ` Dave Korn
  0 siblings, 0 replies; 18+ messages in thread
From: Dave Korn @ 2009-02-27 19:15 UTC (permalink / raw)
  To: cygwin

Vincent R. wrote:

> Dave,
> 
> how can you answer to so many people on so different topics and on so
> different ML.
> Are you human ;-) ?

  It's just the spirit of the age ...

    cheers,
      DaveK

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build   Hello_world app
  2009-02-27 15:50 ` Dave Korn
@ 2009-02-27 19:00   ` Vincent R.
  2009-02-27 19:15     ` Dave Korn
  0 siblings, 1 reply; 18+ messages in thread
From: Vincent R. @ 2009-02-27 19:00 UTC (permalink / raw)
  To: Dave Korn; +Cc: cygwin

On Fri, 27 Feb 2009 15:59:13 +0000, Dave Korn
<dave.korn.cygwin@googlemail.com> wrote:
> Alexey Lyubimov wrote:
> 
>> 1. Why did initscr() and endwin() not require --enable-auto-import
>> option,
>> but refresh() does?
> 
>   It's because the initscr() and endwin() functions don't refer to the
>   _stdscr
> variable internally, so they don't trigger the linker to import anything
> from
> the ncurses DLL; i.e., it's just an incidental detail of the internal
> implementation of the code.
> 
>   (I'm about to commit a patch upstream that will turn on auto-import by
> default on cygwin, so future releases of binutils won't issue this
warning
> any
> more.)
> 
>     cheers,
>       DaveK
> 
Dave,

how can you answer to so many people on so different topics and on so
different ML.
Are you human ;-) ?




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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-02-27 15:10 Alexey Lyubimov
  2009-02-27 15:22 ` Greg Chicares
@ 2009-02-27 15:50 ` Dave Korn
  2009-02-27 19:00   ` Vincent R.
  1 sibling, 1 reply; 18+ messages in thread
From: Dave Korn @ 2009-02-27 15:50 UTC (permalink / raw)
  To: cygwin

Alexey Lyubimov wrote:

> 1. Why did initscr() and endwin() not require --enable-auto-import option,
> but refresh() does?

  It's because the initscr() and endwin() functions don't refer to the _stdscr
variable internally, so they don't trigger the linker to import anything from
the ncurses DLL; i.e., it's just an incidental detail of the internal
implementation of the code.

  (I'm about to commit a patch upstream that will turn on auto-import by
default on cygwin, so future releases of binutils won't issue this warning any
more.)

    cheers,
      DaveK

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build  Hello_world app
  2009-02-27 15:10 Alexey Lyubimov
@ 2009-02-27 15:22 ` Greg Chicares
  2009-02-27 15:50 ` Dave Korn
  1 sibling, 0 replies; 18+ messages in thread
From: Greg Chicares @ 2009-02-27 15:22 UTC (permalink / raw)
  To: cygwin

[Reformatted--please see:
  http://www.cygwin.com/acronyms/#PCYMTWLL
Thanks.]

On 2009-02-27 15:10Z, Alexey Lyubimov wrote:
> 
> 2. Can you point me to the right place in the documentation
> (Cygwins's, gcc's, ld's or I don't know whose :)) where
> auto-import is explained in not very complicated manner
> (with examples of practical usage for Win32)?

It's a linker (ld) option, so do this:
  man ld
then type this:
  /auto-import
and hit Enter.

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

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

* Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app
@ 2009-02-27 15:10 Alexey Lyubimov
  2009-02-27 15:22 ` Greg Chicares
  2009-02-27 15:50 ` Dave Korn
  0 siblings, 2 replies; 18+ messages in thread
From: Alexey Lyubimov @ 2009-02-27 15:10 UTC (permalink / raw)
  To: cygwin


Thanks a lot, Dave!
Your advices helped!

But, can I ask you two more questions:
1. Why did initscr() and endwin() not require --enable-auto-import option, but refresh() does?
2. Can you point me to the right place in the documentation (Cygwins's, gcc's, ld's or I don't know whose :)) where auto-import is explained in not very complicated manner (with examples of practical usage for Win32)?

--
Thank you,
Alexey


      

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

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

end of thread, other threads:[~2009-03-04  2:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 13:53 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app Alexey Lyubimov
2009-02-27 14:25 ` Dave Korn
2009-02-27 15:10 Alexey Lyubimov
2009-02-27 15:22 ` Greg Chicares
2009-02-27 15:50 ` Dave Korn
2009-02-27 19:00   ` Vincent R.
2009-02-27 19:15     ` Dave Korn
2009-03-03 11:48 Alexey Lyubimov
2009-03-03 13:30 ` Dave Korn
2009-03-03 13:42 ` Dave Korn
2009-03-03 16:28 ` Charles Wilson
2009-03-03 16:42   ` Dave Korn
2009-03-03 16:53     ` Charles Wilson
2009-03-03 18:36       ` Dave Korn
2009-03-04  1:07         ` Charles Wilson
2009-03-04  2:21           ` Dave Korn
2009-03-04  2:32             ` Charles Wilson
2009-03-03 14:01 Alexey Lyubimov

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).