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: Error facing when running configure for HP-UX 11.31i

From: Daniel Stenberg via curl-library <>
Date: Tue, 23 Nov 2021 17:56:29 +0100 (CET)

On Tue, 23 Nov 2021, Minal Patil via curl-library wrote:

> I am trying to compile libcurl for HP-UX 11.31 with enable threads and
> openssl 1.0.2j.
> configure command used:
> ./configure --prefix=$HOME/Build --disable-silent-rules
> --with-ssl=<OPENSSL_DIR> --without-libidn2 --without-zlib
> --enable-shared=no --enable-static=yes --enable-ipv6 --enable-pthreads
> --disable-symbol-hiding --disable-ldap --disable-ldaps

You don't need --enable-pthreads for this, since the configure script will
check for it by default. This, because the threaded resolver is in the default

> It seems the configure is trying to run the compilation with -pthread as an
> option. This is causing the configure to fail with error
> When I checked the configure code I observed that we are setting
> CFLAGS="$CFLAGS -pthread" on line no 45270. is the source code (configure is the generated one). I presume
you talk about this line?

It's how its done with lots of compilers (gcc, clang, icc etc), but apparently
not with yours. But if you read the code just before, you'll see that the
script attempts to detect HPUX and *not* set -pthread as an option when
running there.

Are you saying that hpux detection fails? Or what else is happening there?

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-11-23