Bug#1075698: Patch to ygl package (fixing gcc-14 bug)
Hi there,
I have worked on this Bug and learning about gcc-14 changes, I saw that
the new version of gcc needs to declare implicit functions that was
unnecessary on older version of gcc [1]. I'm attaching a patch with the
solution and I'll add a tag for Bug, let me see if I help with something,
I'm just a beginner contributor and I'll try to learn more about
packaging to maybe get this package to maintain.
Also, let me know if some DD like to be a sponsor for me, I'm
contributing with debian translate team (l10-portuguease) and studing
classes from Marcos Talau and Eriberto (Some names from packaging and
bugs that we have on Brazil)
[1] https://gcc.gnu.org/gcc-14/porting_to.html
Kind regards,
--
Pablo Lucas Silva Santos
https://www.linkedin.com/in/pablolucas890
Description: This patch add five new external declarations on fortran.c
file. It was unnecessary on older gcc version (13), but now, it isn't more
possible to call functions not declared [1]. I just adding the declarations
on file, I didn't study about the upstream project to see the better part
of the code to put it, however, the bug are fixed.
[1] https://gcc.gnu.org/gcc-14/porting_to.html#implicit-function-declaration
Author: Pablo Lucas Silva Santos <pablolucas890@gmail.com>
Bug-Debian: https://bugs.debian.org/1075698
Forwarded: (no)
Last-Update: 2025-02-23
--- ygl-4.2e.orig/fortran.c
+++ ygl-4.2e/fortran.c
@@ -8,6 +8,12 @@ static const char vcid[] = "$Id: fortran
#include "header.h" /* for COVERSLEEP & string.h */
+extern Display *getXdpy ( void );
+extern Window getXwid ( void );
+extern Window getXdid ( void );
+extern GC getXgc ( void );
+extern Int32 winX ( Display *, Window );
+
#ifndef YGL_PRE
# define YGL_PRE(x) x
#endif
@@ -409,7 +415,7 @@ void YGL_PRE(pushma_)(void) { pushmatrix
void YGL_PRE(popmat_)(void) { popmatrix();}
void YGL_PRE(shadem_)(INT4*x1) { shademodel(*x1);}
-
+
void YGL_PRE(c4s_) (INT2 x1[4]) { c4s(x1);}
void YGL_PRE(c4i_) (INT4 x1[4]) { c4i(x1);}
void YGL_PRE(c4f_) (REAL x1[4]) { c4f(x1);}
Reply to: