`
itspace
  • 浏览: 959090 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

AIX ruby调用openssl LoadError

阅读更多
ruby调用openssl时报如下错误:
引用

# oslevel -r
5300-07
$ irb
irb(main):001:0> require 'openssl'
LoadError: load failed - /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/powerpc-aix5.3.0.0/openssl.so
        from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/powerpc-aix5.3.0.0/openssl.so
        from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/openssl.rb:17
        from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from (irb):1

解决方法:
引用
$ pwd
/dbra/app/softs/ruby/ruby-1.8.6-p114/ext/openssl
$ rm -rf *.o,openssl.so,Makefile
$ ruby extconf.rb --with-openssl-dir=/dbra/app/lib/openssl
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... yes
checking for OpenSSL_add_all_digests() in -lcrypto... yes
checking for SSL_library_init() in -lssl... yes
checking for openssl/conf_api.h... yes
=== Checking for OpenSSL features... ===
checking for ERR_peek_last_error()... yes
checking for BN_mod_add()... yes
checking for BN_mod_sqr()... yes
checking for BN_mod_sub()... yes
checking for BN_pseudo_rand_range()... yes
checking for BN_rand_range()... yes
checking for CONF_get1_default_config_file()... yes
checking for EVP_CIPHER_CTX_copy()... no
checking for EVP_CIPHER_CTX_set_padding()... yes
checking for EVP_CipherFinal_ex()... yes
checking for EVP_CipherInit_ex()... yes
checking for EVP_DigestFinal_ex()... yes
checking for EVP_DigestInit_ex()... yes
checking for EVP_MD_CTX_cleanup()... yes
checking for EVP_MD_CTX_create()... yes
checking for EVP_MD_CTX_destroy()... yes
checking for EVP_MD_CTX_init()... yes
checking for HMAC_CTX_cleanup()... yes
checking for HMAC_CTX_copy()... no
checking for HMAC_CTX_init()... yes
checking for PEM_def_callback()... yes
checking for X509V3_set_nconf()... yes
checking for X509V3_EXT_nconf_nid()... yes
checking for X509_CRL_add0_revoked()... yes
checking for X509_CRL_set_issuer_name()... yes
checking for X509_CRL_set_version()... yes
checking for X509_CRL_sort()... yes
checking for X509_STORE_get_ex_data()... no
checking for X509_STORE_set_ex_data()... no
checking for OBJ_NAME_do_all_sorted()... yes
checking for OPENSSL_cleanse()... yes
checking for openssl/engine.h... yes
checking for ENGINE_add()... yes
checking for ENGINE_load_builtin_engines()... yes
checking for ENGINE_load_openbsd_dev_crypto()... no
checking for ENGINE_get_digest()... yes
checking for ENGINE_get_cipher()... yes
checking for ENGINE_cleanup()... yes
checking for openssl/ocsp.h... yes
checking for EVP_CIPHER_CTX.flags in openssl/evp.h... yes
checking for EVP_CIPHER_CTX.engine in openssl/evp.h... yes
checking for X509_ATTRIBUTE.single in openssl/x509.h... yes
=== Checking done. ===
creating extconf.h
creating Makefile
Done.
$ make
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509name.c
ossl_x509name.c: In function 'ossl_x509name_initialize':
ossl_x509name.c:134: warning: pointer targets in assignment differ in signedness
ossl_x509name.c:135: warning: passing argument 2 of 'd2i_X509_NAME' from incompatible pointer type
ossl_x509name.c: In function 'ossl_x509name_add_entry':
ossl_x509name.c:156: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness
ossl_x509name.c: In function 'ossl_x509name_to_a':
ossl_x509name.c:228: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
ossl_x509name.c: In function 'ossl_x509name_to_der':
ossl_x509name.c:294: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkey_dsa.c
ossl_pkey_dsa.c: In function 'ossl_dsa_initialize':
ossl_pkey_dsa.c:141: warning: passing argument 1 of 'PEM_ASN1_read_bio' from incompatible pointer type
ossl_pkey_dsa.c:141: warning: passing argument 4 of 'PEM_ASN1_read_bio' from incompatible pointer type
ossl_pkey_dsa.c: In function 'ossl_dsa_to_der':
ossl_pkey_dsa.c:244: warning: pointer targets in assignment differ in signedness
ossl_pkey_dsa.c: In function 'ossl_dsa_to_public_key':
ossl_pkey_dsa.c:313: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_pkey_dsa.c: In function 'ossl_dsa_sign':
ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 2 of 'DSA_sign' differ in signedness
ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 4 of 'DSA_sign' differ in signedness
ossl_pkey_dsa.c:338: warning: pointer targets in passing argument 5 of 'DSA_sign' differ in signedness
ossl_pkey_dsa.c: In function 'ossl_dsa_verify':
ossl_pkey_dsa.c:358: warning: pointer targets in passing argument 2 of 'DSA_verify' differ in signedness
ossl_pkey_dsa.c:358: warning: pointer targets in passing argument 4 of 'DSA_verify' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkey_rsa.c
ossl_pkey_rsa.c: In function 'ossl_rsa_to_der':
ossl_pkey_rsa.c:239: warning: pointer targets in assignment differ in signedness
ossl_pkey_rsa.c: In function 'ossl_rsa_public_encrypt':
ossl_pkey_rsa.c:263: warning: pointer targets in passing argument 2 of 'RSA_public_encrypt' differ in signedness
ossl_pkey_rsa.c:263: warning: pointer targets in passing argument 3 of 'RSA_public_encrypt' differ in signedness
ossl_pkey_rsa.c: In function 'ossl_rsa_public_decrypt':
ossl_pkey_rsa.c:285: warning: pointer targets in passing argument 2 of 'RSA_public_decrypt' differ in signedness
ossl_pkey_rsa.c:285: warning: pointer targets in passing argument 3 of 'RSA_public_decrypt' differ in signedness
ossl_pkey_rsa.c: In function 'ossl_rsa_private_encrypt':
ossl_pkey_rsa.c:310: warning: pointer targets in passing argument 2 of 'RSA_private_encrypt' differ in signedness
ossl_pkey_rsa.c:310: warning: pointer targets in passing argument 3 of 'RSA_private_encrypt' differ in signedness
ossl_pkey_rsa.c: In function 'ossl_rsa_private_decrypt':
ossl_pkey_rsa.c:335: warning: pointer targets in passing argument 2 of 'RSA_private_decrypt' differ in signedness
ossl_pkey_rsa.c:335: warning: pointer targets in passing argument 3 of 'RSA_private_decrypt' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509store.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509revoked.c
ossl_x509revoked.c: In function 'ossl_x509revoked_new':
ossl_x509revoked.c:48: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_x509revoked.c: In function 'DupX509RevokedPtr':
ossl_x509revoked.c:64: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_engine.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkey_dh.c
ossl_pkey_dh.c: In function 'ossl_dh_to_der':
ossl_pkey_dh.c:216: warning: pointer targets in assignment differ in signedness
ossl_pkey_dh.c: In function 'ossl_dh_compute_key':
ossl_pkey_dh.c:338: warning: pointer targets in passing argument 1 of 'DH_compute_key' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_config.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkcs7.c
ossl_pkcs7.c: In function 'ossl_pkcs7si_new':
ossl_pkcs7.c:90: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_pkcs7.c: In function 'DupPKCS7SignerPtr':
ossl_pkcs7.c:103: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_pkcs7.c: In function 'ossl_pkcs7ri_new':
ossl_pkcs7.c:116: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_pkcs7.c: In function 'DupPKCS7RecipientPtr':
ossl_pkcs7.c:129: warning: passing argument 2 of 'ASN1_dup' from incompatible pointer type
ossl_pkcs7.c: In function 'ossl_pkcs7_to_der':
ossl_pkcs7.c:754: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_bn.c
ossl_bn.c: In function 'ossl_bn_initialize':
ossl_bn.c:127: warning: pointer targets in passing argument 1 of 'BN_mpi2bn' differ in signedness
ossl_bn.c:132: warning: pointer targets in passing argument 1 of 'BN_bin2bn' differ in signedness
ossl_bn.c: In function 'ossl_bn_to_s':
ossl_bn.c:168: warning: pointer targets in passing argument 2 of 'BN_bn2mpi' differ in signedness
ossl_bn.c:174: warning: pointer targets in passing argument 2 of 'BN_bn2bin' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c openssl_missing.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkcs12.c
ossl_pkcs12.c: In function 'ossl_pkcs12_to_der':
ossl_pkcs12.c:132: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_cipher.c
ossl_cipher.c: In function 'ossl_cipher_init':
ossl_cipher.c:185: warning: pointer targets in passing argument 4 of 'EVP_BytesToKey' differ in signedness
ossl_cipher.c: In function 'ossl_cipher_pkcs5_keyivgen':
ossl_cipher.c:226: warning: pointer targets in assignment differ in signedness
ossl_cipher.c:232: warning: pointer targets in passing argument 4 of 'EVP_BytesToKey' differ in signedness
ossl_cipher.c: In function 'ossl_cipher_update':
ossl_cipher.c:255: warning: pointer targets in passing argument 2 of 'EVP_CipherUpdate' differ in signedness
ossl_cipher.c:255: warning: pointer targets in passing argument 4 of 'EVP_CipherUpdate' differ in signedness
ossl_cipher.c: In function 'ossl_cipher_final':
ossl_cipher.c:283: warning: pointer targets in passing argument 2 of 'EVP_CipherFinal_ex' differ in signedness
ossl_cipher.c: In function 'ossl_cipher_set_key':
ossl_cipher.c:313: warning: pointer targets in passing argument 4 of 'EVP_CipherInit_ex' differ in signedness
ossl_cipher.c: In function 'ossl_cipher_set_iv':
ossl_cipher.c:330: warning: pointer targets in passing argument 5 of 'EVP_CipherInit_ex' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_asn1.c
ossl_asn1.c: In function 'asn1time_to_time':
ossl_asn1.c:37: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness
ossl_asn1.c:48: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness
ossl_asn1.c: In function 'asn1str_to_str':
ossl_asn1.c:83: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
ossl_asn1.c: In function 'obj_to_asn1bstr':
ossl_asn1.c:217: warning: pointer targets in passing argument 2 of 'ASN1_BIT_STRING_set' differ in signedness
ossl_asn1.c: In function 'decode_bool':
ossl_asn1.c:313: warning: passing argument 2 of 'd2i_ASN1_BOOLEAN' from incompatible pointer type
ossl_asn1.c: In function 'decode_int':
ossl_asn1.c:328: warning: passing argument 2 of 'd2i_ASN1_INTEGER' from incompatible pointer type
ossl_asn1.c: In function 'decode_bstr':
ossl_asn1.c:347: warning: passing argument 2 of 'd2i_ASN1_BIT_STRING' from incompatible pointer type
ossl_asn1.c:359: warning: pointer targets in passing argument 1 of 'ossl_buf2str' differ in signedness
ossl_asn1.c: In function 'decode_enum':
ossl_asn1.c:373: warning: passing argument 2 of 'd2i_ASN1_ENUMERATED' from incompatible pointer type
ossl_asn1.c: In function 'decode_null':
ossl_asn1.c:390: warning: passing argument 2 of 'd2i_ASN1_NULL' from incompatible pointer type
ossl_asn1.c: In function 'decode_obj':
ossl_asn1.c:407: warning: passing argument 2 of 'd2i_ASN1_OBJECT' from incompatible pointer type
ossl_asn1.c: In function 'decode_time':
ossl_asn1.c:435: warning: passing argument 2 of 'd2i_ASN1_TIME' from incompatible pointer type
ossl_asn1.c: In function 'ossl_asn1data_to_der':
ossl_asn1.c:705: warning: pointer targets in assignment differ in signedness
ossl_asn1.c: In function 'ossl_asn1_decode0':
ossl_asn1.c:727: warning: passing argument 1 of 'ASN1_get_object' from incompatible pointer type
ossl_asn1.c:762: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
ossl_asn1.c: In function 'ossl_asn1_traverse':
ossl_asn1.c:827: warning: pointer targets in assignment differ in signedness
ossl_asn1.c: In function 'ossl_asn1_decode':
ossl_asn1.c:843: warning: pointer targets in assignment differ in signedness
ossl_asn1.c: In function 'ossl_asn1_decode_all':
ossl_asn1.c:860: warning: pointer targets in assignment differ in signedness
ossl_asn1.c: In function 'ossl_asn1prim_to_der':
ossl_asn1.c:957: warning: pointer targets in passing argument 1 of 'ossl_buf2str' differ in signedness
ossl_asn1.c: In function 'ossl_asn1cons_to_der':
ossl_asn1.c:979: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_bio.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_ssl.c
ossl_ssl.c: In function 'ossl_sslctx_setup':
ossl_ssl.c:401: warning: pointer targets in passing argument 2 of 'SSL_CTX_set_session_id_context' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_hmac.c
ossl_hmac.c: In function 'ossl_hmac_update':
ossl_hmac.c:97: warning: pointer targets in passing argument 2 of 'HMAC_Update' differ in signedness
ossl_hmac.c: In function 'hmac_final':
ossl_hmac.c:115: warning: pointer targets in passing argument 2 of 'HMAC_Final' differ in signedness
ossl_hmac.c:115: warning: pointer targets in passing argument 3 of 'HMAC_Final' differ in signedness
ossl_hmac.c: In function 'ossl_hmac_s_digest':
ossl_hmac.c:163: warning: pointer targets in passing argument 4 of 'HMAC' differ in signedness
ossl_hmac.c:163: warning: pointer targets in passing argument 7 of 'HMAC' differ in signedness
ossl_hmac.c:163: warning: pointer targets in assignment differ in signedness
ossl_hmac.c: In function 'ossl_hmac_s_hexdigest':
ossl_hmac.c:179: warning: pointer targets in passing argument 4 of 'HMAC' differ in signedness
ossl_hmac.c:179: warning: pointer targets in passing argument 7 of 'HMAC' differ in signedness
ossl_hmac.c:179: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509crl.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509ext.c
ossl_x509ext.c: In function 'ossl_x509ext_initialize':
ossl_x509ext.c:283: warning: pointer targets in assignment differ in signedness
ossl_x509ext.c:285: warning: passing argument 2 of 'd2i_X509_EXTENSION' from incompatible pointer type
ossl_x509ext.c: In function 'ossl_x509ext_to_der':
ossl_x509ext.c:412: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509req.c
ossl_x509req.c: In function 'ossl_x509req_to_der':
ossl_x509req.c:174: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_ocsp.c
ossl_ocsp.c: In function 'ossl_ocspreq_initialize':
ossl_ocsp.c:114: warning: passing argument 2 of 'd2i_OCSP_REQUEST' from incompatible pointer type
ossl_ocsp.c: In function 'ossl_ocspreq_add_nonce':
ossl_ocsp.c:137: warning: pointer targets in passing argument 2 of 'OCSP_request_add1_nonce' differ in signedness
ossl_ocsp.c: In function 'ossl_ocspreq_to_der':
ossl_ocsp.c:268: warning: pointer targets in assignment differ in signedness
ossl_ocsp.c: In function 'ossl_ocspres_initialize':
ossl_ocsp.c:319: warning: pointer targets in assignment differ in signedness
ossl_ocsp.c:321: warning: passing argument 2 of 'd2i_OCSP_RESPONSE' from incompatible pointer type
ossl_ocsp.c: In function 'ossl_ocspres_to_der':
ossl_ocsp.c:380: warning: pointer targets in assignment differ in signedness
ossl_ocsp.c: In function 'ossl_ocspbres_add_nonce':
ossl_ocsp.c:439: warning: pointer targets in passing argument 2 of 'OCSP_basic_add1_nonce' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_pkey.c
ossl_pkey.c: In function 'ossl_pkey_sign':
ossl_pkey.c:174: warning: pointer targets in passing argument 2 of 'EVP_SignFinal' differ in signedness
ossl_pkey.c:174: warning: pointer targets in passing argument 3 of 'EVP_SignFinal' differ in signedness
ossl_pkey.c: In function 'ossl_pkey_verify':
ossl_pkey.c:194: warning: pointer targets in passing argument 2 of 'EVP_VerifyFinal' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_rand.c
ossl_rand.c: In function 'ossl_rand_bytes':
ossl_rand.c:66: warning: pointer targets in passing argument 1 of 'RAND_bytes' differ in signedness
ossl_rand.c: In function 'ossl_rand_pseudo_bytes':
ossl_rand.c:79: warning: pointer targets in passing argument 1 of 'RAND_pseudo_bytes' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509.c
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509attr.c
ossl_x509attr.c: In function 'ossl_x509attr_initialize':
ossl_x509attr.c:98: warning: pointer targets in assignment differ in signedness
ossl_x509attr.c:100: warning: passing argument 2 of 'd2i_X509_ATTRIBUTE' from incompatible pointer type
ossl_x509attr.c: In function 'ossl_x509attr_get_value':
ossl_x509attr.c:195: warning: pointer targets in assignment differ in signedness
ossl_x509attr.c:203: warning: pointer targets in assignment differ in signedness
ossl_x509attr.c: In function 'ossl_x509attr_to_der':
ossl_x509attr.c:225: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_x509cert.c
ossl_x509cert.c: In function 'ossl_x509_to_der':
ossl_x509cert.c:184: warning: pointer targets in assignment differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_digest.c
ossl_digest.c: In function 'digest_final':
ossl_digest.c:156: warning: pointer targets in passing argument 2 of 'EVP_DigestFinal_ex' differ in signedness
ossl_digest.c:156: warning: pointer targets in passing argument 3 of 'EVP_DigestFinal_ex' differ in signedness
        gcc -I. -I. -I/dbra/app/lib/ruby/lib/ruby/1.8/powerpc-aix5.3.0.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -I/dbra/app/lib/openssl/include  -g -O2  -c ossl_ns_spki.c
ossl_ns_spki.c: In function 'ossl_spki_initialize':
ossl_ns_spki.c:66: warning: pointer targets in assignment differ in signedness
ossl_ns_spki.c:67: warning: passing argument 2 of 'd2i_NETSCAPE_SPKI' from incompatible pointer type
ossl_ns_spki.c: In function 'ossl_spki_to_der':
ossl_ns_spki.c:90: warning: pointer targets in assignment differ in signedness
ossl_ns_spki.c: In function 'ossl_spki_get_challenge':
ossl_ns_spki.c:176: warning: pointer targets in passing argument 1 of 'rb_str_new' differ in signedness
        gcc -shared -o openssl.so ossl_x509name.o ossl_pkey_dsa.o ossl_pkey_rsa.o ossl_x509store.o ossl_x509revoked.o ossl_engine.o ossl_pkey_dh.o ossl_config.o ossl_pkcs7.o ossl_bn.o openssl_missing.o ossl_pkcs12.o ossl_cipher.o ossl_asn1.o ossl_bio.o ossl_ssl.o ossl.o ossl_hmac.o ossl_x509crl.o ossl_x509ext.o ossl_x509req.o ossl_ocsp.o ossl_pkey.o ossl_rand.o ossl_x509.o ossl_x509attr.o ossl_x509cert.o ossl_digest.o ossl_ns_spki.o -L"." -L"/dbra/app/lib/ruby/lib" -L"/dbra/app/lib/openssl/lib" -L.  -Wl,-brtl -Wl,-G -eInit_openssl   -lssl -lcrypto  -ldl -lcrypt -lm   -lc
Target "all" is up to date.
$ su       
root's Password:
# pwd   
/dbra/app/softs/ruby/ruby-1.8.6-p114/ext/openssl
# make install
install -c -p -m 0755 openssl.so /dbra/app/lib/ruby/lib/ruby/site_ruby/1.8/powerpc-aix5.3.0.0
Target "install" is up to date.
# irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> exit


以上信息仅作记录!
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics