Error Compiling Ruby

Discussion in 'Ruby' started by Kota Weaver, Jul 19, 2010.

  1. Kota Weaver

    Kota Weaver Guest

    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!
    --
    Posted via http://www.ruby-forum.com/.
    Kota Weaver, Jul 19, 2010
    #1
    1. Advertising

  2. Kota Weaver

    Roger Pack Guest


    > 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
    --
    Posted via http://www.ruby-forum.com/.
    Roger Pack, Jul 21, 2010
    #2
    1. Advertising

  3. Kota Weaver

    Kota Weaver Guest

    Roger Pack 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?
    --
    Posted via http://www.ruby-forum.com/.
    Kota Weaver, Jul 21, 2010
    #3
  4. Kota Weaver

    Luis Lavena Guest

    On Jul 21, 4:50 pm, Kota Weaver <> wrote:
    > Roger Pack 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?


    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]

    --
    Luis Lavena
    Luis Lavena, Jul 21, 2010
    #4
  5. Kota Weaver

    Kota Weaver Guest

    Luis Lavena wrote:
    > On Jul 21, 4:50�pm, Kota Weaver <> 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?
    --
    Posted via http://www.ruby-forum.com/.
    Kota Weaver, Jul 21, 2010
    #5
  6. Kota Weaver

    Luis Lavena Guest

    On Jul 21, 7:17 pm, Kota Weaver <> wrote:
    > Luis Lavena wrote:
    > > On Jul 21, 4:50 pm, Kota Weaver <> 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

    --
    Luis Lavena
    Luis Lavena, Jul 22, 2010
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Garrett Cooper
    Replies:
    0
    Views:
    545
    Garrett Cooper
    Feb 24, 2009
  2. Garrett Cooper
    Replies:
    0
    Views:
    488
    Garrett Cooper
    Feb 24, 2009
  3. KONTRA Gergely
    Replies:
    0
    Views:
    99
    KONTRA Gergely
    Jan 26, 2004
  4. Lon Baker
    Replies:
    1
    Views:
    216
    Csaba Henk
    Mar 21, 2005
  5. Sparky Mat
    Replies:
    5
    Views:
    101
    Sparky Mat
    Feb 26, 2009
Loading...

Share This Page