Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627960 - net-misc/curl-7.55.1 with glibc-2.25-r3: configure: error: Threaded resolver enabled but no thread library found
Summary: net-misc/curl-7.55.1 with glibc-2.25-r3: configure: error: Threaded resolver ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
: 628064 628072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-15 19:22 UTC by Kobboi
Modified: 2017-08-18 16:34 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log.tgz (config.log.tgz,53.87 KB, application/x-compressed-tar)
2017-08-15 19:25 UTC, Kobboi
Details
build.log (build.log,32.98 KB, text/x-log)
2017-08-15 19:26 UTC, Kobboi
Details
patch fixing threaded-resolver build error (enable-threaded-resolver.patch,604 bytes, patch)
2017-08-15 21:25 UTC, Georgy Yakovlev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2017-08-15 19:22:52 UTC
(...)
checking for netdb.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for working NI_WITHSCOPEID... no
checking how to set a socket into non-blocking mode... fcntl O_NONBLOCK
checking for perl... /usr/bin/perl
checking for gnroff... no
checking for nroff... /usr/bin/nroff
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... no
configure: error: Threaded resolver enabled but no thread library found
Comment 1 Kobboi 2017-08-15 19:25:13 UTC
Created attachment 489218 [details]
config.log.tgz
Comment 2 Kobboi 2017-08-15 19:26:10 UTC
Created attachment 489220 [details]
build.log
Comment 3 iGentoo 2017-08-15 20:03:26 UTC
See also:
https://github.com/curl/curl/issues/1784
Comment 4 Georgy Yakovlev archtester gentoo-dev 2017-08-15 21:25:52 UTC
Created attachment 489226 [details, diff]
patch fixing threaded-resolver build error

with this patch dropped into 
/etc/portage/patches/net-misc/curl-7.55.1

it builds fine without ares.
Comment 5 Robert Crawford 2017-08-16 18:47:36 UTC
Tried the patch in comment 4, but didn't work for me. Is this gcc-7.1 related?
Comment 6 Nikos Chantziaras 2017-08-16 19:52:36 UTC
(In reply to Robert Crawford from comment #5)
> Tried the patch in comment 4, but didn't work for me. Is this gcc-7.1
> related?

I don't think so. I'm on GCC 6.4.0 and I have the same issue.
Comment 7 Nikos Chantziaras 2017-08-16 20:02:03 UTC
(In reply to Robert Crawford from comment #5)
> Tried the patch in comment 4, but didn't work for me.

The patch works, btw. Is it actually applied? When you emerge, you should see this:

>>> Preparing source in /var/tmp/portage/net-misc/curl-7.55.1/work/curl-7.55.1 ...
 * Applying curl-7.30.0-prefix.patch ...      [ ok ]
 * Applying curl-respect-cflags-3.patch ...   [ ok ]
 * Applying curl-fix-gnutls-nettle.patch ...  [ ok ]
 * Applying enable-threaded-resolver.diff ... [ ok ]
 * User patches applied.

If you don't see the last two lines, then you didn't copy the patch to the correct location. It needs to be:

  /etc/portage/patches/net-misc/curl-7.55.1/enable-threaded-resolver.diff

And have the correct permissions too. So it's best to do a "chmod +r enable-threaded-resolver.diff" first.
Comment 8 Michal Jakubowski 2017-08-16 20:14:50 UTC
The patch looks fine.
Comment 9 Robert Crawford 2017-08-16 21:32:37 UTC
Sorry- I just made a stupid mistake, and put the patch in the wrong place.
Forgot to make a curl-7.55.1 directory in /net-misc. patch worked perfect-  Thanks guys!
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-08-17 08:23:48 UTC
*** Bug 628064 has been marked as a duplicate of this bug. ***
Comment 11 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-08-17 09:05:31 UTC
*** Bug 628072 has been marked as a duplicate of this bug. ***
Comment 12 Jon Wilder 2017-08-18 06:05:44 UTC
Patch worked for me as well.
Comment 13 Anthony Basile gentoo-dev 2017-08-18 16:34:07 UTC
okay i added this without a rev bump.  please tests and reopen this bug if its still a problem.  it works for me.