Skip Menu |

This queue is for tickets about the Devel-Size CPAN distribution.

Report information
The Basics
Id: 77589
Status: resolved
Priority: 0/
Queue: Devel-Size

People
Owner: Nobody in particular
Requestors: bulk88 [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.77_50
Fixed in: (no value)



Subject: MSVC build failure
Show quoted text
______________________________________ #ifdef _MSC_VER /* "structured exception" handling is a Microsoft extension to C and C++. It's *not* C++ exception handling - C++ exception handling can't capture SEGVs and suchlike, whereas this can. There's no known analagous functionality on other platforms. */ # include <excpt.h> # define TRY_TO_CATCH_SEGV __try # define CAUGHT_EXCEPTION __except(EXCEPTION EXCEPTION_EXECUTE_HANDLER) #else # define TRY_TO_CATCH_SEGV if(1) # define CAUGHT_EXCEPTION else #endif
_______________________________________
_________________________________ # define CAUGHT_EXCEPTION __except(EXCEPTION EXCEPTION_EXECUTE_HANDLER)
________________________________ causes a build failure on MSVC (see http://ppm4.activestate.com/MSWin32-x86/5.14/1400/N/NW/NWCLARK/Devel-Size-0.77.d/log-20110517T030345.txt for an example). The line should be
_____________________ # define CAUGHT_EXCEPTION __except(EXCEPTION_EXECUTE_HANDLER)
____________________ It builds and passes nmake test then. It doesn't fail on Mingw Perl since Mingw/GCC has no SEH support and that code is not selected.
On Fri Jun 01 20:41:57 2012, bulk88. wrote: Show quoted text
> for an example). The line should be > _____________________ > # define CAUGHT_EXCEPTION __except(EXCEPTION_EXECUTE_HANDLER) > ____________________ > It builds and passes nmake test then. It doesn't fail on Mingw Perl > since Mingw/GCC has no SEH support and that code is not selected.
Thanks for the fix. This is in code I'd inherited from Devel::Size 0.72, which was (as far as I know) developed on Win32 systems, so I infer *used* to work. (And I think CPAN testers reports on earlier versions showed that it used to build). I was aware that there was now a problem, but didn't have any real idea what the fix was. Sorry for the long delay in responding. I've now uploaded a development version, and intend to upload 0.78 in the next few days, once I get a CPAN testers report from a Win32 system, and no obvious regressions on anything else. (I'm aware that 5.17.1 and 5.17.2 have problems, but as they are development releases of perl 5, I'm not going to hold out until I've figured out what the cause of the problems there is) Nicholas Clark.
I'l close this as the test results look goo http://matrix.cpantesters.org/?dist=Devel- Size%200.78;reports=1;os=mswin32 Let us know if it's still a problem. Thanks.