https://sourceware.org/bugzilla/show_bug.cgi?id=33974
Bug ID: 33974
Summary: elfutils-
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libdw
Assignee: unassigned at sourceware dot org
Reporter: sam at gentoo dot org
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
When building elfutils-0.194 on Hurd, I see:
```
/usr/x86_64-pc-linux-gnu/i686-gnu/binutils-bin/2.46.0/ld:
../libdwfl_stacktrace/libdwfl_stacktrace_pic.a(dwflst_sample_frame.os): in
function `sample_set_initial_registers':
/usr/i686-gnu/tmp/portage/dev-libs/elfutils-0.194/work/elfutils-0.194/libdwfl_stacktrace/dwflst_sample_frame.c:176:(.text+0xbb):
undefined reference to `__libdwfl_set_initial_registers_thread'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1889: libdw.so] Error 1
make[2]: *** [Makefile:917: all] Error 2
make[1]: *** [Makefile:625: all-recursive] Error 1
make: *** [Makefile:540: all] Error 2
* ERROR: dev-libs/elfutils-0.194::gentoo failed (compile phase):
```
libdwfl_stacktrace/dwflst_sample_frame.c has:
```
static bool
sample_set_initial_registers (Dwfl_Thread *thread, void *arg)
{
struct sample_info *sample_arg =
(struct sample_info *)arg;
INTUSE(dwfl_thread_state_register_pc) (thread, sample_arg->pc);
Dwfl_Process *process = thread->process;
Ebl *ebl = process->ebl;
return ebl_set_initial_registers_sample
(ebl, sample_arg->regs, sample_arg->n_regs,
sample_arg->regs_mapping, sample_arg->n_regs_mapping,
__libdwfl_set_initial_registers_thread, thread);
}
```
and indeed the only definition is at libdwfl/linux-pid-attach.c.
Debian seems to have hit it too in
https://people.debian.org/~sthibault/hurd-i386/out_of_date2.txt:
```
elfutils
State : Failed
Failed : >
./libdwfl_stacktrace/./libdwfl_stacktrace/dwflst_sample_frame.c:176:(.text+0xbb):
undefined reference to `__libdwfl_set_initial_registers_thread'
State-Days : 131
```
--
You are receiving this mail because:
You are on the CC list for the bug.