Uploaded image for project: 'WildFly OpenSSL'
  1. WildFly OpenSSL
  2. WFSSL-13

Errors building the project in libwfssl/src/ssl.c

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.7.Final
    • None
    • None

      When trying to run mvn clean install in a Fedora 28 (with JDK1.8):

      In file included from ../libwfssl/src/ssl.c:2:
      ../libwfssl/src/ssl.c: In function ‘Java_org_wildfly_openssl_SSLImpl_setServerNameIndication0’:
      ../libwfssl/include/wfssl.h:71:17: error: passing argument 4 of ‘ssl_methods.SSL_ctrl’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
       #define J2S(V)  c##V
                       ^
      ../libwfssl/src/ssl.c:868:32: note: in expansion of macro ‘J2S’
           TLSEXT_NAMETYPE_host_name, J2S(hostName))) {
                                      ^~~
      ../libwfssl/include/wfssl.h:71:17: note: expected ‘void *’ but argument is of type ‘const char *’
       #define J2S(V)  c##V
                       ^
      ../libwfssl/src/ssl.c:868:32: note: in expansion of macro ‘J2S’
           TLSEXT_NAMETYPE_host_name, J2S(hostName))) {
                                      ^~~
      cc1: all warnings being treated as errors
      make: *** [Makefile:14: target/ssl.o] Error 1
      
      

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: