Checking if your kit is complete... Looks good Writing Makefile for Cwd cp Cwd.pm blib\lib\Cwd.pm D:\cpanrun\build\5-6-1\bin\perl.exe -Id:\cpanrun\build\5-6-1\lib -Id:\cpanrun\build\5-6-1\lib D:\cpanrun\build\5-6-1\lib\ExtUtils/xsubpp -typemap D:\cpanrun\build\5-6-1\lib\ExtUtils\typemap Cwd.xs > Cwd.xsc && D:\cpanrun\build\5-6-1\bin\perl.exe -Id:\cpanrun\build\5-6-1\lib -Id:\cpanrun\build\5-6-1\lib -MExtUtils::Command -e mv Cwd.xsc Cwd.c cl -c -nologo -O1 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -Zi -DNDEBUG -DVERSION=\"2.21\" -DXS_VERSION=\"2.21\" -ID:\cpanrun\build\5-6-1\lib\CORE Cwd.c Cwd.c Cwd.xs(244) : error C2143: syntax error : missing ';' before 'type' Cwd.xs(245) : error C2143: syntax error : missing ';' before 'type' Cwd.xs(246) : error C2143: syntax error : missing ';' before 'type' Cwd.xs(247) : error C2275: 'DIR' : illegal use of this type as an expression D:\cpanrun\build\5-6-1\lib\CORE\dirent.h(42) : see declaration of 'DIR' Cwd.xs(247) : error C2065: 'dir' : undeclared identifier Cwd.xs(248) : error C2143: syntax error : missing ';' before 'type' Cwd.xs(252) : error C2065: 'statbuf' : undeclared identifier Cwd.xs(252) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct stat *' Cwd.xs(253) : error C2065: 'SV_CWD_RETURN_UNDEF' : undeclared identifier Cwd.xs(256) : error C2065: 'orig_cdev' : undeclared identifier Cwd.xs(256) : error C2224: left of '.st_dev' must have struct/union type Cwd.xs(257) : error C2065: 'orig_cino' : undeclared identifier Cwd.xs(257) : error C2224: left of '.st_ino' must have struct/union type Cwd.xs(258) : error C2065: 'cdev' : undeclared identifier Cwd.xs(259) : error C2065: 'cino' : undeclared identifier Cwd.xs(262) : error C2065: 'odev' : undeclared identifier Cwd.xs(263) : error C2065: 'oino' : undeclared identifier Cwd.xs(268) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct stat *' Cwd.xs(272) : error C2224: left of '.st_dev' must have struct/union type Cwd.xs(273) : error C2224: left of '.st_ino' must have struct/union type Cwd.xs(278) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct _dir_struc *' Cwd.xs(282) : error C2065: 'dp' : undeclared identifier Cwd.xs(282) : warning C4047: 'function' : 'struct _dir_struc *' differs in levels of indirection from 'int ' Cwd.xs(282) : warning C4024: 'function through pointer' : different types for formal and actual parameter 2 Cwd.xs(282) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct direct *' Cwd.xs(284) : error C2065: 'namelen' : undeclared identifier Cwd.xs(284) : error C2223: left of '->d_namlen' must point to struct/union Cwd.xs(293) : error C2223: left of '->d_name' must point to struct/union Cwd.xs(293) : warning C4133: 'function' : incompatible types - from 'int *' to 'const char *' Cwd.xs(293) : error C2198: 'function through pointer' : too few actual parameters Cwd.xs(297) : error C2065: 'tdev' : undeclared identifier Cwd.xs(297) : error C2224: left of '.st_dev' must have struct/union type Cwd.xs(298) : error C2065: 'tino' : undeclared identifier Cwd.xs(298) : error C2224: left of '.st_ino' must have struct/union type Cwd.xs(308) : error C2065: 'pathlen' : undeclared identifier Cwd.xs(321) : error C2223: left of '->d_name' must point to struct/union Cwd.xs(321) : warning C4022: 'memmove' : pointer mismatch for actual parameter 2 Cwd.xs(321) : error C2198: 'memmove' : too few actual parameters Cwd.xs(327) : warning C4047: 'function' : 'struct _dir_struc *' differs in levels of indirection from 'int ' Cwd.xs(327) : warning C4024: 'function through pointer' : different types for formal and actual parameter 2 Cwd.xs(342) : warning C4133: 'function' : incompatible types - from 'int *' to 'struct stat *' Cwd.xs(346) : error C2224: left of '.st_dev' must have struct/union type Cwd.xs(347) : error C2224: left of '.st_ino' must have struct/union type