File gcc-fno-common-fix.patch of Package java-1_6_0-openjdk

--- icedtea6-1.13.13/openjdk/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c	2020-09-16 08:37:24.803064467 +0200
+++ icedtea6-1.13.13/openjdk/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c	2020-09-16 09:51:10.687520723 +0200
@@ -113,7 +113,7 @@
 fn_jpegallochufftable jpegallochufftable;
 fn_jpegallocquanttable jpegallocquanttable;
 fn_jpegcreatecompress jpegcreatecompress;
-fn_jpegcreatedecompress jpegcreatedecompress;
+extern fn_jpegcreatedecompress jpegcreatedecompress;
 fn_jpegdestroy jpegdestroy;
 fn_jpegfinishcompress jpegfinishcompress;
 fn_jpeginputcomplete jpeginputcomplete;
@@ -125,15 +125,15 @@
 fn_jpegsuppresstables jpegsuppresstables;
 fn_jpegwritescanlines jpegwritescanlines;
 fn_jpegwritetables jpegwritetables;
-fn_jpegstderror jpegstderror;
-fn_jpegstartoutput jpegstartoutput;
-fn_jpegfinishdecompress jpegfinishdecompress;
-fn_jpeghasmultiplescans jpeghasmultiplescans;
-fn_jpegstartdecompress jpegstartdecompress;
-fn_jpegreadheader jpegreadheader;
-fn_jpegfinishoutput jpegfinishoutput;
-fn_jpegreadscanlines jpegreadscanlines;
-fn_jpegresynctorestart jpegresynctorestart;
+extern fn_jpegstderror jpegstderror;
+extern fn_jpegstartoutput jpegstartoutput;
+extern fn_jpegfinishdecompress jpegfinishdecompress;
+extern fn_jpeghasmultiplescans jpeghasmultiplescans;
+extern fn_jpegstartdecompress jpegstartdecompress;
+extern fn_jpegreadheader jpegreadheader;
+extern fn_jpegfinishoutput jpegfinishoutput;
+extern fn_jpegreadscanlines jpegreadscanlines;
+extern fn_jpegresynctorestart jpegresynctorestart;
 
 /*
  * Defined in jpegdecoder.c.  Copy code from there if and
--- icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/awt/gtk2_interface.c	2020-09-16 08:37:24.815064538 +0200
+++ icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/awt/gtk2_interface.c	2020-09-16 09:10:30.843826772 +0200
@@ -32,6 +32,16 @@
 #include "java_awt_Transparency.h"
 #include "sizecalc.h"
 
+void (*fp_g_object_unref)(gpointer object);
+int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
+guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
+gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
+int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
+int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
+int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
+int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
+GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
+
 #define GTK2_LIB "libgtk-x11-2.0.so.0"
 
 #define G_TYPE_INVALID                  G_TYPE_MAKE_FUNDAMENTAL (0)
--- icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/awt/gtk2_interface.h	2020-09-16 08:37:24.815064538 +0200
+++ icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/awt/gtk2_interface.h	2020-09-16 09:09:36.619499919 +0200
@@ -654,14 +654,14 @@
 void gtk2_set_range_value(WidgetType widget_type, jdouble value,
                           jdouble min, jdouble max, jdouble visible);
 
-void (*fp_g_object_unref)(gpointer object);
-int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
-guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
-gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
-int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
-int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
-int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
-int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
-GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
+extern void (*fp_g_object_unref)(gpointer object);
+extern int (*fp_gdk_pixbuf_get_bits_per_sample)(const GdkPixbuf *pixbuf);
+extern guchar *(*fp_gdk_pixbuf_get_pixels)(const GdkPixbuf *pixbuf);
+extern gboolean (*fp_gdk_pixbuf_get_has_alpha)(const GdkPixbuf *pixbuf);
+extern int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
+extern int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
+extern int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
+extern int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
+extern GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
 
 #endif /* !_GTK2_INTERFACE_H */
--- icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.c	2020-09-16 08:37:24.811064515 +0200
+++ icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.c	2020-09-16 08:42:26.184847271 +0200
@@ -29,6 +29,9 @@
 #include <link.h>
 #include "NativeFunc.h"
 
+/* global GSS function table */
+GSS_FUNCTION_TABLE_PTR ftab;
+
 /* standard GSS method names (ordering is from mapfile) */
 static const char RELEASE_NAME[]                = "gss_release_name";
 static const char IMPORT_NAME[]                 = "gss_import_name";
--- icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.h	2020-09-16 08:37:24.811064515 +0200
+++ icedtea6-1.13.13/openjdk/jdk/src/solaris/native/sun/security/jgss/wrapper/NativeFunc.h	2020-09-16 08:42:03.128701644 +0200
@@ -265,6 +265,6 @@
 typedef GSS_FUNCTION_TABLE *GSS_FUNCTION_TABLE_PTR;
 
 /* global GSS function table */
-GSS_FUNCTION_TABLE_PTR ftab;
+extern GSS_FUNCTION_TABLE_PTR ftab;
 
 #endif
openSUSE Build Service is sponsored by