`
itspace
  • 浏览: 978497 次
  • 性别: 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
分享到:
评论

相关推荐

    delphi7调用openssl修正版

    本主题聚焦于一个这样的案例:如何在Delphi 7环境中有效地调用OpenSSL库,特别是针对RSA加密算法的修正版。Delphi 7是一款经典的Object Pascal集成开发环境,而OpenSSL则是一个强大的开源密码学库,包含了各种安全...

    java调用openssl生成证书

    在这个过程中,我们通常会使用OpenSSL命令行工具,然后通过Java程序来调用这些系统命令。下面将详细讲解这个过程以及涉及的相关知识点。 首先,OpenSSL是一个强大的安全套接层(SSL)和传输层安全(TLS)协议实现...

    c语言可调用 openssl

    本文将详细讨论如何在C语言项目中集成和调用OpenSSL库,以及它所提供的核心功能。 OpenSSL是一个强大的安全套接层(SSL)和传输层安全(TLS)协议实现,同时包括了各种密码算法、常用的密钥和证书封装管理功能,...

    直接调用OpenSSL.rar

    在"直接调用OpenSSL.rar"这个压缩包中,我们有libeay32.dll和一个名为"直接调用OpenSSL.e"的执行文件,以及"openssl编程帮助文档.pdf",这将为开发者提供关于如何直接使用OpenSSL进行编程的指导。 1. **OpenSSL库**...

    aix5.3下openssl,openssh安装包---找了很久,已验证

    在AIX 5.3操作系统环境下,安装和配置OpenSSL和OpenSSH是系统管理员常见的任务,这涉及到网络安全、远程访问以及服务器之间的加密通信。OpenSSL是一个强大的安全套接层(SSL)和传输层安全(TLS)协议实现,而...

    【跳坑日记】Ubuntu 16.04安装 Ruby2.7.0遇到的坑:cannot load such file — openssl (LoadError)

    在本文中,我们将探讨在Ubuntu 16.04系统上安装Ruby 2.7.0时遇到的一个常见问题:`cannot load such file — openssl (LoadError)`。这是一个与Ruby和OpenSSL库集成有关的问题,通常发生在试图安装或运行依赖于...

    openssl 1.1.2.1200 for AIX 5, AIX 6, AIX 7 安装包

    适用于 AIX 5.3、6.1、7.1 和 7.2 的 OpenSSL 1.1.2.1200 openssl-1.1.2.1200

    openSUSE下的Ruby安装openssl出错解决方法

    `no such file to load — openssl (LoadError)` 原因很简单就是 ruby 的 openssl 支持模块没有安装,在 openSUSE 下面安装: 代码如下: sudo zypper in libopenssl-devel 然后编译 openssl 模块,

    Openssh_8.1p1,openssl-1.0.2 for AIX 5 6 7 安装包

    这是适用于 AIX 5.3、6.1、7.1 和 7.2 的Openssh_8.1p1 ,其中包含OpenSSL 1.0.2.2102版本和Openssh_8.1p1。加压后使用smit installp安装即可 解决了在Openssh_8.1版本之前报告的所有漏洞。 openssh_8.1p1,openssl-...

    AIX5.3安装openSSL、openSSH

    在IBM AIX 5.3操作系统中,安装和配置OpenSSL和OpenSSH是提升系统安全性的重要步骤。这两个软件包主要用于加密通信和远程访问,OpenSSL提供了安全套接字层(SSL)和传输层安全(TLS)协议的实现,而OpenSSH则是一个用于...

    AIX openssl

    AIX系统安装ssh服务时所需的包:openssl

    aix openssl-1.0.1.511.tar.gz

    aix6.1 openssl 升级包 openssl-1.0.1.511.tar.tgz

    openSSL 0.9.8 and openSSH 6.0 for AIX 5 AIX 6 AIX 7

    AIX上最新的openSSL和openSSH 安装方法 1.通过FTP(传送模式要选择二进制方式)上传安装包 2.解压缩安装包 uncompress OpenSSH_6.0.0.6102.tar.Z tar -xvf OpenSSH_6.0.0.6102.tar uncompress openssl-0.9.8.2500....

    OpenSSL 0.9.8 for AIX 5.3 , 6.1 & 7.1

    OpenSSL 0.9.8y for AIX 5.3, 6.1 & 7.1 VRMF: 0.9.8.2507 openssl-0.9.8.2507.tar.Z (17728780 B) .9.8 OpenSSL version is End of Support from Jan 2016

    Java如何基于command调用openssl生成私钥证书

    Java基于command调用openssl生成私钥证书 Java是一种广泛使用的编程语言,而openssl是一种加密工具。今天,我们将介绍如何使用Java基于command调用openssl生成私钥证书。 什么是私钥证书? 私钥证书是一种数字...

    openssl 使用方法步骤详解(调用过程分析)

    OpenSSL提供了一套错误处理机制,可以通过`SSL_load_error_strings`加载错误字符串,以便在遇到问题时能够输出详细的错误信息。当发生错误时,可以通过`ERR_get_error`获取错误代码,然后使用`ERR_error_string`将...

    openssl-0.9.7g-1.aix5.1.ppc.rpm

    在AIX 5.3上安装 与openssh4.1测试安装成功 光盘版本直接安装

    openssl aix patch

    openssl aix patch

    openssl生成证书

    【openssl生成证书】知识点详解 在IT领域,OpenSSL是一个强大的安全套接字层密码库,包含各种主要的密码算法、常用的密钥和证书封装管理功能以及SSL协议,并提供丰富的应用程序用于测试或其他目的。生成证书是网络...

    OpenSSL for AIX 5、6、7

    用于在AIX 5 6 7 小型机上安装SSH所依赖的基础类。。。

Global site tag (gtag.js) - Google Analytics