[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 47/62: [libxutil]: Fix Savannah #63831.
From: |
G. Branden Robinson |
Subject: |
[groff] 47/62: [libxutil]: Fix Savannah #63831. |
Date: |
Thu, 20 Apr 2023 06:14:39 -0400 (EDT) |
gbranden pushed a commit to branch branden-2023-04-20
in repository groff.
commit 4935756ea5f70b532f7bce6c53f09655788adf39
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Mar 16 18:28:16 2023 -0500
[libxutil]: Fix Savannah #63831.
* src/libs/libxutil/XFontName.c (utoa): Rename function from this...
(xu_utoa): ...to this, to avoid name collision when using "newlib"
portability library.
(XFormatFontName): Update call site.
* PROBLEMS: Drop item.
Fixes <https://savannah.gnu.org/bugs/?63831>. Thanks to Brian Inglis
for the report.
---
ChangeLog | 12 ++++++++++++
PROBLEMS | 15 ---------------
src/libs/libxutil/XFontName.c | 4 ++--
3 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 35defb505..495eb444b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2023-03-16 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/libs/libxutil/XFontName.c (utoa): Rename function from
+ this...
+ (xu_utoa): ...to this, to avoid name collision when using
+ "newlib" portability library.
+ (XFormatFontName): Update call site.
+ * PROBLEMS: Drop item.
+
+ Fixes <https://savannah.gnu.org/bugs/?63831>. Thanks to Brian
+ Inglis for the report.
+
2023-04-19 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/pdfpic.tmac: Refactor to make comprehensible some
diff --git a/PROBLEMS b/PROBLEMS
index ef3e17b01..6348d36b0 100644
--- a/PROBLEMS
+++ b/PROBLEMS
@@ -829,21 +829,6 @@ isolate it in a future release.
----------------------------------------------------------------------
-* I get a build failure on Cygwin / a system using newlib and GCC 11.
-
-"newlib" defines a function called "utoa" which conflicts with a static
-(file scope-local) function in src/libs/libxutil/XFontName.c.
-
-We expect to fix this in the near future; in the meantime, you can patch
-the file to rename the function (and update its call sites) or, if you
-don't require the "gxditview" output previewer or "xtotroff" utility,
-you can build groff without X11 support.
-
- $ make distclean
- $ ./configure --without-x
-
-----------------------------------------------------------------------
-
* The "check-default-foundry" test fails when I run "make check".
Your Ghostscript installation may have its fonts embedded in the
diff --git a/src/libs/libxutil/XFontName.c b/src/libs/libxutil/XFontName.c
index 81ccdaab2..fd31b6f14 100644
--- a/src/libs/libxutil/XFontName.c
+++ b/src/libs/libxutil/XFontName.c
@@ -119,7 +119,7 @@ XParseFontName (XFontNameString fontNameString, XFontName
*fontName,
}
static char *
-utoa (unsigned int u, char *s, int size)
+xu_utoa (unsigned int u, char *s, int size)
{
char *t;
@@ -156,7 +156,7 @@ XFormatFontName (XFontName *fontName, unsigned int
fontNameAttributes,
#define PutUnsigned(field, bit) \
f = (fontNameAttributes & bit) ? \
- utoa (fontName->field, number, sizeof (number)) \
+ xu_utoa (fontName->field, number, sizeof (number)) \
: (char *)"*"; \
if ((left -= strlen (f)) < 0) \
return False; \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 47/62: [libxutil]: Fix Savannah #63831.,
G. Branden Robinson <=