[jboss-jira] [JBoss JIRA] (WFLY-8831) libwfssl and aplnc syntax errors MSVC doesn't know how to deal with

Michal Karm Babacek (JIRA) issues at jboss.org
Wed May 24 05:52:00 EDT 2017


Michal Karm Babacek created WFLY-8831:
-----------------------------------------

             Summary: libwfssl and aplnc syntax errors MSVC doesn't know how to deal with
                 Key: WFLY-8831
                 URL: https://issues.jboss.org/browse/WFLY-8831
             Project: WildFly
          Issue Type: Bug
          Components: Security, Web (Undertow)
         Environment: Windows
            Reporter: Michal Karm Babacek
            Assignee: Stuart Douglas
            Priority: Blocker


CI build broken on Windows on master since  May 19th: 
{code}

C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2>unzip arch=64,label=w2k12r2\OpenSSL*.zip -d .\openssl 
Archive:  arch=64,label=w2k12r2/OpenSSL_1_0_2h-64.zip
   creating: ./openssl/bin/        
  inflating: ./openssl/bin/libeay32.dll  
  inflating: ./openssl/bin/openssl.exe  
  inflating: ./openssl/bin/ssleay32.dll  
   creating: ./openssl/include/    
   creating: ./openssl/include/openssl/
  inflating: ./openssl/include/openssl/aes.h  
  inflating: ./openssl/include/openssl/applink.c  
  inflating: ./openssl/include/openssl/asn1.h  
  inflating: ./openssl/include/openssl/asn1t.h  
  inflating: ./openssl/include/openssl/asn1_mac.h  
  inflating: ./openssl/include/openssl/bio.h  
  inflating: ./openssl/include/openssl/blowfish.h  
  inflating: ./openssl/include/openssl/bn.h  
  inflating: ./openssl/include/openssl/buffer.h  
  inflating: ./openssl/include/openssl/camellia.h  
  inflating: ./openssl/include/openssl/cast.h  
  inflating: ./openssl/include/openssl/cmac.h  
  inflating: ./openssl/include/openssl/cms.h  
  inflating: ./openssl/include/openssl/comp.h  
  inflating: ./openssl/include/openssl/conf.h  
  inflating: ./openssl/include/openssl/conf_api.h  
  inflating: ./openssl/include/openssl/crypto.h  
  inflating: ./openssl/include/openssl/des.h  
  inflating: ./openssl/include/openssl/des_old.h  
  inflating: ./openssl/include/openssl/dh.h  
  inflating: ./openssl/include/openssl/dsa.h  
  inflating: ./openssl/include/openssl/dso.h  
  inflating: ./openssl/include/openssl/dtls1.h  
  inflating: ./openssl/include/openssl/ebcdic.h  
  inflating: ./openssl/include/openssl/ec.h  
  inflating: ./openssl/include/openssl/ecdh.h  
  inflating: ./openssl/include/openssl/ecdsa.h  
  inflating: ./openssl/include/openssl/engine.h  
  inflating: ./openssl/include/openssl/err.h  
  inflating: ./openssl/include/openssl/evp.h  
  inflating: ./openssl/include/openssl/e_os2.h  
  inflating: ./openssl/include/openssl/hmac.h  
  inflating: ./openssl/include/openssl/idea.h  
  inflating: ./openssl/include/openssl/krb5_asn.h  
  inflating: ./openssl/include/openssl/kssl.h  
  inflating: ./openssl/include/openssl/lhash.h  
  inflating: ./openssl/include/openssl/md4.h  
  inflating: ./openssl/include/openssl/md5.h  
  inflating: ./openssl/include/openssl/mdc2.h  
  inflating: ./openssl/include/openssl/modes.h  
  inflating: ./openssl/include/openssl/objects.h  
  inflating: ./openssl/include/openssl/obj_mac.h  
  inflating: ./openssl/include/openssl/ocsp.h  
  inflating: ./openssl/include/openssl/opensslconf.h  
  inflating: ./openssl/include/openssl/opensslv.h  
  inflating: ./openssl/include/openssl/ossl_typ.h  
  inflating: ./openssl/include/openssl/pem.h  
  inflating: ./openssl/include/openssl/pem2.h  
  inflating: ./openssl/include/openssl/pkcs12.h  
  inflating: ./openssl/include/openssl/pkcs7.h  
  inflating: ./openssl/include/openssl/pqueue.h  
  inflating: ./openssl/include/openssl/rand.h  
  inflating: ./openssl/include/openssl/rc2.h  
  inflating: ./openssl/include/openssl/rc4.h  
  inflating: ./openssl/include/openssl/ripemd.h  
  inflating: ./openssl/include/openssl/rsa.h  
  inflating: ./openssl/include/openssl/safestack.h  
  inflating: ./openssl/include/openssl/seed.h  
  inflating: ./openssl/include/openssl/sha.h  
  inflating: ./openssl/include/openssl/srp.h  
  inflating: ./openssl/include/openssl/srtp.h  
  inflating: ./openssl/include/openssl/ssl.h  
  inflating: ./openssl/include/openssl/ssl2.h  
  inflating: ./openssl/include/openssl/ssl23.h  
  inflating: ./openssl/include/openssl/ssl3.h  
  inflating: ./openssl/include/openssl/stack.h  
  inflating: ./openssl/include/openssl/symhacks.h  
  inflating: ./openssl/include/openssl/tls1.h  
  inflating: ./openssl/include/openssl/ts.h  
  inflating: ./openssl/include/openssl/txt_db.h  
  inflating: ./openssl/include/openssl/ui.h  
  inflating: ./openssl/include/openssl/ui_compat.h  
  inflating: ./openssl/include/openssl/whrlpool.h  
  inflating: ./openssl/include/openssl/x509.h  
  inflating: ./openssl/include/openssl/x509v3.h  
  inflating: ./openssl/include/openssl/x509_vfy.h  
   creating: ./openssl/lib/        
   creating: ./openssl/lib/engines/
  inflating: ./openssl/lib/engines/4758cca.dll  
  inflating: ./openssl/lib/engines/aep.dll  
  inflating: ./openssl/lib/engines/atalla.dll  
  inflating: ./openssl/lib/engines/capi.dll  
  inflating: ./openssl/lib/engines/chil.dll  
  inflating: ./openssl/lib/engines/cswift.dll  
  inflating: ./openssl/lib/engines/gmp.dll  
  inflating: ./openssl/lib/engines/gost.dll  
  inflating: ./openssl/lib/engines/nuron.dll  
  inflating: ./openssl/lib/engines/padlock.dll  
  inflating: ./openssl/lib/engines/sureware.dll  
  inflating: ./openssl/lib/engines/ubsec.dll  
  inflating: ./openssl/lib/libeay32.lib  
  inflating: ./openssl/lib/ssleay32.lib  
  inflating: ./openssl/LICENSE       
   creating: ./openssl/ssl/        
  inflating: ./openssl/ssl/openssl.cnf  

