Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919484 - sys-auth/nss-mdns-0.15.1 - [clang] ld.lld: error: version script assignment of NSSMDNS_0 to symbol _nss_mdns4_gethostbyaddr_r failed: symbol not defined
Summary: sys-auth/nss-mdns-0.15.1 - [clang] ld.lld: error: version script assignment o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2023-12-08 19:49 UTC by Toralf Förster
Modified: 2024-01-17 05:57 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.30 KB, text/plain)
2023-12-08 19:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,153.24 KB, text/plain)
2023-12-08 19:49 UTC, Toralf Förster
Details
environment (environment,83.78 KB, text/plain)
2023-12-08 19:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-08 19:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.91 KB, application/x-xz)
2023-12-08 19:49 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.74 KB, application/x-xz)
2023-12-08 19:49 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,232.94 KB, text/plain)
2023-12-08 19:49 UTC, Toralf Förster
Details
sys-auth:nss-mdns-0.15.1:20231208-191557.log (sys-auth:nss-mdns-0.15.1:20231208-191557.log,40.87 KB, text/plain)
2023-12-08 19:49 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,30.85 KB, application/x-xz)
2023-12-08 19:49 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.69 KB, application/x-xz)
2023-12-08 19:49 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 2023-12-08 19:49:26 UTC
too long lines were shrinked:

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-auth/nss-mdns-0.15.1/work/nss-mdns-0.15.1 -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-functio
/bin/sh ./libtool  --tag=CC   --mode=link clang -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" -DNSS_IPV4_ONLY=1 -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -avoid-version -module -export-dynamic -sh
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-auth/nss-mdns-0.15.1/work/nss-mdns-0.15.1 -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-functio
libtool: link: clang -shared  -fPIC -DPIC  src/.libs/libnss_mdns_la-util.o src/.libs/libnss_mdns_la-avahi.o src/.libs/libnss_mdns_la-nss.o    -O2 -march=native -Wl,-version-script=/var/tmp/portage/sys-auth/nss-mdns-0.15.1/work/nss-mdns-0.15.1/src/map-file -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,
/bin/sh ./libtool  --tag=CC   --mode=link clang -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" -DNSS_IPV6_ONLY=1 -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -avoid-version -module -export-dynamic -sh
/bin/sh ./libtool  --tag=CC   --mode=link clang -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" -DMDNS_MINIMAL -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -avoid-version -module -export-dynamic -shrex
ld.lld: error: version script assignment of 'NSSMDNS_0' to symbol '_nss_mdns4_gethostbyaddr_r' failed: symbol not defined
ld.lld: error: version script assignment of 'NSSMDNS_0' to symbol '_nss_mdns6_gethostbyaddr_r' failed: symbol not defined
ld.lld: error: version script assignment of 'NSSMDNS_0' to symbol '_nss_mdns_minimal_gethostbyaddr_r' failed: symbol not defined

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd_clang_merged_usr-20231206-115013

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit f896ab2ff35889ba1068fe247388103dcd9a939d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 8 18:32:05 2023 +0000

    2023-12-08 18:32:04 UTC

emerge -qpvO sys-auth/nss-mdns
[ebuild  N    ] sys-auth/nss-mdns-0.15.1  USE="-test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-12-08 19:49:27 UTC
Created attachment 878426 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-08 19:49:29 UTC
Created attachment 878427 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-08 19:49:30 UTC
Created attachment 878428 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-08 19:49:31 UTC
Created attachment 878429 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-08 19:49:32 UTC
Created attachment 878430 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-08 19:49:33 UTC
Created attachment 878431 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-08 19:49:34 UTC
Created attachment 878432 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-12-08 19:49:36 UTC
Created attachment 878433 [details]
sys-auth:nss-mdns-0.15.1:20231208-191557.log
Comment 9 Toralf Förster gentoo-dev 2023-12-08 19:49:37 UTC
Created attachment 878434 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-08 19:49:37 UTC
Created attachment 878435 [details]
var.tmp.clang.tar.xz
Comment 11 Larry the Git Cow gentoo-dev 2024-01-17 05:47:25 UTC
The bug has been referenced in the following commit(s):

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

commit 1b7f453040380117f1789c851411e5157f0da93a
Author:     Nicholas Vinson <nvinson234@gmail.com>
AuthorDate: 2024-01-14 14:26:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-17 05:45:03 +0000

    sys-auth/nss-mdns: Apply upstream ver. sym. patch
    
    Update ebuild to apply proposed lld-17 version symbol patch from
    upstream. The upstream patch splits the symbol map into multiple files
    with each file tailored to its corresponding shared library.
    
    Upstream PR: https://github.com/avahi/nss-mdns/pull/93
    
    Bug: https://bugs.gentoo.org/919484
    Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34798
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/lld-17-undefined-versioned-symbols.patch | 160 +++++++++++++++++++++
 sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild           |  13 +-
 2 files changed, 171 insertions(+), 2 deletions(-)