# Error Compiling Ruby

**URL:** <https://www.ruby-forum.com/t/error-compiling-ruby/191870>\
**Category:** Ruby\
**Created:** [July 20, 2010, 12:58am UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870 "2010-07-20T00:58:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 20, 2010, 12:58am UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/1 "2010-07-20T00:58:58Z")

</div>

Hello,

I am new to Ruby, and I have played around a bit using a pre-built  
package of 1.8.7. I am running openSUSE 11.3 64-bit, and I am trying to  
compile 1.9.1. For some reason, I seem to keep running into this  
problem with OpenSSL:

compiling openssl  
make[1]: Entering directory  
`/home/kota/Programs/Ruby/ruby-1.9.1-p429/ext/openssl' gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -O2 -g -Wall -Wno-parentheses -o ossl_pkcs7.o -c ossl_pkcs7.c make[1]: Leaving directory`/home/kota/Programs/Ruby/ruby-1.9.1-p429/ext/openssl’  
ossl\_pkcs7.c:575:14: error: expected â€˜=â€™, â€˜,â€™, â€˜;â€™, â€˜asmâ€™ or  
â€˜\_\_attribute\_\_â€™ before â€˜\*â€™ token  
ossl\_pkcs7.c: In function â€˜ossl\_pkcs7\_set\_certificatesâ€™:  
ossl\_pkcs7.c:613:5: warning: implicit declaration of function  
â€˜pkcs7\_get\_certs\_or\_crlsâ€™  
ossl\_pkcs7.c:613:11: warning: assignment makes pointer from integer  
without a cast  
ossl\_pkcs7.c: In function â€˜ossl\_pkcs7\_get\_certificatesâ€™:  
ossl\_pkcs7.c:623:5: warning: passing argument 1 of â€˜ossl\_x509\_sk2aryâ€™  
makes pointer from integer without a cast  
ossl.h:117:7: note: expected â€˜struct stack\_st\_X509 \*â€™ but argument is of  
type â€˜intâ€™  
ossl\_pkcs7.c: In function â€˜ossl\_pkcs7\_set\_crlsâ€™:  
ossl\_pkcs7.c:653:10: warning: assignment makes pointer from integer  
without a cast  
ossl\_pkcs7.c: In function â€˜ossl\_pkcs7\_get\_crlsâ€™:  
ossl\_pkcs7.c:663:5: warning: passing argument 1 of â€˜ossl\_x509crl\_sk2aryâ€™  
makes pointer from integer without a cast  
ossl.h:118:7: note: expected â€˜struct stack\_st\_X509\_CRL \*â€™ but argument  
is of type â€˜intâ€™  
make[1]: \*\*\* [ossl\_pkcs7.o] Error 1  
make: \*\*\* [mkmain.sh] Error 1

I have libopenssl-devel libopenssl1\_0\_0 libopenssl1\_0\_0-32bit openssl  
installed. If anyone could give me a clue as to whats wrong, I would  
greatly appreciate it. Thanks!

---

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 21, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/2 "2010-07-21T20:29:27Z")

</div>

> I have libopenssl-devel libopenssl1\_0\_0 libopenssl1\_0\_0-32bit openssl  
> installed. If anyone could give me a clue as to whats wrong, I would  
> greatly appreciate it. Thanks!

Try an older version of openssl I don’t think it’s compatible with 1.0  
yet

---

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 21, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/3 "2010-07-21T21:50:27Z")

</div>

Roger P. wrote:

> > I have libopenssl-devel libopenssl1\_0\_0 libopenssl1\_0\_0-32bit openssl  
> > installed. If anyone could give me a clue as to whats wrong, I would  
> > greatly appreciate it. Thanks!
> 
> Try an older version of openssl I don’t think it’s compatible with 1.0  
> yet

I’ve heard that thats one of the updates that are coming in 1.9 (support  
for both 0.9 series and 1 series of openSSL)? Or am I incorrect?

---

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 22, 2010, 12:17am UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/4 "2010-07-22T00:17:38Z")

</div>

Luis L. wrote:

> On Jul 21, 4:50ï¿½pm, Kota W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > for both 0.9 series and 1 series of openSSL)? ï¿½Or am I incorrect?  
> > That is Ruby 1.9.2, not 1.9.1, which is the one you’re trying to  
> > compile.
> 
> Fri Apr 23 17:29:35 2010 [ruby-core:29256]

Ah, ok, thanks. I am trying to compile the “stable snapshot” on the  
Ruby downloads page. I assume that should work with openSSL 1?

---

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 22, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/5 "2010-07-22T13:28:28Z")

</div>

On Jul 21, 7:17 pm, Kota W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Luis L. wrote:
> 
> > On Jul 21, 4:50 pm, Kota W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > for both 0.9 series and 1 series of openSSL)? Or am I incorrect?  
> > > That is Ruby 1.9.2, not 1.9.1, which is the one you’re trying to  
> > > compile.
> 
> > Fri Apr 23 17:29:35 2010 [ruby-core:29256]
> 
> Ah, ok, thanks. I am trying to compile the “stable snapshot” on the  
> Ruby downloads page. I assume that should work with openSSL 1?

You can try 1.9.2-rc2 or better yet a svn checkout of 1\_9\_2 branch

---

<div class="post-metadata">

**Author:** ![kotakotakota](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a9adbd/32.png) [@kotakotakota](https://www.ruby-forum.com/u/kotakotakota)\
**Post date:** [July 21, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby/191870/6 "2010-07-21T23:55:52Z")

</div>

On Jul 21, 4:50 pm, Kota W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> for both 0.9 series and 1 series of openSSL)? Or am I incorrect?  
> That is Ruby 1.9.2, not 1.9.1, which is the one you’re trying to  
> compile.

Fri Apr 23 17:29:35 2010 [ruby-core:29256]
