unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob ebe92365338a421db6d1479ba5a88a6c1895583b 1206 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
Fixes "multiple definition" errors when building with GCC 10+.

Based on <https://bugs.gentoo.org/show_bug.cgi?id=706706>.
--- a/fig2dev/dev/gensvg.c	2010-07-01 22:41:16.000000000 +0200
+++ b/fig2dev/dev/gensvg.c	2022-02-27 20:02:33.379945500 +0100
@@ -230,10 +230,12 @@
 };
 
 /* arrowhead arrays */
-Point   points[50], fillpoints[50], clippoints[50];
-int     npoints, nfillpoints, nclippoints;
-int     arrowx1, arrowy1;	/* first point of object */
-int     arrowx2, arrowy2;	/* second point of object */
+Point   fillpoints[50];
+int     nfillpoints;
+extern Point   points[50], clippoints[50];
+extern int     npoints, nclippoints;
+extern int     arrowx1, arrowy1;	/* first point of object */
+extern int     arrowx2, arrowy2;	/* second point of object */
 
 static int tileno=0; /* number of current tile */ 
 
--- a/fig2dev/fig2dev.h	2010-03-16 19:53:20.000000000 +0100
+++ b/fig2dev/fig2dev.h	2022-02-27 19:56:06.072253991 +0100
@@ -126,7 +126,7 @@
 extern char	*prog, *from, *to;
 extern char	*name;
 extern double	font_size;
-Boolean	correct_font_size;	/* use correct font size */
+extern Boolean	correct_font_size;	/* use correct font size */
 extern double	mag, fontmag;
 extern FILE	*tfp;
 

debug log:

solving ebe9236533 ...
found ebe9236533 in https://git.savannah.gnu.org/cgit/guix.git

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).