Hello, we would like to request for some assistance with an issue with File::Temp that we've experienced since installing a new module: https://metacpan.org/pod/Net::Amazon::S3#new

After installation of the module & its dependencies, we had received errors from Temp::File stating:

Your vendor has not defined Fcntl macro O_NOINHERIT, used at /usr/shar +e/perl5/File/Temp.pm line 247. Your vendor has not defined Fcntl macro O_EXLOCK, used at /usr/share/p +erl5/File/Temp.pm line 256. Your vendor has not defined Fcntl macro O_TEMPORARY, used at /usr/shar +e/perl5/File/Temp.pm line 277. Your vendor has not defined Fcntl macro O_EXLOCK, used at /usr/share/p +erl5/File/Temp.pm line 255.

Upon checking File::Temp these are the lines that are apparently causing issues

my $OPENFLAGS = O_CREAT | O_EXCL | O_RDWR; my $LOCKFLAG; unless ($^O eq 'MacOS') { for my $oflag (qw/ NOFOLLOW BINARY LARGEFILE NOINHERIT /) { my ($bit, $func) = (0, "Fcntl::O_" . $oflag); no strict 'refs'; $OPENFLAGS |= $bit if eval { # Make sure that redefined die handlers do not cause problems # e.g. CGI::Carp local $SIG{__DIE__} = sub {}; local $SIG{__WARN__} = sub {}; $bit = &$func(); 1; }; } # Special case O_EXLOCK $LOCKFLAG = eval { local $SIG{__DIE__} = sub {}; local $SIG{__WARN__} = sub {}; &Fcntl::O_EXLOCK(); }; }

we've tried applying the fix mentioned here, but it did not work.

https://bugzilla.mozilla.org/show_bug.cgi?id=171674 https://bugzilla.mozilla.org/show_bug.cgi?id=179171

For reference heres the code after applying the fix:

$OPENFLAGS |= $bit if eval { # Make sure that redefined die handlers do not cause problems # e.g. CGI::Carp local $SIG{__DIE__} = sub {}; local $SIG{__WARN__} = sub {}; local *CORE::GLOBAL::die = sub {}; $bit = &$func(); 1; };

At this point we are completely lost, is there anything else we can try to remedy the issue? Thanks in advance.


In reply to File::Temp throwing errors after installation of a module by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.