C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2>IF NOT 0 == 0 (exit 1  ) 

C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2>if "64" EQU "64" (
call vcvars64  
 set "JAVA_HOME=C:\Program Files\Java\latest\" 
)  else (
set "JAVA_HOME=C:\Program Files (x86)\Java\latest\"  
 set "PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64;C:\Program Files (x86)\Gawk\bin;C:\Program Files (x86)\Zip\bin;C:\Program Files (x86)\Unzip\bin;C:\Program Files (x86)\Bzip2\bin;C:\Users\Administrator\Tools\cmder\vendor\git-for-windows\bin;C:\Program Files\TortoiseSVN\bin;C:\apache-maven-3.3.9\bin;C:\Users\Administrator\Tools\cmder\vendor\git-for-windows\usr\bin\;"  
 call vcvars32 
) 

C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2>mvn clean package -Dorg.wildfly.openssl.path.crypto="C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2\openssl\bin\libeay32.dll" -Dorg.wildfly.openssl.path.ssl="C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2\openssl\bin\ssleay32.dll" 
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] wildfly-openssl-parent
[INFO] wildfly-openssl-windows-x86_64
[INFO] wildfly-openssl-java
[INFO] wildfly-openssl
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building wildfly-openssl-parent 1.0.0.CR4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ wildfly-openssl-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ wildfly-openssl-parent ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ wildfly-openssl-parent ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ wildfly-openssl-parent ---
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2
[INFO] Storing buildNumber: 140b3b271904d699fc9636ccd42832dd16564647 at timestamp: 1495619130493
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\workspace\workspace\wildfly-openssl-windows\arch\64\label\w2k12r2
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- maven-source-plugin:3.0.0:jar-no-fork (attach-sources) @ wildfly-openssl-parent ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building wildfly-openssl-windows-x86_64 1.0.0.CR4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ wildfly-openssl-windows-x86_64 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ wildfly-openssl-windows-x86_64 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ wildfly-openssl-windows-x86_64 ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ wildfly-openssl-windows-x86_64 ---
[INFO] 
[INFO] --- exec-maven-plugin:1.5.0:exec (default) @ wildfly-openssl-windows-x86_64 ---

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation.  All rights reserved.

	mkdir target
	mkdir target\classes
	mkdir target\classes\win-x86_64
	cl ../libwfssl/src\alpn.c  /machine:AMD64 /Fotarget\alpn.obj -I..\libwfssl\include -I"C:\Program Files\Java\latest\\include" -I"C:\Program Files\Java\latest\\include\win32" /LD /c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '/machine:AMD64'
