Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^10: Private temporal files on Windows

by salva (Canon)
on Dec 22, 2014 at 12:03 UTC ( [id://1111013]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Private temporal files on Windows
in thread Private temporal files on Windows

I have pushed a new version with your fixes.

BTW, I am unable to make the latest version of ActivePerl (64bits) work together with the latest VisualStudio in order to build modules.

Looking at perl -V it looks as if they were now compiling ActivePerl with MinGW. Is that right, or is just a trick by ActivePerl::Config?

Replies are listed 'Best First'.
Re^11: Private temporal files on Windows
by BrowserUk (Patriarch) on Dec 22, 2014 at 14:59 UTC

    salva, I strongly suggest you add FILE_ATTRIBUTE_HIDDEN to the existing FILE_ATTRIBUTE_TEMPORARY on the CreateFile().

    Also, if you add:

    MODULE = Win32::SecretFile PACKAGE = Win32::SecretFile PROTOTYPES: ENABLE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    It fixes the warning below when building for Strawberry Perl 5.18 with mingw:

    Please specify prototyping behavior for SecretFile.xs (see perlxs manu +al)

    I haven't been able to find a fix for the warnings:

    SecretFile.xs(82) : warning C4013: 'ConvertSidToStringSidA' undefined; + assuming extern returning int SecretFile.xs(87) : warning C4013: 'ConvertStringSecurityDescriptorToS +ecurityDescriptorA' undefined; assuming extern returning int

    When building with MSVC for AS 5.10 -- it appears to be down to differences between the sddl.h files as shipped with mingw -v- that shipped with MSVC -- but as AS have gone over to mingw, those of us still using msvc to build perl stuff are probably a small and dying minority; and it doesn't prevent it from building.

    (PS. Sorry for doing this through PM rather than github, but I've barely used git and I'd hate to screw it up.)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^11: Private temporal files on Windows
by BrowserUk (Patriarch) on Dec 22, 2014 at 12:13 UTC
    BTW, I am unable to make the latest version of ActivePerl (64bits) work together with the latest VisualStudio in order to build modules. Looking at perl -V it looks as if they were now compiling ActivePerl with MinGW. Is that right, or is just a trick by ActivePerl::Config?

    Indeed, that seems to be the case; though your best bet for the full skinny about it is to talk to syphilis. He has been doing the MingW thing for a long time and understands a lot more of it than I do.

    I've tried mixing msvc and the MingW built AS perl's a few times and somethings work; some don't; and I have no clear idea of what and why.

    Installing Strawberry Perl now brings MingW with it; but as I showed above; that presents a whole different set of (so far) completely unexplainable anomalies.

    Perl on Win32 continues to be a bit of a mess; things work more by luck than judgement a lot of the time :(


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1111013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found