From: Dave Walton Date: 2010-03-18T05:27:33+09:00 Subject: Re: compile ruby 1.9.1 with openssl I wrote: > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > /usr/local/lib/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 > against symbol `OPENSSL_cpuid_setup' can not be used when making a > shared object; recompile with -fPIC > /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: > final link failed: Bad value > collect2: ld returned 1 exit status > make: *** [openssl.so] Error 1 > > Has anyone else seen this problem? Any suggestion as to how to proceed? > > Thanks, > > Dave I rebuilt openssl with the following configure, and it fixed my problem: ./config --prefix=/usr/local --openssldir=/usr/local/openssl shared Dave -- Posted via http://www.ruby-forum.com/.