Today, I had the nerve to revisit this Dokan/userspace-fs thread and tried to compile Win32-Dokan under StrawberryPerl - with little success.

My environment:
-strawberry-perl-5.8.9.0
-Win32-Dokan-0.02_1
-dokan.h (revision 7)

This combination is the one I had the most luck with, anyway 'perl Makefile.PL' then 'dmake' resulted in lots of warnings and some fatal errors:
X:\dev\Win32-Dokan>dmake gcc -c -I. -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTE +XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL _MSVCRT_READFIX -s -O2 -DVERSION=\"0.02_1\" -DXS_VERSION=\"0.02_1\ +" "-IC:\strawberry\perl\lib\CORE" Dokan.c Dokan.xs: In function `DCB_CreateFile': Dokan.xs:1382: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_OpenDirectory': Dokan.xs:1394: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_CreateDirectory': Dokan.xs:1406: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_Cleanup': Dokan.xs:1418: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_CloseFile': Dokan.xs:1430: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_ReadFile': Dokan.xs:1449: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_WriteFile': Dokan.xs:1468: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_FlushFileBuffers': Dokan.xs:1481: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_GetFileInformation': Dokan.xs:1495: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_FindFiles': Dokan.xs:1508: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_SetFileAttributes': Dokan.xs:1521: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_SetFileTime': Dokan.xs:1538: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_DeleteFile': Dokan.xs:1550: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_DeleteDirectory': Dokan.xs:1562: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_MoveFile': Dokan.xs:1577: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_SetEndOfFile': Dokan.xs:1590: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_LockFile': Dokan.xs:1606: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_UnlockFile': Dokan.xs:1622: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_GetDiskFreeSpace': Dokan.xs:1637: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_GetVolumeInformation': Dokan.xs:1660: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Dokan.xs: In function `DCB_Unmount': Dokan.xs:1668: warning: passing arg 1 of `SyncExec' from incompatible +pointer type Running Mkbootstrap for Win32::Dokan () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Dokan +.bs dlltool --def Dokan.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\Dokan\Dokan.dll -Wl,--base-file -Wl,dll.ba +se -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\ strawberry\c\lib" Dokan.o -Wl,--image-base,0x2a410000 C:\strawberry\p +erl\lib\CORE\libperl58.a -lmsvcrt -lmoldname -lker nel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lol +e32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -l winmm -lversion -lodbc32 -lodbccp32 dll.exp Dokan.o:Dokan.c:(.text+0x1732): undefined reference to `_gmtime64_s' Dokan.o:Dokan.c:(.text+0x17b8): undefined reference to `_localtime64_s +' Dokan.o:Dokan.c:(.text+0x17d4): undefined reference to `_gmtime64_s' collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Win32\Dokan\Dokan +.dll'

Combinations of this strawberryperl plus different revisions of Win32-Dokan from SVN and dokan.h more or less gave comparable results.
I am too novice in regards to compiling stuff to make any sense of that. Anyone here who feels inclined to helping me out?

In reply to Re: Perl to mount a virtual filesystem on Windows? by isync
in thread Perl to mount a virtual filesystem on Windows? by isync

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.