Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914710 - net-libs/libnftnl-1.2.6 - [clang] ld.lld: error: version script assignment of LIBNFTNL_11 to symbol nftnl_chain_parse failed: symbol not defined
Summary: net-libs/libnftnl-1.2.6 - [clang] ld.lld: error: version script assignment of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: https://lore.kernel.org/netfilter-dev...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2023-09-25 16:51 UTC by Toralf Förster
Modified: 2024-07-16 06:59 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.18 KB, text/plain)
2023-09-25 16:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,58.43 KB, text/plain)
2023-09-25 16:51 UTC, Toralf Förster
Details
environment (environment,85.91 KB, text/plain)
2023-09-25 16:51 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-09-25 16:51 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,8.50 KB, application/x-xz)
2023-09-25 16:51 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,6.41 KB, application/x-xz)
2023-09-25 16:51 UTC, Toralf Förster
Details
net-libs:libnftnl-1.2.6:20230925-165005.log (net-libs:libnftnl-1.2.6:20230925-165005.log,58.45 KB, text/plain)
2023-09-25 16:51 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.73 KB, application/x-xz)
2023-09-25 16:51 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-09-25 16:51:23 UTC
too long lines were shrinked:

libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes -Wformat=2 -Wwrite-strings -pipe -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -c 
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes -Wformat=2 -Wwrite-strings -pipe -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -c 
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I..  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include    -Wall -Waggregate-return -Wmissing-declarations 	-Wmissing-prototypes -Wshadow -Wstrict-prototypes 	-Wformat=2 -Wwrite-strings -pipe -fvisibility=hidden -O2 -pipe -march=
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes -Wformat=2 -Wwrite-strings -pipe -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -c 
/bin/sh ../libtool  --tag=CC   --mode=link clang -Wall -Waggregate-return -Wmissing-declarations 	-Wmissing-prototypes -Wshadow -Wstrict-prototypes 	-Wformat=2 -Wwrite-strings -pipe -fvisibility=hidden -O2 -pipe -march=native -fno-diagnostics-color -Wl,--version-script=./libnftnl.map -version-info 1
libtool: link: clang -shared  -fPIC -DPIC  .libs/utils.o .libs/batch.o .libs/flowtable.o .libs/common.o .libs/gen.o .libs/table.o .libs/trace.o .libs/chain.o .libs/object.o .libs/rule.o .libs/set.o .libs/set_elem.o .libs/ruleset.o .libs/udata.o .libs/expr.o .libs/expr_ops.o expr/.libs/bitwise.o expr
ld.lld: error: version script assignment of 'LIBNFTNL_11' to symbol 'nftnl_chain_parse' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBNFTNL_11' to symbol 'nftnl_chain_parse_file' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBNFTNL_11' to symbol 'nftnl_set_elems_foreach' failed: symbol not defined

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

  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]
2)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit 2bb842cc94982e926a763cfe91d20fc7004c0d15
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Sep 25 16:01:43 2023 +0000

    2023-09-25 16:01:43 UTC

emerge -qpvO net-libs/libnftnl
[ebuild  N    ] net-libs/libnftnl-1.2.6  USE="(split-usr) -examples -static-libs -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2023-09-25 16:51:24 UTC
Created attachment 871409 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-25 16:51:25 UTC
Created attachment 871410 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-25 16:51:26 UTC
Created attachment 871411 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-25 16:51:27 UTC
Created attachment 871412 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-25 16:51:28 UTC
Created attachment 871413 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-25 16:51:29 UTC
Created attachment 871414 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-25 16:51:30 UTC
Created attachment 871415 [details]
net-libs:libnftnl-1.2.6:20230925-165005.log
Comment 8 Toralf Förster gentoo-dev 2023-09-25 16:51:30 UTC
Created attachment 871416 [details]
temp.tar.xz
Comment 9 wolfgang 2024-03-26 17:11:49 UTC
Can confirm this is still reproducible with ldd (Gentoo 2.38-r10 (patchset 10)) 2.38
Comment 10 Andy 2024-04-28 05:04:12 UTC
For those still breaking on libnftnl-1.2.6-r1, create an env file changing the LDFLAGS to
LDFLAGS=“${LDFLAGS} -Wl,—undefined-version"
Comment 11 Toralf Förster gentoo-dev 2024-04-28 10:35:55 UTC
(In reply to Andy from comment #10)
> For those still breaking on libnftnl-1.2.6-r1, create an env file changing
> the LDFLAGS to
> LDFLAGS=“${LDFLAGS} -Wl,—undefined-version"

is this an ebuild fix ?
Comment 12 Andy 2024-04-29 08:58:26 UTC
(In reply to Toralf Förster from comment #11)
> (In reply to Andy from comment #10)
> > For those still breaking on libnftnl-1.2.6-r1, create an env file changing
> > the LDFLAGS to
> > LDFLAGS=“${LDFLAGS} -Wl,—undefined-version"
> 
> is this an ebuild fix ?

I woulnd't rate it as one.
It's a package.env fix, solving the issue for this package and some others plagued by the same problem.
Comment 13 Larry the Git Cow gentoo-dev 2024-07-16 06:59:58 UTC
The bug has been closed via the following commit(s):

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

commit c839ffd09ed497f21c61c065b4de9a47ce6bb0e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-16 04:08:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-16 06:59:24 +0000

    net-libs/libnftnl: add 1.2.7
    
    Closes: https://bugs.gentoo.org/914710
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libnftnl/Manifest              |  2 +
 net-libs/libnftnl/libnftnl-1.2.7.ebuild | 71 +++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)