Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941453 - net-libs/nghttp2-1.63.0: fails to build with >=net-dns/c-ares-1.34.0 (undefined reference to ares_destroy)
Summary: net-libs/nghttp2-1.63.0: fails to build with >=net-dns/c-ares-1.34.0 (undefin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords: PATCH
: 941455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-10-13 09:15 UTC by Toralf Förster
Modified: 2024-10-16 04:28 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.74 KB, text/plain)
2024-10-13 09:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,18.65 KB, text/plain)
2024-10-13 09:15 UTC, Toralf Förster
Details
environment (environment,117.04 KB, text/plain)
2024-10-13 09:15 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.34 KB, application/x-xz)
2024-10-13 09:15 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.82 KB, application/x-xz)
2024-10-13 09:15 UTC, Toralf Förster
Details
net-libs:nghttp2-1.63.0:20241013-064007.log (net-libs:nghttp2-1.63.0:20241013-064007.log,127.80 KB, text/plain)
2024-10-13 09:15 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,55.85 KB, text/plain)
2024-10-13 09:15 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.41 KB, application/x-xz)
2024-10-13 09:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-10-13 09:15:04 UTC
too long lines were shrinked:

[102/102] : && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatch -Werror=strict-alia
FAILED: src/nghttpx 
: && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -Werror=lto-type-mismatch -Werror=strict-aliasing -Werr
lto-wrapper: warning: using serial compilation of 16 LTRANS jobs
lto-wrapper: note: see the -flto option documentation for more information
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/nghttp2-1.63.0/temp/ccSAFC7n.ltrans13.ltrans.o: in function `shrpx::DNSResolver::~DNSResolver()':
<artificial>:(.text+0xd9e): undefined reference to `ares_destroy'
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/nghttp2-1.63.0/temp/ccSAFC7n.ltrans13.ltrans.o: in function `shrpx::DNSResolver::reset_timeout()':
<artificial>:(.text+0xf37): undefined reference to `ares_timeout'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened_test-20241012-211452

  UNMASKED:
  /etc/portage/package.unmask/60gcc:<sys-devel/gcc-15.0.9999:15
    Requested by sam

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
Python 3.12.7
Available Rust versions:
  [1]   rust-bin-1.81.0 *
php cli (if any):

  HEAD of ::gentoo
commit 0be1ce18c2a0a201284085da8f848482e196845b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 13 03:18:31 2024 +0000

    2024-10-13 03:18:31 UTC

emerge -qpvO =net-libs/nghttp2-1.63.0
[ebuild  N    ] net-libs/nghttp2-1.63.0  USE="utils -debug -hpack-tools -jemalloc -static-libs -systemd -test -xml" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-10-13 09:15:05 UTC
Created attachment 905527 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-13 09:15:06 UTC
Created attachment 905528 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-10-13 09:15:08 UTC
Created attachment 905529 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-10-13 09:15:09 UTC
Created attachment 905530 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-10-13 09:15:10 UTC
Created attachment 905531 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-13 09:15:13 UTC
Created attachment 905532 [details]
net-libs:nghttp2-1.63.0:20241013-064007.log
Comment 7 Toralf Förster gentoo-dev 2024-10-13 09:15:14 UTC
Created attachment 905533 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-10-13 09:15:15 UTC
Created attachment 905534 [details]
temp.tar.xz
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-14 01:00:47 UTC
*** Bug 941455 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2024-10-15 16:43:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33e2e04cdb2faac45b5bbc99015f8d608404f16c

commit 33e2e04cdb2faac45b5bbc99015f8d608404f16c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-15 16:42:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-15 16:42:49 +0000

    net-dns/c-ares: add 1.34.2
    
    Closes: https://bugs.gentoo.org/941453
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/c-ares/Manifest             |   2 +
 net-dns/c-ares/c-ares-1.34.2.ebuild | 109 ++++++++++++++++++++++++++++++++++++
 2 files changed, 111 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2024-10-16 04:28:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfad6d83e575e0ecd778b8068f2d8fed9eb94f08

commit cfad6d83e575e0ecd778b8068f2d8fed9eb94f08
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-16 04:27:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-16 04:27:12 +0000

    net-libs/nghttp2: fix build w/ cares-1.34.1
    
    While we bumped to cares-1.34.2 already in 33e2e04cdb2faac45b5bbc99015f8d608404f16c
    which changes/works around this, we should fix it in nghttp2 anyway because:
    a) it's the right thing to do (cares may change it again in future);
    b) it makes it easier than trying to express a dep of "<1.34.1 or >1.34.1"
    which looks a bit gross.
    
    Bug: https://bugs.gentoo.org/941453
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/nghttp2/files/nghttp2-1.63.0-cares.patch | 38 +++++++++++++++++++++++
 net-libs/nghttp2/nghttp2-1.63.0.ebuild            |  4 +++
 2 files changed, 42 insertions(+)