cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: <Alexander.Elgert_at_external.t-systems.com>
Date: Mon, 8 Apr 2013 17:48:46 +0200

Suggestions:

1. The order of the -l statements is significant, please move the two "-lssl -lcrypto" to the end of the command line, sometimes even a changed include rule forces me to do that on some platforms.
2. Please make sure, the .so files exists and are in 32-bit format
3. Please use the SAME compiler for openssl and curl -> if you do not know the compilier, goto suggestion 4.
4. Please compile openssl for your own, I am just using --with-ssl=... and nothing else. If you need a 32 bit Version, you have to run Configure with "./Configure solaris-sparcv9-cc"

Sorry for tofu.

Greetings,
Alexander

--
Deutsche Telekom AG
Seamless ICT Security Infrastructure & Management
im Auftrag T-Systems International GmbH
Dipl. Inf Alexander Elgert
Langwadener Strasse 17
64625 Bensheim
+49 176 22 717 661 (Mobil)
+49 671 83419-12 (Tel)
+49 671 83419-30 (Fax)
E-Mail: alexander.elgert_at_gmx.de
________________________________________
Von: curl-users [curl-users-bounces_at_cool.haxx.se] im Auftrag von William D. Pool [william_at_thesl.com]
Gesendet: Dienstag, 2. April 2013 07:22
An: the curl tool
Betreff: Re: Curl 7.29.0 build problems on Solaris 10 SPARC with Sun Studio 12.3
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
-------------------------------------------------------------------
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-08