From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B949D1F8C6 for ; Wed, 28 Jul 2021 20:56:13 +0000 (UTC) Received: from localhost ([::1]:36164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8qb6-0000Vg-8c for normalperson@yhbt.net; Wed, 28 Jul 2021 16:56:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8qat-0000Uz-FA for bug-gnulib@gnu.org; Wed, 28 Jul 2021 16:55:59 -0400 Received: from outpost.hi.is ([2a00:c88:4000:1650::165:166]:58624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8qar-0003D3-7Q for bug-gnulib@gnu.org; Wed, 28 Jul 2021 16:55:59 -0400 Received: from krafla.rhi.hi.is (krafla.rhi.hi.is [IPv6:2a00:c88:4000:1480::148:57]) by outpost.hi.is (8.14.7/8.14.7) with ESMTP id 16SKgB4t006263 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 28 Jul 2021 20:42:11 GMT DKIM-Filter: OpenDKIM Filter v2.11.0 outpost.hi.is 16SKgB4t006263 Received: from krafla.rhi.hi.is (localhost [127.0.0.1]) by krafla.rhi.hi.is (8.15.2/8.15.2) with ESMTPS id 16SKgB7f397315 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 28 Jul 2021 20:42:11 GMT Received: (from bjarniig@localhost) by krafla.rhi.hi.is (8.15.2/8.15.2/Submit) id 16SKgBng397314 for bug-gnulib@gnu.org; Wed, 28 Jul 2021 20:42:11 GMT Date: Wed, 28 Jul 2021 20:42:11 +0000 From: Bjarni Ingi Gislason To: bug-gnulib@gnu.org Subject: "rpl_fprintf" not found if compiled with options "-ggdb -Og" Message-ID: <20210728204211.GA397303@rhi.hi.is> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: none client-ip=2a00:c88:4000:1650::165:166; envelope-from=bjarniig@krafla.rhi.hi.is; helo=outpost.hi.is X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Software: groff and gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. Error: CCLD gxditview /usr/bin/ld: src/devices/xditview/gxditview-device.o: in function `open_device_file': /home/bg/git/groff/build/../src/devices/xditview/device.c:535: undefined reference to `rpl_fprintf' /usr/bin/ld: src/devices/xditview/gxditview-device.o: in function `error': /home/bg/git/groff/build/../src/devices/xditview/device.c:546: undefined reference to `rpl_fprintf' /usr/bin/ld: /home/bg/git/groff/build/../src/devices/xditview/device.c:548: undefined reference to `rpl_fprintf' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:6472: gxditview] Error 1 Code in groff: 535 fprintf(stderr, "can't find device file '%s'\n", file_name); 546 fprintf(stderr, "%s:", current_filename); Defined GNULIB* containing "FPRINTF" in Makefile: GL_GNULIB_FPRINTF = 1 GL_GNULIB_FPRINTF_POSIX = 1 GL_GNULIB_VFPRINTF = 1 GL_GNULIB_VFPRINTF_POSIX = 0 REPLACE_FPRINTF = 1 REPLACE_VFPRINTF = 0 Code in gnulib/lib/stdio.in.h (groff/gnulib/stdio.in.h): #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ # if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fprintf rpl_fprintf # endif # define GNULIB_overrides_fprintf 1 # if @GNULIB_FPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # else _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # endif -- Bjarni I. Gislason