Quechua 2011-10-11
su-dbra
suroot
cd /dbra/app/softs/ruby-1.8.6-p114/ext/openssl
rm-rf*.o,openssl.so,Makefile
rubyextconf.rb--with-openssl-dir=/dbra/app/lib/openssl
make
makeinstall
ossl_asn1.c:727:警告:传递参数1(属于‘ASN1_get_object’)时在不兼容的指针类型间转换
gcc-I.-I.-I/dbra/app/lib/ruby/lib/ruby/1.8/x86_64-linux-I.-DRUBY_EXTCONF_H=\"extconf.h\"-I/dbra/app/lib/openssl/include-fPIC-g-O2-cossl_x509cert.c
gcc-I.-I.-I/dbra/app/lib/ruby/lib/ruby/1.8/x86_64-linux-I.-DRUBY_EXTCONF_H=\"extconf.h\"-I/dbra/app/lib/openssl/include-fPIC-g-O2-cossl_x509req.c
gcc-I.-I.-I/dbra/app/lib/ruby/lib/ruby/1.8/x86_64-linux-I.-DRUBY_EXTCONF_H=\"extconf.h\"-I/dbra/app/lib/openssl/include-fPIC-g-O2-cossl_pkey_rsa.c
gcc-I.-I.-I/dbra/app/lib/ruby/lib/ruby/1.8/x86_64-linux-I.-DRUBY_EXTCONF_H=\"extconf.h\"-I/dbra/app/lib/openssl/include-fPIC-g-O2-cossl_pkey_dsa.c
ossl_pkey_dsa.c:Infunction‘ossl_dsa_initialize’:
ossl_pkey_dsa.c:141:警告:传递参数1(属于‘PEM_ASN1_read_bio’)时在不兼容的指针类型间转换
ossl_pkey_dsa.c:141:警告:传递参数4(属于‘PEM_ASN1_read_bio’)时在不兼容的指针类型间转换
ossl_pkey_dsa.c:Infunction‘ossl_dsa_to_public_key’:
ossl_pkey_dsa.c:313:警告:传递参数2(属于‘ASN1_dup’)时在不兼容的指针类型间转换
gcc-I.-I.-I/dbra/app/lib/ruby/lib/ruby/1.8/x86_64-linux-I.-DRUBY_EXTCONF_H=\"extconf.h\"-I/dbra/app/lib/openssl/include-fPIC-g-O2-cossl_hmac.c
gcc-shared-oopenssl.soossl_engine.oossl_bio.oossl_config.oossl_x509revoked.oossl_bn.oossl_cipher.oossl_x509.oossl_pkcs7.oossl_x509ext.oossl_rand.oossl.oossl_pkey_dh.oopenssl_missing.oossl_ssl.oossl_x509attr.oossl_x509name.oossl_digest.oossl_x509store.oossl_pkcs12.oossl_ns_spki.oossl_x509crl.oossl_ocsp.oossl_pkey.oossl_asn1.oossl_x509cert.oossl_x509req.oossl_pkey_rsa.oossl_pkey_dsa.oossl_hmac.o-L'.'-L'/dbra/app/lib/ruby/lib'-Wl,-R'/dbra/app/lib/ruby/lib'-L'/dbra/app/lib/openssl/lib'-Wl,-R'/dbra/app/lib/openssl/lib'-L.-rdynamic-Wl,-export-dynamic-lssl-lcrypto-ldl-lcrypt-lm-lc
/usr/bin/ld:/dbra/app/lib/openssl/lib/libssl.a(s2_meth.o):relocationR_X86_64_32against`alocalsymbol'cannotbeusedwhenmakingasharedobject;recompilewith-fPIC
/dbra/app/lib/openssl/lib/libssl.a:couldnotreadsymbols:Badvalue
collect2:ld返回1
make:***[openssl.so]错误1
解决办法:重新编译openssl
引用
./config-fPIC--prefix=/dbra/app/lib/opensslenable-shared
如果还不行就
makeclean
./config-fPIC--prefix=/usrenable-shared
安装在/usr目录下就省去了链接。
perl Configure VC-WIN64A --prefix=C:\openssl_x64 no-asm no-shared enable-tlsext enable-static-engine