Compiling netty-tcnative dll for Windows 32-bit not working -


i unable compile netty tcnative dll windows 32-bit. have followed guide on netty site on how build, , of steps succeed except maven install.

this log step:

[info] scanning projects... [info] ------------------------------------------------------------------------ [info] detecting operating system , cpu architecture [info] ------------------------------------------------------------------------ [info] os.detected.name: windows [info] os.detected.arch: x86_64 [info] os.detected.classifier: windows-x86_64 [info] ------------------------------------------------------------------------ [info] reactor build order: [info]  [info] netty/tomcatnative [parent] [info] netty/tomcatnative [openssl - dynamic] [info] netty/tomcatnative [openssl - static] [info] netty/tomcatnative [boringssl - static] [info] netty/tomcatnative [libressl - static] [info]  [info] ------------------------------------------------------------------------ [info] building netty/tomcatnative [parent] 2.0.7.final-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-enforcer-plugin:1.3:enforce (enforce-maven) @ netty-tcnative-parent --- [info]  [info] --- maven-enforcer-plugin:1.3:enforce (enforce-tools) @ netty-tcnative-parent --- [info]  [info] --- maven-checkstyle-plugin:2.10:check (check-style) @ netty-tcnative-parent --- [info]  [info] --- maven-antrun-plugin:1.8:run (write-version-properties) @ netty-tcnative-parent --- [info] executing tasks  main:      [echo] current commit: 372b3e3 on 2017-09-12 10:15:57 -0700    [delete] deleting: c:\workspaces\netty-tcnative\target\classes\meta-inf\io.netty.versions.properties [propertyfile] creating new property file: c:\workspaces\netty-tcnative\target\classes\meta-inf\io.netty.versions.properties [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (native-manifest) @ netty-tcnative-parent --- [info] executing tasks  main:      [echo] bundle-nativecode: meta-inf/native/netty_tcnative.dll;osname=win32;processor=x86_64 [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (copy-src) @ netty-tcnative-parent --- [info] executing tasks  main: [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (build-apr) @ netty-tcnative-parent --- [info] executing tasks  build-apr: [info] executed tasks [info]  [info] --- animal-sniffer-maven-plugin:1.9:check (default) @ netty-tcnative-parent --- [info] signature checking skipped. [info]  [info] --- maven-bundle-plugin:2.4.0:manifest (generate-manifest) @ netty-tcnative-parent --- [warning] ignoring project type pom - supportedprojecttypes = [jar] [info]  [info] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources-no-fork) @ netty-tcnative-parent --- [info]  [info] --- maven-install-plugin:2.4:install (default-install) @ netty-tcnative-parent --- [info] installing c:\workspaces\netty-tcnative\pom.xml c:\users\rudi\.m2\repository\io\netty\netty-tcnative-parent\2.0.7.final-snapshot\netty-tcnative-parent-2.0.7.final-snapshot.pom [info]  [info] ------------------------------------------------------------------------ [info] building netty/tomcatnative [openssl - dynamic] 2.0.7.final-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-enforcer-plugin:1.3:enforce (enforce-maven) @ netty-tcnative --- [info]  [info] --- maven-enforcer-plugin:1.3:enforce (enforce-tools) @ netty-tcnative --- [info]  [info] --- maven-enforcer-plugin:1.3:enforce (enforce-msbuild-environment) @ netty-tcnative --- [info]  [info] --- maven-checkstyle-plugin:2.10:check (check-style) @ netty-tcnative --- [info]  [info] --- maven-antrun-plugin:1.8:run (write-version-properties) @ netty-tcnative --- [info] executing tasks  main:      [echo] current commit: 372b3e3 on 2017-09-12 10:15:57 -0700    [delete] deleting: c:\workspaces\netty-tcnative\openssl-dynamic\target\classes\meta-inf\io.netty.versions.properties [propertyfile] creating new property file: c:\workspaces\netty-tcnative\openssl-dynamic\target\classes\meta-inf\io.netty.versions.properties [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (native-manifest) @ netty-tcnative --- [info] executing tasks  main:      [echo] bundle-nativecode: meta-inf/native/netty_tcnative.dll;osname=win32;processor=x86_64 [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (copy-src) @ netty-tcnative --- [info] executing tasks  main: [info] executed tasks [info]  [info] --- maven-antrun-plugin:1.8:run (build-apr) @ netty-tcnative --- [info] executing tasks  build-apr: [info] executed tasks [info]  [info] --- maven-resources-plugin:2.6:resources (default-resources) @ netty-tcnative --- [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory c:\workspaces\netty-tcnative\openssl-dynamic\src\main\resources [info]  [info] --- maven-compiler-plugin:3.1:compile (default-compile) @ netty-tcnative --- [info] nothing compile - classes date [info]  [info] --- maven-hawtjni-plugin:1.11:generate (build-native-lib) @ netty-tcnative --- [info]  [info] --- maven-hawtjni-plugin:1.11:build (build-native-lib) @ netty-tcnative --- [info] executing: cmd.exe /x /c "msbuild vs2010.vcxproj /property:platform=x64 /property:configuration=release" [info] microsoft (r) build engine version 12.0.21005.1 [info] [microsoft .net framework, version 4.0.30319.42000] [info] copyright (c) microsoft corporation. rights reserved. [info]  [info] build started 9/15/2017 1:26:35 pm. [info] project "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj" on node 1 (default targets). [info] initializebuildstatus: [info]   touching "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\netty_tcnative.tlog\unsuccessfulbuild". [info] clcompile: [info]   c:\program files (x86)\microsoft visual studio 12.0\vc\bin\x86_amd64\cl.exe /c /i"c:\program files\java\jdk1.7.0_51\include" /i"c:\program files\java\jdk1.7.0_51\include\win32" /i"c:\workspaces\apr-1.5.2-dist\include" /i"c:\workspaces\apr-1.5.2-dist\include\arch\win32" /i"c:\openssl-win32\include" /i"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\\src\windows" /zi /nologo /w3 /wx- /o2 /oi /ot /gl /d win32_lean_and_mean /d win64 /d ndebug /d _windows /d have_openssl /d _windll /d _unicode /d unicode /gm- /md /gs /gy /fp:precise /zc:wchar_t /zc:forscope /gr- /fo"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\\" /fd"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\vc120.pdb" /gd /tc /errorreport:queue .\src\bb.c .\src\error.c .\src\jnilib.c .\src\native_constants.c .\src\ssl.c .\src\sslcontext.c .\src\sslutils.c [info]   bb.c [info]   error.c [info]   jnilib.c [info] .\src\jnilib.c(75): warning c4267: 'function' : conversion 'size_t' 'jsize', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\jnilib.c(77): warning c4267: 'function' : conversion 'size_t' 'jsize', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\jnilib.c(251): warning c4090: '=' : different 'const' qualifiers [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   native_constants.c [info]   ssl.c [info] .\src\ssl.c(314): warning c4267: 'function' : conversion 'size_t' 'int', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\ssl.c(1261): warning c4244: 'function' : conversion 'jlong' 'unsigned long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\ssl.c(1321): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   sslcontext.c [info] .\src\sslcontext.c(859): warning c4267: '=' : conversion 'size_t' 'unsigned char', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(881): warning c4267: '=' : conversion 'size_t' 'unsigned int', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(952): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(970): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(994): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(1185): warning c4018: '<' : signed/unsigned mismatch [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] .\src\sslcontext.c(1333): warning c4018: '<' : signed/unsigned mismatch [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   sslutils.c [info] link: [info]   c:\program files (x86)\microsoft visual studio 12.0\vc\bin\x86_amd64\link.exe /errorreport:queue /out:"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.dll" /incremental:no /nologo /libpath:"c:\openssl-win32\lib" /libpath:"c:\workspaces\apr-1.5.2-dist\lib" psapi.lib shlwapi.lib ws2_32.lib "libapr-1.lib" ssleay32.lib libeay32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /manifest /manifestuac:"level='asinvoker' uiaccess='false'" /manifest:embed /debug /pdb:"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.pdb" /subsystem:windows /opt:ref /opt:icf /ltcg /tlbid:1 /dynamicbase /nxcompat /implib:"c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.lib" /machine:x64 /dll "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\bb.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\error.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\jnilib.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\native_constants.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\ssl.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\sslcontext.obj" [info]   "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/obj\sslutils.obj" [info]      creating library c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.lib , object c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.exp [info] error.obj : error lnk2001: unresolved external symbol __imp_apr_vsnprintf [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] error.obj : error lnk2001: unresolved external symbol __imp_apr_strerror [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_version_string [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_version [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info] ssl.obj : error lnk2001: unresolved external symbol ssl_session_set_timeout [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] ssl.obj : error lnk2001: unresolved external symbol crypto_set_dynlock_create_callback [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info] sslcontext.obj : error lnk2001: unresolved external symbol sslv23_method [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] sslcontext.obj : error lnk2001: unresolved external symbol ssl_ctx_set_session_id_context [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info] sslutils.obj : error lnk2001: unresolved external symbol ssl_get_ex_data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] sslutils.obj : error lnk2001: unresolved external symbol ssl_get_ex_new_index [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info] c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.dll : fatal error lnk1120: 185 unresolved externals [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info] done building project "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj" (default targets) -- failed. [info]  [info] build failed. [info]  [info] "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj" (default target) (1) -> [info] (clcompile target) ->  [info]   .\src\jnilib.c(75): warning c4267: 'function' : conversion 'size_t' 'jsize', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\jnilib.c(77): warning c4267: 'function' : conversion 'size_t' 'jsize', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\jnilib.c(251): warning c4090: '=' : different 'const' qualifiers [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\ssl.c(314): warning c4267: 'function' : conversion 'size_t' 'int', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\ssl.c(1261): warning c4244: 'function' : conversion 'jlong' 'unsigned long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\ssl.c(1321): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(859): warning c4267: '=' : conversion 'size_t' 'unsigned char', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(881): warning c4267: '=' : conversion 'size_t' 'unsigned int', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(952): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(970): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(994): warning c4244: 'function' : conversion 'jlong' 'long', possible loss of data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(1185): warning c4018: '<' : signed/unsigned mismatch [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   .\src\sslcontext.c(1333): warning c4018: '<' : signed/unsigned mismatch [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]  [info]  [info] "c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj" (default target) (1) -> [info] (link target) ->  [info]   error.obj : error lnk2001: unresolved external symbol __imp_apr_vsnprintf [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   error.obj : error lnk2001: unresolved external symbol __imp_apr_strerror [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_version_string [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_version [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_atomic_init [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_pool_create_ex [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_initialize [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   jnilib.obj : error lnk2001: unresolved external symbol __imp_apr_terminate [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   ssl.obj : error lnk2001: unresolved external symbol ssl_session_set_timeout [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   ssl.obj : error lnk2001: unresolved external symbol crypto_set_dynlock_create_callback [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info]   sslcontext.obj : error lnk2001: unresolved external symbol sslv23_method [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   sslcontext.obj : error lnk2001: unresolved external symbol ssl_ctx_set_session_id_context [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info]   sslutils.obj : error lnk2001: unresolved external symbol ssl_get_ex_data [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]   sslutils.obj : error lnk2001: unresolved external symbol ssl_get_ex_new_index [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] (and many similar lines of errors) [info]   c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\/target/x64-release/lib\netty_tcnative.dll : fatal error lnk1120: 185 unresolved externals [c:\workspaces\netty-tcnative\openssl-dynamic\target\native-build\vs2010.vcxproj] [info]  [info]     13 warning(s) [info]     186 error(s) [info]  [info] time elapsed 00:00:02.28 [info] rc: 1 [info] ------------------------------------------------------------------------ [info] reactor summary: [info]  [info] netty/tomcatnative [parent] ........................ success [  4.724 s] [info] netty/tomcatnative [openssl - dynamic] ............. failure [  5.096 s] [info] netty/tomcatnative [openssl - static] .............. skipped [info] netty/tomcatnative [boringssl - static] ............ skipped [info] netty/tomcatnative [libressl - static] ............. skipped [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 10.427 s [info] finished at: 2017-09-15t13:26:38+02:00 [info] final memory: 24m/224m [info] ------------------------------------------------------------------------ [error] failed execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.11:build (build-native-lib) on project netty-tcnative: build failed: org.apache.maven.plugin.mojoexecutionexception: vcbuild failed exit code: 1 -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception [error]  [error] after correcting problems, can resume build command [error]   mvn <goals> -rf :netty-tcnative 

any assistance appreciated.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -