From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id C49EC3858D28 for ; Thu, 8 Sep 2022 09:14:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C49EC3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C54E11F8D4; Thu, 8 Sep 2022 09:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1662628451; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6qzWNM6qwa9ytqoie03wSGHcYOH8rg+NVHjnIPrd0Qk=; b=qU0X6rkTNscqV4IblzWicF5J24QfU25xcUriaj3d93UnkqiaHewUX0rp/p0SqefIbaqNC+ cSHNddj55hAK0FYXqLIUT0Vz++vg+LiRRSYdeoMrjz3JWD8K8tBOKC2KM+ASi3LAnUZBun D795gcVtfXsRAAcf+IcHafl+fpiwx5c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1662628451; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6qzWNM6qwa9ytqoie03wSGHcYOH8rg+NVHjnIPrd0Qk=; b=Xfi5GfyJsOs7OM4bHkhKd0eaSpXXElZczwS4N2qZMOeJ8Ij8uk8kRjtFQ79WlI8ARZcsqx B+eqYFR7FIKpu3Dg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B1A7113A6D; Thu, 8 Sep 2022 09:14:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pJhqKmOyGWN0QQAAMHmgww (envelope-from ); Thu, 08 Sep 2022 09:14:11 +0000 Message-ID: Date: Thu, 8 Sep 2022 11:14:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] add debuginfod_get_headers if DUMMY_LIBDEBUGINFOD is used To: elfutils-devel@sourceware.org Content-Language: en-US Cc: "Frank Ch. Eigler" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_SOFTFAIL,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 + + * debuginfod-client.c (debuginfod_get_headers): Add to DUMMY_LIBDEBUGINFOD. + 2022-09-06 Frank Ch. Eigler * 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