public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: elfutils-devel@sourceware.org
Cc: "Frank Ch. Eigler" <fche@elastic.org>
Subject: [PATCH] add debuginfod_get_headers if DUMMY_LIBDEBUGINFOD is used
Date: Thu, 8 Sep 2022 11:14:11 +0200	[thread overview]
Message-ID: <abc9231a-1b65-9270-f896-313b35a47689@suse.cz> (raw)

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


                 reply	other threads:[~2022-09-08  9:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abc9231a-1b65-9270-f896-313b35a47689@suse.cz \
    --to=mliska@suse.cz \
    --cc=elfutils-devel@sourceware.org \
    --cc=fche@elastic.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).