From: Pete B. <pb...@gm...> - 2011-03-03 14:02:44
|
OK, I have installed a MinGW32 from scratch (using the GUI installer [1] - I got some weird results after trying to use commandline mingw-get from DOS, with __CYGWIN__ apparently getting defined in MinGW32) and I can reproduce the issue: xsub fails getting data from devices with an invalid handle error. Looks like ye olde anonymous OVERLAPPED struct/union bug [2], which, and I should have seen it coming, has now crept into the latest MinGW headers too. As before, the _workaround_ of switching to gnu99 instead of c99 appears to solve the issue. Dave, if you're in a hurry, you can just edit your configure.ac and the AM_CFLAGS="-std=c99" line to change it to AM_CFLAGS="-std=gnu99", as I expect this will remove the issue. And before anybody ask, reporting the OVERLAPPED header issue has always been on my TODO list ([3] - look for "need to contact cygwin guys") I just haven't had a chance to do it. Also, because I kind of expect people jump to the wrong conclusions here, I have to stress out that this issue has nothing to do with my "does it really matter" quip that was _specific_ to reporting/investigating a completely different non lethal header "problem", which Segher and Peter thought warranted reporting. There's no doubt that we want to report this one, since it affects everybody using OVERLAPPED and c99, regardless of the remote possibility that the cygwin MinGW people think everybody should use gnu99, and I also stated that I saw the use of gnu99 here as a workaround rather than a fix [4]. Regards, /Pete [1] http://ftp.heanet.ie/mirrors/sourceforge/m/project/mi/mingw/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110211/ [2] http://marc.info/?l=libusb-devel&m=129535100912772&w=2 [3] http://libusb.org/wiki/windows_backend_activity_log [4] http://marc.info/?l=libusb-devel&m=129535849523012&w=2 |