https://sourceware.org/bugzilla/show_bug.cgi?id=33937

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2026-03-19
     Ever confirmed|0                           |1
         Resolution|FIXED                       |---

--- Comment #13 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Andreas Schwab from comment #12)
> This breaks --disable-debuginfod --enable-libdebuginfod=dummy

We should maybe add that configuration to the buildbots.

> gcc -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes
> -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference
> -Wimplicit-fallthrough=5 -Wuse-after-free=3 -Wmissing-parameter-name
> -Wdeprecated-non-prototype  -Werror -Wunused -Wextra -Wstack-usage=262144  
> -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong
> -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
> -Werror=return-type -flto=auto -ffat-lto-objects -g -g -Werror=date-time
> -Wl,-rpath-link,../libelf:../libdw:. -flto=auto -ffat-lto-objects -o
> debuginfod-find debuginfod-find.o ../libdw/libdw.so ../libelf/libelf.so
> ../lib/libeu.a ./libdebuginfod.so    -lbz2 
> /usr/bin/ld.bfd: /tmp/ccTXwcUL.ltrans0.ltrans.o: in function `progressfn':
> /home/abuild/rpmbuild/BUILD/elfutils-0.999-build/elfutils-0.999/debuginfod/
> debuginfod-find.c:89:(.text+0xd2): undefined reference to
> `debuginfod_default_progressfn'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:666: debuginfod-find] Error 1

Yes, we need a dummy variant of debuginfod_default_progressfn:

diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 68fa95111063..3a13baa2287c 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -73,6 +73,7 @@ int debuginfod_find_section (debuginfod_client *c, const
unsigned char *b,
                              { return -ENOSYS; }
 int debuginfod_find_metadata (debuginfod_client *c,
                               const char *k, const char *v, char **p) { return
-ENOSYS; }
+int debuginfod_default_progressfn (debuginfod_client *c, long a, long b) {
return 0; }
 void debuginfod_set_progressfn(debuginfod_client *c,
                               debuginfod_progressfn_t fn) { }
 void debuginfod_set_verbose_fd(debuginfod_client *c, int fd) { }

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to