Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 914637

Summary: sys-apps/keyutils-1.6.3 - [clang] ld.lld: error: version script assignment of KEYUTILS_1.7 to symbol keyctl_restrict failed: symbol not defined
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: ajak, amit.ugol, base-system, contact, contyk, filthypitdog, gebauer.andy, gentoo.qxrin, germtoo, kangie, necktwi, nvinson234, rincat, StormByte, waltercool
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://lore.kernel.org/keyrings/85561febfcf0618a9280448d5c53775646f470d6.1703712863.git.nvinson234@gmail.com/T/#u
See Also: https://github.com/gentoo/gentoo/pull/36190
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 912821    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
sys-apps:keyutils-1.6.3:20230925-042522.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2023-09-25 08:21:55 UTC
clang -I. -O2 -pipe -march=native -fno-diagnostics-color -g -Wall  -o key.dns_resolver.o -c key.dns_resolver.c
1 warning generated.
clang -I. -O2 -pipe -march=native -fno-diagnostics-color -g -Wall  -o dns.afsdb.o -c dns.afsdb.c
clang++ -I. -O2 -pipe -march=native -fno-diagnostics-color -g -Wall  -x c++-header -fsyntax-only keyutils.h
touch cxx.stamp
clang -O2 -pipe -march=native -fno-diagnostics-color -g -Wall  -fPIC -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,-soname,libkeyutils.so.1 -Wl,--version-script,version.lds -o libkeyutils.so.1.10 keyutils.os 
ld.lld: error: version script assignment of 'KEYUTILS_1.7' to symbol 'keyctl_restrict' failed: symbol not defined
ld.lld: error: version script assignment of 'KEYUTILS_1.7' to symbol 'keyctl_dh_compute_kdf_alloc' failed: symbol not defined
ld.lld: warning: attempt to reassign symbol 'keyctl_pkey_query' of version 'KEYUTILS_1.6' to version 'KEYUTILS_1.8'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_clang-20230924-160600

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.1
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.1+libcxx
Python 3.11.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.72.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
go version go1.21.1 linux/amd64

  HEAD of ::gentoo
commit b6386358d8bf97934f36786fae8ac908dd6229da
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 03:31:43 2023 +0000

    2023-09-25 03:31:42 UTC

emerge -qpvO sys-apps/keyutils
[ebuild  N    ] sys-apps/keyutils-1.6.3  USE="(split-usr) -static -static-libs -test" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 08:21:56 UTC
Created attachment 871308 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 08:21:56 UTC
Created attachment 871309 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-25 08:21:58 UTC
Created attachment 871310 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 08:21:58 UTC
Created attachment 871311 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 08:21:59 UTC
Created attachment 871312 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 08:21:59 UTC
Created attachment 871313 [details]
sys-apps:keyutils-1.6.3:20230925-042522.log
Comment 7 Toralf Förster gentoo-dev 2023-09-25 08:22:00 UTC
Created attachment 871314 [details]
temp.tar.xz
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-04 02:09:51 UTC
*** Bug 926118 has been marked as a duplicate of this bug. ***
Comment 9 Andy 2024-04-14 06:10:29 UTC
I have a package env file changing the LDFLAGS.

LDFLAGS="${LDFLAGS} -Wl,--undefined-version”

Similar to bug 915068 and 915068
Comment 10 Amit Ugol 2024-05-05 06:05:51 UTC
(In reply to Andy from comment #9)
> I have a package env file changing the LDFLAGS.
> 
> LDFLAGS="${LDFLAGS} -Wl,--undefined-version”
> 
> Similar to bug 915068 and 915068

worked for me with 1.6.3-r1 and 18.1.4+libcxx