On Mon, Apr 21, 2014 at 04:46:38PM +0000, Alona Rossen wrote:
> I receive the following error when I try to link to static 
> libssl.a/libcrypto.a
> on Solaris 10/11 on Intel:
> 
> Text relocation remains                         referenced
> 
>     against symbol                  offset      in file
> 
> OPENSSL_ia32cap_P                   0xff0       /export/home/sambuild/INSTALL/
> openssl-1.0.0d_static/lib/libcrypto.a(aes-x86_64.o)
> 
> OPENSSL_ia32cap_P                   0x46c       /export/home/sambuild/INSTALL/
> openssl-1.0.0d_static/lib/libcrypto.a(rc4-x86_64.o)
> 
> OPENSSL_ia32cap_P                   0x529       /export/home/sambuild/INSTALL/
> openssl-1.0.0d_static/lib/libcrypto.a(rc4-x86_64.o)
> 
> OPENSSL_cpuid_setup                 0x1         /export/home/sambuild/INSTALL/
> openssl-1.0.0d_static/lib/libcrypto.a(x86_64cpuid.o)
> 
> ld: fatal: relocations remain against allocatable but non-writable sections
> 
> collect2: ld returned 1 exit status
> 
> *** Error code 1
> 
> make: Fatal error: Command failed for target `libcurl.la'
> 
> Current working directory /export/home/sambuild/C_Tools/curl-7.36.0/lib
> 
> *** Error code 1
> 
> $ ./configure CFLAGS=-m64 -fPIC LDFLAGS=-fPIC -m64 --with-ssl=/export/home/
> sambuild/INSTALL/openssl-1.0.0d_static
> --prefix=/home/sambuild/INSTALL/curl72_64_static

If you're not using pkg-config to determine the necessary dependencies of
OpenSSL, and this line shows you're not, there's no way for libcurl to know
what they are. You'll have to figure them out and add them manually to the
LIBS variable, or switch to pkg-config (see INSTALL).

>>> Dan

> 
>  
> 
> $> gcc --version
> 
> gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
> 
> Copyright (C) 2004 Free Software Foundation, Inc.
> 
> This is free software; see the source for copying conditions.  There is NO
> 
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
>  
> 
> $> ld -V
> 
> ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.497
> 
>  
> 
>  
> 
>  
> 
> Please advise.
> 
>  
> 
>  
> 
> Thank you,
> 
> Alona
> 
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to