Checking if your kit is complete... Looks good Writing Makefile for Win32::ShutDown cp lib/Win32/ShutDown.pm blib/lib/Win32/ShutDown.pm /Users/cpanrun/build/5.10.0/bin/perl /Users/cpanrun/build/5.10.0/lib/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.10.0/lib/ExtUtils/typemap ShutDown.xs > ShutDown.xsc && mv ShutDown.xsc ShutDown.c Please specify prototyping behavior for ShutDown.xs (see perlxs manual) gcc -c -I. -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-I/Users/cpanrun/build/5.10.0/lib/CORE" ShutDown.c ShutDown.xs: In function 'WinVer': ShutDown.xs:20: error: 'OSVERSIONINFO' undeclared (first use in this function) ShutDown.xs:20: error: (Each undeclared identifier is reported only once ShutDown.xs:20: error: for each function it appears in.) ShutDown.xs:20: error: parse error before 'osvi' ShutDown.xs:21: error: 'BOOL' undeclared (first use in this function) ShutDown.xs:22: error: 'osvi' undeclared (first use in this function) ShutDown.xs:24: error: 'bval' undeclared (first use in this function) ShutDown.xs:26: error: 'VER_PLATFORM_WIN32_NT' undeclared (first use in this function) ShutDown.xs:30: error: 'VER_PLATFORM_WIN32_WINDOWS' undeclared (first use in this function) ShutDown.xs: In function 'AdjustProcessTokenPrivilege': ShutDown.xs:41: error: 'HANDLE' undeclared (first use in this function) ShutDown.xs:41: error: parse error before 'hToken' ShutDown.xs:42: error: 'TOKEN_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:44: error: 'TOKEN_ADJUST_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:44: error: 'TOKEN_QUERY' undeclared (first use in this function) ShutDown.xs:44: error: 'hToken' undeclared (first use in this function) ShutDown.xs:49: error: 'SE_SHUTDOWN_NAME' undeclared (first use in this function) ShutDown.xs:49: error: 'tkp' undeclared (first use in this function) ShutDown.xs:56: error: 'SE_PRIVILEGE_ENABLED' undeclared (first use in this function) ShutDown.xs:58: error: 'PTOKEN_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:60: error: 'ERROR_SUCCESS' undeclared (first use in this function) ShutDown.xs: At top level: ShutDown.xs:71: error: parse error before 'nFlag' ShutDown.xs: In function 'ExitWindowsExt': ShutDown.xs:80: error: 'nFlag' undeclared (first use in this function) ShutDown.xs:80: error: 'dwType' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ShutDown': ShutDown.xs:130: error: 'EWX_SHUTDOWN' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_Restart': ShutDown.xs:150: error: 'EWX_REBOOT' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_LogOff': ShutDown.xs:168: error: 'EWX_LOGOFF' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ForceReStart': ShutDown.xs:209: error: 'EWX_REBOOT' undeclared (first use in this function) ShutDown.xs:209: error: 'EWX_FORCE' undeclared (first use in this function) ShutDown.xs: In function 'WinVer': ShutDown.xs:20: error: 'OSVERSIONINFO' undeclared (first use in this function) ShutDown.xs:20: error: (Each undeclared identifier is reported only once ShutDown.xs:20: error: for each function it appears in.) ShutDown.xs:20: error: parse error before 'osvi' ShutDown.xs:21: error: 'BOOL' undeclared (first use in this function) ShutDown.xs:22: error: 'osvi' undeclared (first use in this function) ShutDown.xs:24: error: 'bval' undeclared (first use in this function) ShutDown.xs:26: error: 'VER_PLATFORM_WIN32_NT' undeclared (first use in this function) ShutDown.xs:30: error: 'VER_PLATFORM_WIN32_WINDOWS' undeclared (first use in this function) ShutDown.xs: In function 'AdjustProcessTokenPrivilege': ShutDown.xs:41: error: 'HANDLE' undeclared (first use in this function) ShutDown.xs:41: error: parse error before 'hToken' ShutDown.xs:42: error: 'TOKEN_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:44: error: 'TOKEN_ADJUST_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:44: error: 'TOKEN_QUERY' undeclared (first use in this function) ShutDown.xs:44: error: 'hToken' undeclared (first use in this function) ShutDown.xs:49: error: 'SE_SHUTDOWN_NAME' undeclared (first use in this function) ShutDown.xs:49: error: 'tkp' undeclared (first use in this function) ShutDown.xs:56: error: 'SE_PRIVILEGE_ENABLED' undeclared (first use in this function) ShutDown.xs:58: error: 'PTOKEN_PRIVILEGES' undeclared (first use in this function) ShutDown.xs:60: error: 'ERROR_SUCCESS' undeclared (first use in this function)ShutDown.xs: In function 'XS_Win32__ShutDown_ForceLogOff': ShutDown.xs:228: error: 'EWX_LOGOFF' undeclared (first use in this function) ShutDown.xs:228: error: 'EWX_FORCE' undeclared (first use in this function) ShutDown.xs: At top level: ShutDown.xs:71: error: parse error before 'nFlag' ShutDown.xs: In function 'ExitWindowsExt': ShutDown.xs:80: error: 'nFlag' undeclared (first use in this function) ShutDown.xs:80: error: 'dwType' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ShutDown':ShutDown.xs: In function 'XS_Win32__ShutDown_ForceShutDown': ShutDown.xs:130: error: 'EWX_SHUTDOWN' undeclared (first use in this function)ShutDown.xs:235: error: 'EWX_SHUTDOWN' undeclared (first use in this function) ShutDown.xs:235: error: 'EWX_FORCE' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_Restart': ShutDown.xs:150: error: 'EWX_REBOOT' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_LogOff': ShutDown.xs:168: error: 'EWX_LOGOFF' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ForceReStart': ShutDown.xs:209: error: 'EWX_REBOOT' undeclared (first use in this function) ShutDown.xs:209: error: 'EWX_FORCE' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ForceLogOff': ShutDown.xs:228: error: 'EWX_LOGOFF' undeclared (first use in this function) ShutDown.xs:228: error: 'EWX_FORCE' undeclared (first use in this function) ShutDown.xs: In function 'XS_Win32__ShutDown_ForceShutDown': ShutDown.xs:235: error: 'EWX_SHUTDOWN' undeclared (first use in this function) ShutDown.xs:235: error: 'EWX_FORCE' undeclared (first use in this function) lipo: can't open input file: /var/tmp//ccp4S3SN.out (No such file or directory) make: *** [ShutDown.o] Error 1