[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"rpl_fprintf" not found if compiled with options "-ggdb -Og"
From: |
Bjarni Ingi Gislason |
Subject: |
"rpl_fprintf" not found if compiled with options "-ggdb -Og" |
Date: |
Wed, 28 Jul 2021 20:42:11 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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
- "rpl_fprintf" not found if compiled with options "-ggdb -Og",
Bjarni Ingi Gislason <=