public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] add debuginfod_get_headers if DUMMY_LIBDEBUGINFOD is used
@ 2022-09-08  9:14 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-09-08  9:14 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Frank Ch. Eigler

Pushed as obvious as I can't build elfutils:

[   70s] gcc -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition -Wstrict-prototypes -Wtrampolines -Wlogical-op -Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -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 -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   
[   70s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccedHXIy.ltrans0.ltrans.o: in function `main':
[   70s] /home/abuild/rpmbuild/BUILD/elfutils-0.187/debuginfod/debuginfod-find.c:219: undefined reference to `debuginfod_get_headers'

Martin

---
 debuginfod/ChangeLog           | 4 ++++
 debuginfod/debuginfod-client.c | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index bc6c11c9..77136698 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,3 +1,7 @@
+2022-09-08  Martin Liska  <mliska@suse.cz>
+
+	* debuginfod-client.c (debuginfod_get_headers): Add to DUMMY_LIBDEBUGINFOD.
+
 2022-09-06  Frank Ch. Eigler  <fche@redhat.com>
 
 	* debuginfod-client.c (header_callback): Don't copy \r in x-d headers.
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index 54dc3f2f..272a6a7a 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -63,6 +63,8 @@ void* debuginfod_get_user_data (debuginfod_client *c) { return NULL; }
 const char* debuginfod_get_url (debuginfod_client *c) { return NULL; }
 int debuginfod_add_http_header (debuginfod_client *c,
 				const char *h) { return -ENOSYS; }
+const char* debuginfod_get_headers (debuginfod_client *c) { return NULL; }
+
 void debuginfod_end (debuginfod_client *c) { }
 
 #else /* DUMMY_LIBDEBUGINFOD */
-- 
2.37.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-08  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  9:14 [PATCH] add debuginfod_get_headers if DUMMY_LIBDEBUGINFOD is used Martin Liška

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).