Checking if your kit is complete... Looks good Writing Makefile for Win32::Hardlink cp Hardlink.pm blib/lib/Win32/Hardlink.pm /Users/cpanrun/build/5.8.8/bin/perl /Users/cpanrun/build/5.8.8/lib/5.8.8/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.8.8/lib/5.8.8/ExtUtils/typemap -typemap typemap Hardlink.xs > Hardlink.xsc && mv Hardlink.xsc Hardlink.c Please specify prototyping behavior for Hardlink.xs (see perlxs manual) gcc -c -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 -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -fno-strict-aliasing -pipe -Wdeclaration-after-statement -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" "-I/Users/cpanrun/build/5.8.8/lib/5.8.8/darwin-thread-multi-2level/CORE" Hardlink.c gcc -c -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 -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -fno-strict-aliasing -pipe -Wdeclaration-after-statement -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" "-I/Users/cpanrun/build/5.8.8/lib/5.8.8/darwin-thread-multi-2level/CORE" lnw.cpp cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ lnw.cpp:20:21: error: windows.h: No such file or directory lnw.cpp:22:19: error: tchar.h: No such file or directory lnw.cpp:20:21: error: windows.h: No such file or directory lnw.cpp:22:19: error: tchar.h: No such file or directory lnw.cpp:30: error: ISO C++ forbids declaration of 'BOOL' with no type lnw.cpp:30: error: typedef 'BOOL' is initialized (use __typeof__ instead) lnw.cpp:30: error: '__stdcall' was not declared in this scope lnw.cpp:30: error: 'chl_t' was not declared in this scope lnw.cpp:30: error: expected ',' or ';' before '(' token lnw.cpp:33: error: 'TCHAR' was not declared in this scope lnw.cpp:33: error: 'oldpath' was not declared in this scope lnw.cpp:33: error: 'TCHAR' was not declared in this scope lnw.cpp:33: error: 'newpath' was not declared in this scope lnw.cpp:33: error: initializer expression list treated as compound expression lnw.cpp:47: error: expected ',' or '...' before '*' token lnw.cpp:47: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp: In function 'void doerr(int)': lnw.cpp:49: error: 'DWORD' was not declared in this scope lnw.cpp:49: error: expected `;' before 'e' lnw.cpp:51: error: 'e' was not declared in this scope lnw.cpp:51: error: 'GetLastError' was not declared in this scope lnw.cpp:55: error: '_T' was not declared in this scope lnw.cpp:55: error: 'file' was not declared in this scope lnw.cpp:55: error: 'line' was not declared in this scope lnw.cpp:55: error: '_tprintf' was not declared in this scope lnw.cpp:56: error: 'exit' was not declared in this scope lnw.cpp: In function 'void enableprivs()': lnw.cpp:63: error: 'HANDLE' was not declared in this scope lnw.cpp:63: error: expected `;' before 'hToken' lnw.cpp:64: error: 'byte' was not declared in this scope lnw.cpp:64: error: expected `;' before 'buf' lnw.cpp:65: error: 'TOKEN_PRIVILEGES' was not declared in this scope lnw.cpp:65: error: 'tkp' was not declared in this scope lnw.cpp:65: error: expected primary-expression before ')' token lnw.cpp:65: error: expected `)' before 'buf' lnw.cpp:67: error: 'GetCurrentProcess' was not declared in this scope lnw.cpp:68: error: 'TOKEN_ADJUST_PRIVILEGES' was not declared in this scope lnw.cpp:68: error: 'TOKEN_QUERY' was not declared in this scope lnw.cpp:68: error: 'hToken' was not declared in this scope lnw.cpp:68: error: 'OpenProcessToken' was not declared in this scope lnw.cpp:69: error: '_T' was not declared in this scope lnw.cpp:73: error: 'SE_BACKUP_NAME' was not declared in this scope lnw.cpp:73: error: 'LookupPrivilegeValue' was not declared in this scope lnw.cpp:74: error: '_T' was not declared in this scope lnw.cpp:76: error: 'SE_RESTORE_NAME' was not declared in this scope lnw.cpp:76: error: 'LookupPrivilegeValue' was not declared in this scope lnw.cpp:77: error: '_T' was not declared in this scope lnw.cpp:80: error: 'SE_PRIVILEGE_ENABLED' was not declared in this scope lnw.cpp:83: error: 'hToken' was not declared in this scope lnw.cpp:83: error: 'FALSE' was not declared in this scope lnw.cpp:83: error: 'AdjustTokenPrivileges' was not declared in this scope lnw.cpp:84: error: '_T' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:91: error: expected ',' or '...' before '*' token lnw.cpp:91: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp: In function 'void CreateHardLinkNt4(int)': lnw.cpp:93: error: 'HANDLE' was not declared in this scope lnw.cpp:93: error: expected `;' before 'fh' lnw.cpp:94: error: 'TCHAR' does not name a type lnw.cpp:95: error: 'p' was not declared in this scope lnw.cpp:97: error: 'WIN32_STREAM_ID' was not declared in this scope lnw.cpp:97: error: expected `;' before 'wsi' lnw.cpp:98: error: 'MAX_PATH' was not declared in this scope lnw.cpp:99: error: 'DWORD' was not declared in this scope lnw.cpp:99: error: expected `;' before 'numwritten' lnw.cpp:103: error: 'fh' was not declared in this scope lnw.cpp:103: error: 'toFile' was not declared in this scope lnw.cpp:103: error: 'OPEN_EXISTING' was not declared in this scope lnw.cpp:103: error: 'CreateFile' was not declared in this scope lnw.cpp:104: error: 'INVALID_HANDLE_VALUE' was not declared in this scope lnw.cpp:106: error: 'CloseHandle' was not declared in this scope lnw.cpp:107: error: '_T' was not declared in this scope lnw.cpp:107: error: '_tprintf' was not declared in this scope lnw.cpp:108: error: 'ERROR_ALREADY_EXISTS' was not declared in this scope lnw.cpp:108: error: 'SetLastError' was not declared in this scope lnw.cpp:112: error: 'fromFile' was not declared in this scope lnw.cpp:112: error: 'GENERIC_WRITE' was not declared in this scope lnw.cpp:113: error: 'FILE_FLAG_BACKUP_SEMANTICS' was not declared in this scope lnw.cpp:113: error: 'FILE_FLAG_POSIX_SEMANTICS' was not declared in this scope lnw.cpp:114: error: 'INVALID_HANDLE_VALUE' was not declared in this scope lnw.cpp:115: error: '_T' was not declared in this scope lnw.cpp:117: error: 'buf1' was not declared in this scope lnw.cpp:117: error: 'GetFullPathName' was not declared in this scope lnw.cpp:119: error: 'wsi' was not declared in this scope lnw.cpp:119: error: 'BACKUP_LINK' was not declared in this scope lnw.cpp:123: error: 'CP_ACP' was not declared in this scope lnw.cpp:123: error: 'buf2' was not declared in this scope lnw.cpp:123: error: 'MultiByteToWideChar' was not declared in this scope lnw.cpp:127: error: 'wcslen' was not declared in this scope lnw.cpp:129: error: 'byte' was not declared in this scope lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:30: error: ISO C++ forbids declaration of 'BOOL' with no type lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:129: error: expected `)' before numeric constant lnw.cpp:30: error: typedef 'BOOL' is initialized (use __typeof__ instead) lnw.cpp:130: error: expected `)' before ';' token lnw.cpp:30: error: '__stdcall' was not declared in this scope lnw.cpp:30: error: 'chl_t' was not declared in this scope lnw.cpp:130: error: expected `)' before ';' token lnw.cpp:130: error: expected `)' before ';' tokenlnw.cpp:30: error: expected ',' or ';' before '(' token lnw.cpp:131: error: 'numwritten' was not declared in this scope lnw.cpp:33: error: 'TCHAR' was not declared in this scope lnw.cpp:33: error: 'oldpath' was not declared in this scopelnw.cpp:131: error: expected primary-expression before ')' token lnw.cpp:33: error: 'TCHAR' was not declared in this scope lnw.cpp:131: error: expected primary-expression before ')' token lnw.cpp:131: error: expected `)' before numeric constantlnw.cpp:33: error: 'newpath' was not declared in this scope lnw.cpp:132: error: expected `)' before ';' token lnw.cpp:33: error: initializer expression list treated as compound expressionlnw.cpp:132: error: expected `)' before ';' token lnw.cpp:132: error: expected `)' before ';' token lnw.cpp:134: error: 'byte' was not declared in this scope lnw.cpp:134: error: expected primary-expression before ')' token lnw.cpp:47: error: expected ',' or '...' before '*' tokenlnw.cpp:134: error: 'numwritten' was not declared in this scope lnw.cpp:134: error: 'FALSE' was not declared in this scope lnw.cpp:47: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp:134: error: 'BackupWrite' was not declared in this scope lnw.cpp:135: error: '_T' was not declared in this scope lnw.cpp:136: error: 'numwritten' was not declared in this scope lnw.cpp:137: error: '_T' was not declared in this scopelnw.cpp: In function 'void doerr(int)': lnw.cpp:49: error: 'DWORD' was not declared in this scope lnw.cpp:49: error: expected `;' before 'e' lnw.cpp:51: error: 'e' was not declared in this scope lnw.cpp:51: error: 'GetLastError' was not declared in this scope lnw.cpp:140: error: 'byte' was not declared in this scope lnw.cpp:140: error: expected primary-expression before ')' token lnw.cpp:140: error: 'numwritten' was not declared in this scope lnw.cpp:140: error: 'TRUE' was not declared in this scope lnw.cpp:140: error: 'FALSE' was not declared in this scope lnw.cpp:140: error: 'BackupWrite' was not declared in this scope lnw.cpp:142: error: 'CloseHandle' was not declared in this scope lnw.cpp:55: error: '_T' was not declared in this scope lnw.cpp:55: error: 'file' was not declared in this scope lnw.cpp:55: error: 'line' was not declared in this scope lnw.cpp:55: error: '_tprintf' was not declared in this scope lnw.cpp:56: error: 'exit' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:147: error: expected ',' or '...' before '*' token lnw.cpp:147: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp: In function 'int CreateHardLinkNt5(int)': lnw.cpp:149: error: 'chl_t' was not declared in this scopelnw.cpp: In function 'void enableprivs()': lnw.cpp:63: error: 'HANDLE' was not declared in this scope lnw.cpp:63: error: expected `;' before 'hToken' lnw.cpp:64: error: 'byte' was not declared in this scopelnw.cpp:149: error: expected `;' before 'chl' lnw.cpp:64: error: expected `;' before 'buf' lnw.cpp:65: error: 'TOKEN_PRIVILEGES' was not declared in this scope lnw.cpp:153: error: 'HMODULE' was not declared in this scope lnw.cpp:65: error: 'tkp' was not declared in this scope lnw.cpp:153: error: expected `;' before 'hmk32' lnw.cpp:65: error: expected primary-expression before ')' tokenlnw.cpp:154: error: 'hmk32' was not declared in this scope lnw.cpp:154: error: expected `)' before numeric constant lnw.cpp:156: error: 'chl' was not declared in this scope lnw.cpp:65: error: expected `)' before 'buf'lnw.cpp:156: error: expected `;' before 'GetProcAddress' lnw.cpp:162: error: 'toFile' was not declared in this scope lnw.cpp:67: error: 'GetCurrentProcess' was not declared in this scope lnw.cpp:162: error: 'fromFile' was not declared in this scope lnw.cpp:68: error: 'TOKEN_ADJUST_PRIVILEGES' was not declared in this scope lnw.cpp:68: error: 'TOKEN_QUERY' was not declared in this scope lnw.cpp:68: error: 'hToken' was not declared in this scope lnw.cpp:163: error: '_T' was not declared in this scope lnw.cpp:68: error: 'OpenProcessToken' was not declared in this scope lnw.cpp:164: error: 'GetLastError' was not declared in this scope lnw.cpp:164: error: '_tprintf' was not declared in this scope lnw.cpp:69: error: '_T' was not declared in this scope lnw.cpp:168: error: 'FreeLibrary' was not declared in this scope lnw.cpp:73: error: 'SE_BACKUP_NAME' was not declared in this scope lnw.cpp:73: error: 'LookupPrivilegeValue' was not declared in this scope lnw.cpp:74: error: '_T' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:174: error: redefinition of 'int create_hard_link' lnw.cpp:76: error: 'SE_RESTORE_NAME' was not declared in this scopelnw.cpp:33: error: 'int create_hard_link' previously defined here lnw.cpp:174: error: 'TCHAR' was not declared in this scope lnw.cpp:76: error: 'LookupPrivilegeValue' was not declared in this scopelnw.cpp:174: error: 'oldpath' was not declared in this scope lnw.cpp:174: error: 'TCHAR' was not declared in this scope lnw.cpp:174: error: 'newpath' was not declared in this scope lnw.cpp:77: error: '_T' was not declared in this scope lnw.cpp:80: error: 'SE_PRIVILEGE_ENABLED' was not declared in this scope lnw.cpp:83: error: 'hToken' was not declared in this scope lnw.cpp:83: error: 'FALSE' was not declared in this scope lnw.cpp:83: error: 'AdjustTokenPrivileges' was not declared in this scope lnw.cpp:84: error: '_T' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:91: error: expected ',' or '...' before '*' token lnw.cpp:91: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp: In function 'void CreateHardLinkNt4(int)': lnw.cpp:93: error: 'HANDLE' was not declared in this scope lnw.cpp:93: error: expected `;' before 'fh' lnw.cpp:94: error: 'TCHAR' does not name a type lnw.cpp:95: error: 'p' was not declared in this scope lnw.cpp:97: error: 'WIN32_STREAM_ID' was not declared in this scope lnw.cpp:97: error: expected `;' before 'wsi' lnw.cpp:98: error: 'MAX_PATH' was not declared in this scope lnw.cpp:99: error: 'DWORD' was not declared in this scope lnw.cpp:99: error: expected `;' before 'numwritten' lnw.cpp:103: error: 'fh' was not declared in this scope lnw.cpp:103: error: 'toFile' was not declared in this scope lnw.cpp:103: error: 'OPEN_EXISTING' was not declared in this scope lnw.cpp:103: error: 'CreateFile' was not declared in this scope lnw.cpp:104: error: 'INVALID_HANDLE_VALUE' was not declared in this scope lnw.cpp:106: error: 'CloseHandle' was not declared in this scope lnw.cpp:107: error: '_T' was not declared in this scope lnw.cpp:107: error: '_tprintf' was not declared in this scope lnw.cpp:108: error: 'ERROR_ALREADY_EXISTS' was not declared in this scope lnw.cpp:108: error: 'SetLastError' was not declared in this scope lnw.cpp:112: error: 'fromFile' was not declared in this scope lnw.cpp:112: error: 'GENERIC_WRITE' was not declared in this scope lnw.cpp:113: error: 'FILE_FLAG_BACKUP_SEMANTICS' was not declared in this scope lnw.cpp:113: error: 'FILE_FLAG_POSIX_SEMANTICS' was not declared in this scope lnw.cpp:114: error: 'INVALID_HANDLE_VALUE' was not declared in this scope lnw.cpp:115: error: '_T' was not declared in this scope lnw.cpp:117: error: 'buf1' was not declared in this scope lnw.cpp:117: error: 'GetFullPathName' was not declared in this scope lnw.cpp:119: error: 'wsi' was not declared in this scope lnw.cpp:119: error: 'BACKUP_LINK' was not declared in this scope lnw.cpp:123: error: 'CP_ACP' was not declared in this scope lnw.cpp:123: error: 'buf2' was not declared in this scope lnw.cpp:123: error: 'MultiByteToWideChar' was not declared in this scope lnw.cpp:127: error: 'wcslen' was not declared in this scope lnw.cpp:129: error: 'byte' was not declared in this scope lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:129: error: expected primary-expression before ')' token lnw.cpp:129: error: expected `)' before numeric constant lnw.cpp:130: error: expected `)' before ';' token lnw.cpp:130: error: expected `)' before ';' token lnw.cpp:130: error: expected `)' before ';' token lnw.cpp:131: error: 'numwritten' was not declared in this scope lnw.cpp:131: error: expected primary-expression before ')' token lnw.cpp:131: error: expected primary-expression before ')' token lnw.cpp:131: error: expected `)' before numeric constant lnw.cpp:132: error: expected `)' before ';' token lnw.cpp:132: error: expected `)' before ';' token lnw.cpp:132: error: expected `)' before ';' token lnw.cpp:134: error: 'byte' was not declared in this scope lnw.cpp:134: error: expected primary-expression before ')' token lnw.cpp:134: error: 'numwritten' was not declared in this scope lnw.cpp:134: error: 'FALSE' was not declared in this scope lnw.cpp:134: error: 'BackupWrite' was not declared in this scope lnw.cpp:135: error: '_T' was not declared in this scope lnw.cpp:136: error: 'numwritten' was not declared in this scope lnw.cpp:137: error: '_T' was not declared in this scope lnw.cpp:140: error: 'byte' was not declared in this scope lnw.cpp:140: error: expected primary-expression before ')' token lnw.cpp:140: error: 'numwritten' was not declared in this scope lnw.cpp:140: error: 'TRUE' was not declared in this scope lnw.cpp:140: error: 'FALSE' was not declared in this scope lnw.cpp:140: error: 'BackupWrite' was not declared in this scope lnw.cpp:142: error: 'CloseHandle' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:147: error: expected ',' or '...' before '*' token lnw.cpp:147: error: ISO C++ forbids declaration of 'TCHAR' with no type lnw.cpp: In function 'int CreateHardLinkNt5(int)': lnw.cpp:149: error: 'chl_t' was not declared in this scope lnw.cpp:149: error: expected `;' before 'chl' lnw.cpp:153: error: 'HMODULE' was not declared in this scope lnw.cpp:153: error: expected `;' before 'hmk32' lnw.cpp:154: error: 'hmk32' was not declared in this scope lnw.cpp:154: error: expected `)' before numeric constant lnw.cpp:156: error: 'chl' was not declared in this scope lnw.cpp:156: error: expected `;' before 'GetProcAddress' lnw.cpp:162: error: 'toFile' was not declared in this scope lnw.cpp:162: error: 'fromFile' was not declared in this scope lnw.cpp:163: error: '_T' was not declared in this scope lnw.cpp:164: error: 'GetLastError' was not declared in this scope lnw.cpp:164: error: '_tprintf' was not declared in this scope lnw.cpp:168: error: 'FreeLibrary' was not declared in this scope lnw.cpp: At global scope: lnw.cpp:174: error: redefinition of 'int create_hard_link' lnw.cpp:33: error: 'int create_hard_link' previously defined here lnw.cpp:174: error: 'TCHAR' was not declared in this scope lnw.cpp:174: error: 'oldpath' was not declared in this scope lnw.cpp:174: error: 'TCHAR' was not declared in this scope lnw.cpp:174: error: 'newpath' was not declared in this scope lipo: can't open input file: /var/tmp//ccmirRIB.out (No such file or directory) make: *** [lnw.o] Error 1