Earnie:

> It sounds as if it's time to strace.  Expect the strace file to be
>  large.  Compare between the one that works and the one that doesn't.

Here's the CXlinkspec part of strace:
**********************************************
Program name: D:\CYGWIN\BIN\GCC.EXE (612089)
App version:  1001.6, api: 0.30
DLL version:  1001.7, api: 0.31
DLL build:    2000-12-25 12:39
OS version:   Windows 98-4.10
Date/Time:    2001-01-04 10:24:15
**********************************************
  :  (lines suppressed)
  :
  344 1431898 [main] cpp 705197 _open: -1 = open 
(/UNIX/usr/include/header.gcc, 0x0)

(NOTE: I have no idea what header.gcc is or how it applies to this problem.)

   331 1432229 [main] cpp 607053 _open: open (/UNIX/usr/include/CXlinkspec.h, 
0x20000)
  342 1432571 [main] cpp 607053 dtable::build_fhandler: some disk file - cb 
56, fd 4, fh 0xC581DA0
  323 1432894 [main] cpp 607053 fhandler_disk_file::open: 
(/UNIX/usr/include/CXlinkspec.h, 0x20000)
  333 1433227 [main] cpp 607053 mount_info::conv_to_win32_path: 
conv_to_win32_path (/UNIX/usr/include/CXlinkspec.h)
  325 1433552 [main] cpp 607053 normalize_posix_path: src 
/UNIX/usr/include/CXlinkspec.h
  322 1433874 [main] cpp 607053 normalize_posix_path: 
/UNIX/usr/include/CXlinkspec.h = normalize_posix_path 
(/UNIX/usr/include/CXlinkspec.h)
  342 1434216 [main] cpp 607053 mount_info::conv_to_win32_path: 
H:\usr\include\CXlinkspec.h(rel), H:\usr\include\CXlinkspec.h(abs) 0xA(flags) 
= conv_to_win32_path (/UNIX/usr/include/CXlinkspec.h)
 1158 1435374 [main] cpp 607053 symlink_info::check: not a symlink
  326 1435700 [main] cpp 607053 symlink_info::check: 0 = symlink.check 
(H:\usr\include\CXlinkspec.h, 0x255EED1) (0xA)
  482 1436182 [main] cpp 607053 path_conv::check: GetVolumeInformation(H:\) = 
OK, full_path(H:\usr\include\CXlinkspec.h), set_has_acls(0)
  354 1436536 [main] cpp 607053 fhandler_base::open: 
(H:\usr\include\CXlinkspec.h, 0x20000)
 2029 1438565 [main] cpp 607053 fhandler_base::open: 80 = CreateFileA 
(H:\usr\include\CXlinkspec.h, 0x80000000, 0x3, 0x61084178, 0x3, 0x80, 0)
  350 1438915 [main] cpp 607053 fhandler_base::open: filemode set to text
  369 1439284 [main] cpp 607053 fhandler_base::open: 1 = fhandler_base::open 
(H:\usr\include\CXlinkspec.h, 0x20000)
  994 1440278 [main] cpp 607053 fhandler_disk_file::open: 1 = 
fhandler_disk_file::open (H:\usr\include\CXlinkspec.h, 0x20000)

HERE the CXlinspec file gets opened as file# 4: 
  340 1440618 [main] cpp 607053 _open: 4 = open 
(/UNIX/usr/include/CXlinkspec.h, 0x20000)
 1938 1442556 [main] cpp 607053 fhandler_disk_file::fstat: 1 = 
GetFileInformationByHandle (H:\usr\include\CXlinkspec.h, 80)
  392 1442948 [main] cpp 607053 fhandler_disk_file::fstat: 0 = fstat (, 
0xC62B35C) st_atime=3A5497AD st_size=0, st_mode=0x81A4, st_ino=418540233, 
sizeof=64
  566 1443514 [main] cpp 607053 _fstat: 0 = fstat (4, C62B35C)
  431 1443945 [main] cpp 607053 _cygwin_istext_for_stdio: 
_cygwin_istext_for_stdio (2)
  328 1444273 [main] cpp 607053 _cygwin_istext_for_stdio:  _cifs: get_*_binary
  323 1444596 [main] cpp 607053 setmode_helper: setmode: file was cle now raw
  322 1444918 [main] cpp 607053 setmode: setmode (2, binary) returns text
  325 1445243 [main] cpp 607053 _write: write (2, 0x255EEBC, 34)   
  322 1445565 [main] cpp 607053 fhandler_base::write: binary write
  351 1445916 [main] cpp 607053 fhandler_base::write: 34 = write (0x255EEBC, 
34)
  331 1446247 [main] cpp 607053 _write: 34 = write (2, 0x255EEBC, 34)
  323 1446570 [main] cpp 607053 _cygwin_istext_for_stdio: 
_cygwin_istext_for_stdio (2)
  319 1446889 [main] cpp 607053 _cygwin_istext_for_stdio: 
_cygwin_istext_for_stdio says yes
  324 1447213 [main] cpp 607053 setmode_helper: setmode: file was raw now cle
  323 1447536 [main] cpp 607053 setmode: setmode (2, text) returns binary

NOW, for some reason, it closes CXlinkspec.h without processing it! (should 
be "_read: read (4,", and a write ...)  
  889 1448425 [main] cpp 607053 _close: close (4)
  317 1448742 [main] cpp 607053 fhandler_base::close: handle 0x50
  564 1449306 [main] cpp 607053 _close: 0 = close (4)

... and continues on as if nothing has happened
100370 1549676 [main] cpp 607053 _open: open 
(/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/include/isdecl.h, 0x20000)
  434 1550110 [main] cpp 607053 dtable::build_fhandler: some disk file - cb 
56, fd 4, fh 0xC581DA0
   :  (lines suppressed)
   :
  428 20345650 [main] gcc 612089 kill_pgrp: -1 = kill (612089, -1)
 1173 20346823 [main] gcc 612089 __to_clock_t: dwHighDateTime 0, 
dwLowDateTime 0
  315 20347138 [main] gcc 612089 __to_clock_t: total 00000000 00000000
  315 20347453 [main] gcc 612089 __to_clock_t: dwHighDateTime 0, 
dwLowDateTime 0
  316 20347769 [main] gcc 612089 __to_clock_t: total 00000000 00000000
  315 20348084 [main] gcc 612089 _pinfo::exit: Calling ExitProcess 1

There is nothing that I can find between the time the CXlinkspec.h is opened 
and the time it is closed to indicate what has gone wrong.  Any further tests 
you can suggest?

John

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to