cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl 7.29.0 build problems on Solaris 10 SPARC with Sun Studio 12.3

From: William D. Pool <william_at_thesl.com>
Date: Mon, 1 Apr 2013 22:22:41 -0700

Howdy Daniel,

Well, I'm pretty sure it's only finding one OpenSSL install to link against. The configure looks proper and the config.log too.
  curl version: 7.29.0
  Host setup: sparc-sun-solaris2.10
  Install prefix: /opt/thesl
  Compiler: cc
  SSL support: enabled (OpenSSL)
  SSH support: no (--with-libssh2)
  zlib support: enabled
  krb4 support: no (--with-krb4*)
  GSSAPI support: no (--with-gssapi)
  SPNEGO support: no (--with-spnego)
  TLS-SRP support: enabled
  resolver: default (--enable-ares / --enable-threaded-resolver)
  ipv6 support: enabled
  IDN support: no (--with-{libidn,winidn})
  Build libcurl: Shared=yes, Static=yes
  Built-in manual: enabled
  --libcurl option: enabled (--disable-libcurl-option)
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)
  ca cert bundle: no
  ca cert path: no
  LDAP support: enabled (OpenLDAP)
  LDAPS support: enabled
  RTSP support: enabled
  RTMP support: no (--with-librtmp)
  metalink support: no (--with-libmetalink)
  Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTSP SMTP SMTPS TELNET TFTP

The config.log looks okay

configure:21383: PKG_CONFIG_LIBDIR will be set to "/opt/thesl/lib/pkgconfig"
configure:21451: checking for pkg-config
configure:21485: result: no
configure:21595: checking for CRYPTO_lock in -lcrypto
configure:21617: cc -o conftest -m32 -xstrconst -xdepend -Xa -xcode=pic32 -s -xO2 -I/opt/thesl/include -I/opt/thesl/include/openssl -I/opt/thesl/include -I/op
t/thesl/include/openssl -L/opt/thesl/lib -R/opt/thesl/lib -L/opt/thesl/lib conftest.c -lcrypto -lldap -lz -lrt -lsocket -lnsl >&5
"conftest.c", line 67: warning: statement not reached
configure:21617: $? = 0
configure:21626: result: yes
configure:21689: checking for SSL_connect in -lssl
configure:21711: cc -o conftest -m32 -xstrconst -xdepend -Xa -xcode=pic32 -s -xO2 -I/opt/thesl/include -I/opt/thesl/include/openssl -I/opt/thesl/include -I/op
t/thesl/include/openssl -L/opt/thesl/lib -R/opt/thesl/lib -L/opt/thesl/lib conftest.c -lssl -lcrypto -lldap -lz -lrt -lsocket -lnsl >&5
"conftest.c", line 67: warning: statement not reached

Any other suggestions/advice?

Thanks!
----------------------------------
William D. Pool
The Secret Language LLC.

On Apr 1, 2013, at 1:02 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sun, 31 Mar 2013, William D. Pool wrote:
>
>> ld: fatal: library -lssl: not found
>> ld: fatal: library -lcrypto: not found
>
> Those are the two OpenSSL libs that were obviously found during configure (as otherwise the OpenSSL build wouldn't have been enabled) but can't be found during the "real" link for some reason! If you check your config.log for the openssl checks it might give you some clues. Does the final link command line include the correct lib paths to link with the OpenSSL libs?
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-02