Project

General

Profile

Actions

Bug #2536

closed

openssl fails to compile

Added by xman (Shin Yee Chung) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
ruby 1.8.6 (2009-08-04 patchlevel 383) [x86_64-linux]
[ruby-core:27340]

Description

=begin
I get the following errors while compiling on a Fedora 12 (x86-64) distribution:

ossl_ssl.c: In function ‘ossl_sslctx_get_ciphers’:
ossl_ssl.c:626: error: ‘STACK’ undeclared (first use in this function)
ossl_ssl.c:626: error: (Each undeclared identifier is reported only once
ossl_ssl.c:626: error: for each function it appears in.)
ossl_ssl.c:626: error: expected expression before ‘)’ token
ossl_ssl.c:629: error: expected expression before ‘)’ token
ossl_ssl.c:629: error: too few arguments to function ‘sk_value’
ossl_ssl.c: In function ‘ossl_ssl_get_peer_cert_chain’:
ossl_ssl.c:1198: warning: passing argument 1 of ‘sk_num’ from incompatible pointer type
/usr/include/openssl/stack.h:79: note: expected ‘const struct _STACK *’ but argument is of type ‘struct stack_st_X509 *’
ossl_ssl.c:1201: warning: passing argument 1 of ‘sk_value’ from incompatible pointer type
/usr/include/openssl/stack.h:80: note: expected ‘const struct _STACK *’ but argument is of type ‘struct stack_st_X509 *’
ossl_ssl.c: In function ‘ossl_ssl_get_cipher’:
ossl_ssl.c:1223: warning: assignment discards qualifiers from pointer target type
make[1]: *** [ossl_ssl.o] Error 1

I've created a patch to resolve the compilation problem, but I haven't tested if the SSL is working properly.
=end


Files

fix_stack_not_found.patch (1.33 KB) fix_stack_not_found.patch xman (Shin Yee Chung), 12/28/2009 11:54 AM

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #2022: Patch for openssl-1.0Closedephoenix (Evan Phoenix)08/31/2009Actions
Actions #1

Updated by naruse (Yui NARUSE) almost 15 years ago

  • Status changed from Open to Closed

=begin
This issue was solved with changeset r26781.
Jeroen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: Atom PDF

Like0
Like0