[MacPorts] #63644: ruby @1.8.7-p374_13: error: implicit declaration of function 'X509_STORE_get_ex_data' is invalid in C99

MacPorts noreply at macports.org
Tue Oct 19 03:55:44 UTC 2021


#63644: ruby @1.8.7-p374_13: error: implicit declaration of function
'X509_STORE_get_ex_data' is invalid in C99
-----------------------------+--------------------
 Reporter:  cooljeanius      |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.7.1
 Keywords:  bigsur catalina  |       Port:  ruby
-----------------------------+--------------------
 Looks like some combination of `-Werror=implicit-function-declaration`
 being on by default now, and an openssl version incompatibility:
 {{{
 compiling openssl
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ruby/ruby/work/ruby-1.8.7-p374/ext/openssl'
 /usr/bin/clang -I. -I../.. -I../../. -I../.././ext/openssl
 -DRUBY_EXTCONF_H=\"extconf.h\" -I/opt/local/libexec/openssl10/include
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -fno-common
 -pipe -O1 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -arch x86_64  -fno-common -pipe -fno-common
 -I/opt/local/libexec/openssl11/include -arch x86_64 -c ossl.c
 ossl.c:209:16: error: implicit declaration of function
 'X509_STORE_get_ex_data' is invalid in C99 [-Werror,-Wimplicit-function-
 declaration]
         proc = (VALUE)X509_STORE_get_ex_data(ctx->ctx,
 ossl_verify_cb_idx);
                       ^
 ossl.c:209:16: note: did you mean 'X509_STORE_CTX_get_ex_data'?
 /opt/local/libexec/openssl10/include/openssl/x509_vfy.h:542:7: note:
 'X509_STORE_CTX_get_ex_data' declared here
 void *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);
       ^
 1 error generated.
 make[1]: *** [ossl.o] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ruby/ruby/work/ruby-1.8.7-p374/ext/openssl'
 make: *** [all] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ruby/ruby/work/ruby-1.8.7-p374'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ruby/ruby/work/ruby-1.8.7-p374"
 && /usr/bin/make -j1 -w all
 Exit code: 2
 Error: Failed to build ruby: command execution failed
 DEBUG: Error code: CHILDSTATUS 6622 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63644>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list