[ https://issues.apache.org/jira/browse/HADOOP-10144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maer resolved HADOOP-10144. --------------------------- Resolution: Fixed The issue has been fix by copying x64 configuration to Win32 configuration and recompiled. > Error on build in windows 7 box > ------------------------------- > > Key: HADOOP-10144 > URL: https://issues.apache.org/jira/browse/HADOOP-10144 > Project: Hadoop Common > Issue Type: Bug > Components: native > Affects Versions: 2.2.0 > Environment: Windows 7 x86 > Reporter: Maer > > Here is log file: > [INFO] > [INFO] --- exec-maven-plugin:1.2:exec (compile-ms-native-dll) @ hadoop-common > -- > - > Building the projects in this solution one at a time. To enable parallel > build, > please add the "/m" switch. > Build started 12/4/2013 8:59:35 PM. > Project > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.sln" > on node 1 (default targets). > ValidateSolutionConfiguration: > Building solution configuration "Release|Win32". > Project > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.sln" > (1) is building > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\na > tive.vcxproj" (2) on node 1 (default targets). > InitializeBuildStatus: > Touching "..\..\..\target\native\Release\native.tlog\unsuccessfulbuild". > ClCompile: > All outputs are up-to-date. > Link: > C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\link.exe > /ERROR > REPORT:QUEUE > /OUT:"C:\hdfs\hadoop-common-project\hadoop-common\target/bin/hadoop > .dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:..\..\..\target\bin Ws2_32.lib > libwinutil > s.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib > advapi32.lib s > hell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST > /MA > NIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG > /PDB:"C:\h > dfs\hadoop-common-project\hadoop-common\target/bin/hadoop.pdb" > /SUBSYSTEM:WINDOW > S /OPT:REF /OPT:ICF /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT > /IMPLIB:"C:\hdfs\hadoo > p-common-project\hadoop-common\target/bin/hadoop.lib" /MACHINE:X64 /DLL > ..\..\.. > \target\native\Release\lz4.obj > ..\..\..\target\native\Release\Lz4Compressor.obj > ..\..\..\target\native\Release\Lz4Decompressor.obj > ..\..\..\target\native\Release\file_descriptor.obj > ..\..\..\target\native\Release\NativeIO.obj > ..\..\..\target\native\Release\JniBasedUnixGroupsMappingWin.obj > ..\..\..\target\native\Release\bulk_crc32.obj > ..\..\..\target\native\Release\NativeCodeLoader.obj > ..\..\..\target\native\Release\NativeCrc32.obj > Creating library > C:\hdfs\hadoop-common-project\hadoop-common\target/bin/had > oop.lib and object > C:\hdfs\hadoop-common-project\hadoop-common\target/bin/hadoop > .exp > NativeIO.obj : error LNK2001: unresolved external symbol > FindFileOwnerAndPermiss > ionByHandle > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native. > vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol SymbolicLinkCheck > [C:\h > dfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol ChangeFileModeByMask > [C > :\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol GetAccntNameFromSid > [C: > \hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol JunctionPointCheck > [C:\ > hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol > CheckAccessForCurrentUs > er > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > JniBasedUnixGroupsMappingWin.obj : error LNK2001: unresolved external symbol > Net > ApiBufferFree > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\nativ > e.vcxproj] > JniBasedUnixGroupsMappingWin.obj : error LNK2001: unresolved external symbol > Get > LocalGroupsForUser > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\ > native.vcxproj] > NativeCodeLoader.obj : error LNK2001: unresolved external symbol > GetLibraryName > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > C:\hdfs\hadoop-common-project\hadoop-common\target/bin/hadoop.dll : fatal > error > LNK1120: 9 unresolved externals > [C:\hdfs\hadoop-common-project\hadoop-common\src > \main\native\native.vcxproj] > Done Building Project > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\nati > ve\native.vcxproj" (default targets) -- FAILED. > Done Building Project > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\nati > ve\native.sln" (default targets) -- FAILED. > Build FAILED. > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.sln" > (defaul > t target) (1) -> > "C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj" > (de > fault target) (2) -> > (Link target) -> > NativeIO.obj : error LNK2001: unresolved external symbol > FindFileOwnerAndPermi > ssionByHandle > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\nativ > e.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol SymbolicLinkCheck > [C: > \hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol > ChangeFileModeByMask > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol > GetAccntNameFromSid [ > C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol JunctionPointCheck > [C > :\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > NativeIO.obj : error LNK2001: unresolved external symbol > CheckAccessForCurrent > User > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj > ] > JniBasedUnixGroupsMappingWin.obj : error LNK2001: unresolved external > symbol N > etApiBufferFree > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\nat > ive.vcxproj] > JniBasedUnixGroupsMappingWin.obj : error LNK2001: unresolved external > symbol G > etLocalGroupsForUser > [C:\hdfs\hadoop-common-project\hadoop-common\src\main\nativ > e\native.vcxproj] > NativeCodeLoader.obj : error LNK2001: unresolved external symbol > GetLibraryNam > e [C:\hdfs\hadoop-common-project\hadoop-common\src\main\native\native.vcxproj] > C:\hdfs\hadoop-common-project\hadoop-common\target/bin/hadoop.dll : fatal > erro > r LNK1120: 9 unresolved externals > [C:\hdfs\hadoop-common-project\hadoop-common\s > rc\main\native\native.vcxproj] > 0 Warning(s) > 10 Error(s) > Time Elapsed 00:00:00.47 > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Hadoop Main ................................ SUCCESS [1.159s] > [INFO] Apache Hadoop Project POM ......................... SUCCESS [1.160s] > [INFO] Apache Hadoop Annotations ......................... SUCCESS [1.815s] > [INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.165s] > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [1.902s] > [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [2.528s] > [INFO] Apache Hadoop Auth ................................ SUCCESS [1.971s] > [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [1.740s] > [INFO] Apache Hadoop Common .............................. FAILURE [6.208s] > [INFO] Apache Hadoop NFS ................................. SKIPPED > ... -- This message was sent by Atlassian JIRA (v6.1#6144)