curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: cast away lost on Solaris 10 island

From: Dennis Clarke via curl-library <>
Date: Tue, 30 Jul 2019 18:31:24 -0400

Please do not top post and do not use HTML email.

See below.

* * * original message * * *
Subject: Re: cast away lost on Solaris 10 island
From: Dennis Clarke via curl-library <>
Date: 7/30/19, 2:35 PM
CC: Dennis Clarke <>

On 7/30/19 2:25 PM, Lincoln via curl-library wrote:
> Hi!

    * wave *

You need a subject line so I made one.

> I am trying to compile Curl 7.63.3 on Solaris 10 Sparc and I am getting
> those errors. Note I do not have root and so I have to compile and
> install in area that I have access. Can someone tell me why this issue
> happens on Solaris servers and is there a way to compile it correctly?

Sadly a lot of people are still out there on ye old Solaris 10 sparc
servers and likely will be for another decade.

OKay, given that I have knocked around Solaris a bit. Give a little
informations please :

    1) what OS revision really ? uname -a

    2) what compiler really ? cc -V or gcc --version

    3) what env vars really? env | sort

    4) anything else you can think of.

* * * reply * * *

> Here is the information you requested:
> 1, uname -a => SunOS petedev 5.10 Generic_150400-55 sun4u
> sparc SUNW, Netra-T12

This has a reasonable kernel revision but no where at all up to date.
I assume that you do not have an Oracle support contract.

Such is life if we want updates and patches.

I have here :

beta $
beta $ uname -a
SunOS beta 5.10 Generic_150400-65 sun4u sparc SUNW,SPARC-Enterprise
beta $

> 2. gcc --version => gcc (GCC) 3.4.6

This is the terrible old old crusty gcc that shipped with solaris 10 in
the old SunFreeware directory /usr/sfw and you should not use that any

Have you given consideration to installing the Oracle Studio 12.6
compiler tools which are ( today ) a free download? You will need some
up to data Java also no more than Java JDK/SDK and I have here :

beta $
beta $ ls -lap /usr/jdk/instances
total 20
drwxr-xr-x 5 root bin 5 Jan 28 2019 ./
drwxr-xr-x 4 root bin 9 Apr 26 21:20 ../
drwxr-xr-x 9 root bin 13 Oct 5 2017 jdk1.5.0/
drwxr-xr-x 9 root bin 14 Feb 12 20:34 jdk1.6.0/
drwxr-xr-x 9 root bin 14 Apr 26 21:19 jdk1.8.0/
beta $
beta $ /usr/jdk/instances/jdk1.8.0/bin/java -version
java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
beta $

I see you have 1.8.0_77 and that *may* work.

You must have that to install the Oracle Studio compiler tools. On the
other hand I could help you with a true 64-bit gcc that is at least up
to date :

beta $ /usr/local/gcc8/bin/gcc --version
gcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO

beta $
beta $ file /usr/local/gcc8/bin/gcc
/usr/local/gcc8/bin/gcc: ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped
beta $

You need a decent compiler to get curl going on old old Solaris 10 and
it needs to work inside that 64-bit SPARC environment.

Let me pick some stuff out of your environment :

    /opt/SUNWspro/prod/bin/ <-- do you have old Forte compiler ??

4. I was able to run the ./configure without any issue, but when I call
the make command it failed.

OKay are you using GNU make or the SUN/Oracle make ??

Also what features do you need ? What OpenSSL are you using ? I have :

beta $ /usr/local/bin/openssl version
OpenSSL 1.1.1c 28 May 2019
beta $

Please also know that the processor and architecture you are using was
deemed obsolete a long time ago and thus there is no "target" option
from the compilers to make code for that machine. However, having said
that the Oracle Studio compilers just keep on working and I have seen
it work on older systems. Let's face it, almost everything sparc was
deemed to be "obsolete" merely because no one wants to support it. Yet
it keeps on working. For many years.

The curl I have here ( from the testsuite ) :

********* System characteristics ********
* curl 7.65.3 (sparc64-sun-solaris2.10)
* libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.8 libidn2/2.1.1 libssh2/1.8.0
* Features: AsynchDNS HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB
SSL TLS-SRP UnixSockets
* Disabled:
* Host: beta
* System: SunOS beta 5.10 Generic_150400-65 sun4u sparc
* Servers: HTTP-IPv6 HTTP-unix FTP-IPv6
* Env:

So you also need a reasonable Perl for this to work.

You are in a deep dark cave of dependencies here and there are many
software components needed before you can build a reasonable curl on
that server. I can help with that.

Dennis Clarke
UNIX and Linux spoken
GreyBeard and suspenders optional
Received on 2019-07-31