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
build.
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.
configure.ac is the source code (configure is the generated one). I presume
you talk about this line?
https://github.com/curl/curl/blob/master/configure.ac#L3502
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?
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html