Thanks. I did that and it worked fine.

Sent from my iPhone

> On Apr 17, 2014, at 8:06 PM, Michael Wojcik <michael.woj...@microfocus.com> 
> wrote:
> 
> [Apologies for the top-post. Outlook does not properly handle bottom-posting 
> when replying to HTML email, and doesn't properly convert HTML email to plain 
> text, either. A pox on HTML email and Outlook and MIME and all their ilk.]
>  
> You've built OpenSSL as a static library, and now you're trying to link it 
> into a shared object. The ELF object file format requires that all code 
> linked into a shared object be position-independent. Static libraries (i.e., 
> ar archives of object files) can contain objects that are compiled as 
> position-independent, but they can also contain objects that are not.
>  
> In this case, you have an OpenSSL build that is not position-independent 
> code. You need to reconfigure to force the generation of position-independent 
> code  (via the -fPIC flag, as the error message says) and rebuild OpenSSL.
>  
> If memory serves, just adding the "shared" token to your Configure command 
> line should suffice, since I think in that mode the OpenSSL makefiles compile 
> with -fPIC (on platforms where that's appropriate) and then create both 
> shared objects and static libraries.
>  
> If that doesn't work, you could just edit Configure, find the target you're 
> using, and add -fPIC to its compiler options list.
>  
> Michael Wojcik
> Technology Specialist
> Micro Focus
>  
> michael.woj...@microfocus.com
> 519 West Ash Street
> Mason, MI 48854-1553
> Direct:    +1 517 639 0892
> Mobile : +1 517 862 9464
>  
>  
>  
>  
> From: owner-openssl-us...@openssl.org 
> [mailto:owner-openssl-us...@openssl.org] On Behalf Of James Butler
> Sent: Thursday, 17 April, 2014 09:51
> To: openssl-users@openssl.org
> Subject: Getting error for libcrypto.a file in openssl-1.0.1g when making php
>  
> I am getting this error from an openssl-1.0.1g file when trying to make 
> php-5.4.23
>  
> /usr/bin/ld: /opt/openssl-1.0.1g/lib/libcrypto.a(cversion.o): relocation 
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared 
> object; recompile with -fPIC
> /opt/openssl-1.0.1g/lib/libcrypto.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [libphp5.la] Error 1
>  
> Can anyone tell me why this is happening? I was able to build php with 
> openssl-1.0.1f so why is this error coming up with 1.0.1g?
> 
> 
> This message has been scanned for malware by Websense. www.websense.com

Reply via email to