gargle has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks,

I can't install Win32::OLE 0.1712 on my cygwin64. I already changed stricmp into strcasecmp by means of look Win32::OLE, but make Win32::OLE now gives me an unexpected error:

OLE.xs:925:17: fout: formaat is geen stringconstante en er zijn geen f +ormaat-argumenten [-Werror=format-security] warn(SvPVX(sv));

As my cygwin64 is in dutch, it reads: error: format is no string constant and there are no format arguments.

Any ideas on how to proceed? Do I log a bug in cpan for this module or is there a depency on some sort of cygwin library that I am missing?

--
if ( 1 ) { $postman->ring() for (1..2); }

Replies are listed 'Best First'.
Re: Win32::OLE on cygwin64, can't make OLE.xs
by Anonymous Monk on Sep 21, 2018 at 22:25 UTC
    First thing to try is not use cygwin

      Well, I try to see if I can build it on win32 I get

      Can't locate object method "new" via package "ExtUtils::ParseXS" at si +te\lib\ExtUtils\xsubpp line 51.

      Which is weird, but turns out its same Makefile.PL issue as Re^3: Building Win32::GuiTest for perl 5.14 or higher

      sub MY::xs_c { return ' .xs.cpp: $(PERLRUNINST) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $*.xs >xstmp. +c && $(MV) xstmp.c $*.cpp '; }

      After that it builds

      So there is your path gargle, skip cygwin :) or complain rt://Win32-OLE