curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Undefined reference to pThread issue with 7.55.1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Sep 2017 15:52:01 +0200 (CEST)

On Mon, 25 Sep 2017, Dan Heinz wrote:

> Adding -pthread to the compiler options of the test app fixes the issue, but
> I never needed to do this before (we've been using curl for years).

...

> I see one difference is --enable-threaded-resolver is defaulted to on.
> Unfortunately, there is a bug where I cannot turn it off (without the
> patch). I'm curious if I am on the right track here with the issue? Could
> it be due to the threaded resolver being on?

Right, we switched to threaded resolver by default now so you need to switch
that off if you want to stick to the older synchronous way, or use c-ares.

But OpenSSL 1.1.x also requires pthreads now so that my be a second reason.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-25