* [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so
@ 2023-08-06 18:13 kocelfc at tutanota dot com
2023-08-06 23:48 ` [Bug libelf/30729] " sam at gentoo dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: kocelfc at tutanota dot com @ 2023-08-06 18:13 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Bug ID: 30729
Summary: elf_scncnt: undefined version: ELFUTILS_1.0 during
linking phase of libelf.so
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libelf
Assignee: unassigned at sourceware dot org
Reporter: kocelfc at tutanota dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Steps to reproduce:
1. autoreconf -vfi
2. ./configure --enable-maintainer-mode --disable-debuginfod
3. export LDFLAGS="-Wl,--no-undefined-version"
4. make
gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition
-Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond
-Wnull-dereference -Wimplicit-fallthrough=5 -Wuse-after-free=3 -Werror -Wunused
-Wextra -Wstack-usage=262144 -D_FORTIFY_SOURCE=3 -g -O2
-Wl,--no-undefined-version -Wl,--build-id -o libelf.so -shared -Wl,-z,defs
-Wl,-z,relro -o libelf.so \
-Wl,--soname,libelf.so.1 \
-Wl,--version-script,libelf.map \
-Wl,--no-undefined \
-Wl,--whole-archive libelf_pic.a -Wl,--no-whole-archive \
../lib/libeu.a -lz -lzstd -llzma -lbz2
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
elf_scncnt: undefined version: ELFUTILS_1.0
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:
failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
@ 2023-08-06 23:48 ` sam at gentoo dot org
2023-08-28 15:35 ` [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so) sam at gentoo dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2023-08-06 23:48 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--- Comment #1 from Sam James <sam at gentoo dot org> ---
(In reply to Kostadin Shishmanov from comment #0)
> Steps to reproduce:
>
> 1. autoreconf -vfi
> 2. ./configure --enable-maintainer-mode --disable-debuginfod
> 3. export LDFLAGS="-Wl,--no-undefined-version"
> 4. make
>
To be clear, the reason that this is an interesting flag (and why OP is testing
this) is because LLD 16 made it default for a bit (then reverted it) and LLD 17
will be setting it too.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so)
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
2023-08-06 23:48 ` [Bug libelf/30729] " sam at gentoo dot org
@ 2023-08-28 15:35 ` sam at gentoo dot org
2023-08-28 15:35 ` sam at gentoo dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2023-08-28 15:35 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|elf_scncnt: undefined |Build failure with upcoming
|version: ELFUTILS_1.0 |LLD 17 (elf_scncnt:
|during linking phase of |undefined version:
|libelf.so |ELFUTILS_1.0 during linking
| |phase of libelf.so)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so)
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
2023-08-06 23:48 ` [Bug libelf/30729] " sam at gentoo dot org
2023-08-28 15:35 ` [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so) sam at gentoo dot org
@ 2023-08-28 15:35 ` sam at gentoo dot org
2023-08-28 16:10 ` mark at klomp dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2023-08-28 15:35 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.gentoo.org/sho
| |w_bug.cgi?id=913112
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so)
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
` (2 preceding siblings ...)
2023-08-28 15:35 ` sam at gentoo dot org
@ 2023-08-28 16:10 ` mark at klomp dot org
2023-08-28 16:26 ` kocelfc at tutanota dot com
2023-08-28 18:35 ` mark at klomp dot org
5 siblings, 0 replies; 7+ messages in thread
From: mark at klomp dot org @ 2023-08-28 16:10 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
So just to be clear, the issue is that elf_scncnt is only mentioned in the
libelf.map but doesn't actually exist (it never seems to have been)?
Does simply removing it from libelf.map resolve this issue?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so)
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
` (3 preceding siblings ...)
2023-08-28 16:10 ` mark at klomp dot org
@ 2023-08-28 16:26 ` kocelfc at tutanota dot com
2023-08-28 18:35 ` mark at klomp dot org
5 siblings, 0 replies; 7+ messages in thread
From: kocelfc at tutanota dot com @ 2023-08-28 16:26 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
--- Comment #3 from Kostadin Shishmanov <kocelfc at tutanota dot com> ---
(In reply to Mark Wielaard from comment #2)
> So just to be clear, the issue is that elf_scncnt is only mentioned in the
> libelf.map but doesn't actually exist (it never seems to have been)?
>
> Does simply removing it from libelf.map resolve this issue?
I removed it from the libelf.map file, built elfutils with the mentioned
LDFLAGS, it built with no issues, then I ran the testsuite, and everything
passed fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so)
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
` (4 preceding siblings ...)
2023-08-28 16:26 ` kocelfc at tutanota dot com
@ 2023-08-28 18:35 ` mark at klomp dot org
5 siblings, 0 replies; 7+ messages in thread
From: mark at klomp dot org @ 2023-08-28 18:35 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
Thanks for testing. Pushed that fix:
commit 09e61a65953ed814d9e970f7f9ffb9c2d8cda477
Author: Mark Wielaard <mark@klomp.org>
Date: Mon Aug 28 20:23:41 2023 +0200
libelf: Remove elf_scncnt from libelf.map
elf_scncnt was never implemented. It was probably an old name for
elf_getshnum (which was the deprecated name of the elf_getshdrnum
alias). Just remove it from the map file
* libelf/libelf.map (ELFUTILS_1.0): Remove elf_scncnt.
https://sourceware.org/bugzilla/show_bug.cgi?id=30729
Reported-by: Kostadin Shishmanov <kocelfc@tutanota.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-28 18:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 18:13 [Bug libelf/30729] New: elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so kocelfc at tutanota dot com
2023-08-06 23:48 ` [Bug libelf/30729] " sam at gentoo dot org
2023-08-28 15:35 ` [Bug libelf/30729] Build failure with upcoming LLD 17 (elf_scncnt: undefined version: ELFUTILS_1.0 during linking phase of libelf.so) sam at gentoo dot org
2023-08-28 15:35 ` sam at gentoo dot org
2023-08-28 16:10 ` mark at klomp dot org
2023-08-28 16:26 ` kocelfc at tutanota dot com
2023-08-28 18:35 ` mark at klomp dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).