alpn.c
..\libwfssl\include\wfssl.h(46): warning C4068: unknown pragma
..\libwfssl\include\wfssl.h(520): error C2146: syntax error: missing ')' before identifier 'opts'
..\libwfssl\include\wfssl.h(520): error C2146: syntax error: missing ';' before identifier 'opts'
..\libwfssl\include\wfssl.h(520): error C2061: syntax error: identifier 'opts'
..\libwfssl\include\wfssl.h(520): error C2059: syntax error: ')'
..\libwfssl\include\wfssl.h(550): error C2059: syntax error: '}'
../libwfssl/src\alpn.c(6): error C2061: syntax error: identifier 'ssl_methods'
../libwfssl/src\alpn.c(6): error C2059: syntax error: ';'
../libwfssl/src\alpn.c(208): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(208): error C2224: left of '.SSL_set_alpn_protos' must have struct/union type
../libwfssl/src\alpn.c(217): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(217): error C2224: left of '.SSL_set_alpn_protos' must have struct/union type
../libwfssl/src\alpn.c(228): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(228): error C2224: left of '.SSL_set_alpn_protos' must have struct/union type
../libwfssl/src\alpn.c(235): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(235): error C2224: left of '.SSL_CTX_set_alpn_select_cb' must have struct/union type
../libwfssl/src\alpn.c(250): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(250): error C2224: left of '.SSL_get0_alpn_selected' must have struct/union type
../libwfssl/src\alpn.c(256): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(256): error C2224: left of '.SSL_get0_alpn_selected' must have struct/union type
../libwfssl/src\alpn.c(264): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(264): error C2224: left of '.SSL_set_alpn_protos' must have struct/union type
../libwfssl/src\alpn.c(280): error C2065: 'ssl_methods': undeclared identifier
../libwfssl/src\alpn.c(280): error C2224: left of '.SSL_set_alpn_protos' must have struct/union type
../libwfssl/src\alpn.c(280): warning C4033: 'Java_org_wildfly_openssl_SSLImpl_isAlpnSupported0' must return a value
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
	at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
	at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] wildfly-openssl-parent ............................. SUCCESS [  1.599 s]
[INFO] wildfly-openssl-windows-x86_64 ..................... FAILURE [  0.615 s]
[INFO] wildfly-openssl-java ............................... SKIPPED
[INFO] wildfly-openssl .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.509 s
[INFO] Finished at: 2017-05-24T02:45:31-07:00
[INFO] Final Memory: 15M/266M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (default) on project wildfly-openssl-windows-x86_64: Command execution failed. Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wildfly-openssl-windows-x86_64
Build step 'Execute Windows batch command' marked build as failure
Archiving artifacts
[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
Finished: FAILURE
{code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list