5

I am trying to install Subversion with Apache support. I installed apr, apr-utils, neon, and OpenSSL with the --enable-shared flag. However, I get the following error when trying to install subversion:

/usr/bin/ld: /usr0/software/openssl/ossl/lib/libssl.a(s23_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr0/software/openssl/ossl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libserf-0.la] Error 1
make[1]: Leaving directory `/usr0/sources/svn/subversion-1.6.3/serf'
make: *** [external-all] Error 1

On the Subversion FAQ it is stated that if I get this error, I should use the --enable-shared flag and it should work. However, that doesn't help. Any ideas on how to get around this?

Jonathan Callen
  • 11,301
  • 2
  • 23
  • 44
user10
  • 2,126
  • 5
  • 19
  • 26

3 Answers3

5

I figured out that the problem was with the openssl install. Reinstalling openssl with enable-shared worked.

user10
  • 2,126
  • 5
  • 19
  • 26
  • 1
    just ran into this, too /usr/bin/ld: /root/installs/lib/libssl.a(s23_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /root/installs/lib/libssl.a: could not read symbols: Bad value $ ./config shared this fixed it thanks! – rogerdpack Jan 11 '10 at 18:32
  • I also have the same problem, what do you mean by saing "Reinstalling openssl with enable-shared worked"? can you plaese explain? thanks! – RRR Apr 25 '13 at 08:16
  • @RRR, when configuring openssl ,run: `./config shared ` – g4ur4v Mar 02 '14 at 20:07
1

I solve it with adding hidden attribute to OPENSSL_ia32cap_P in crypto\cryptolib.h and recompile.

extern unsigned int OPENSSL_ia32cap_P[] __attribute__ ((visibility ("hidden")));
antoxar
  • 51
  • 5
0

I've run into this in a couple of other non-openssl scenarios, and I've found that this is generally related to not having shared libraries turned on.

Adding --enable-shared to your configure line seems to fix it.

shreddd
  • 10,975
  • 9
  • 33
  • 34