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.

Error facing when running configure for HP-UX 11.31i

From: Minal Patil via curl-library <>
Date: Tue, 23 Nov 2021 21:58:57 +0530

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

When i am running the configure command i am getting below error.

checking how to use *nroff to get plain text from man pages... -man
checking whether to enable the threaded resolver... yes
checking whether to use POSIX threads for threaded resolver... auto
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create... yes
checking for pthread_create in -lpthread... no
configure: error: Threaded resolver enabled but no thread library found

entry in config log against same is
configure:42357: checking for pthread_create in -lpthread
configure:42379: /opt/ansic/bin/cc +DD64 -o conftest -z +W 4227,4255 +O2
conftest.c -lpthread -lssl -lcrypto -lldap >&5
cc: error 1914: bad form for `-t' option
configure:42379: $? = 1

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.

Could this be just a typo error or Am i missing something?

Thanks & Regards,

Received on 2021-11-23