pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/25706: devel/glib



>Number:         25706
>Category:       pkg
>Synopsis:       Syntax error prevents compilation with gcc 3.4.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 25 20:49:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0_BETA
>Organization:
        johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 2.0_BETA NetBSD 2.0_BETA 
(KERNEL) #0: Mon May 24 05:31:10 MDT 2004 
root%colleen.internal.johnrshannon.com@localhost:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL
 i386
Architecture: i386
Machine: i386
gcc-3.4.0
>Description:
        A comma is missing as an argument list separator in several calls to 
g_warning()
>How-To-Repeat:
        Build with wip/gcc-3.4
>Fix:
        Apply the following patch:


$NetBSD$

--- ./gstrfuncs.c.orig  2001-02-26 23:00:22.000000000 -0700
+++ ./gstrfuncs.c
@@ -867,7 +867,7 @@ g_printf_string_upper_bound (const gchar
                   /* beware of positional parameters
                    */
                 case '$':
-                  g_warning (G_GNUC_PRETTY_FUNCTION
+                  g_warning (G_GNUC_PRETTY_FUNCTION,
                              "(): unable to handle positional parameters 
(%%n$)");
                   len += 1024; /* try adding some safety padding */
                   break;
@@ -1034,7 +1034,7 @@ g_printf_string_upper_bound (const gchar
                   /*          n   .   dddddddddddddddddddddddd   E   +-  eeee 
*/
                   conv_len += 1 + 1 + MAX (24, spec.precision) + 1 + 1 + 4;
                   if (spec.mod_extra_long)
-                    g_warning (G_GNUC_PRETTY_FUNCTION
+                    g_warning (G_GNUC_PRETTY_FUNCTION,
                                "(): unable to handle long double, collecting 
double only");
 #ifdef HAVE_LONG_DOUBLE
 #error need to implement special handling for long double
@@ -1077,7 +1077,7 @@ g_printf_string_upper_bound (const gchar
                   conv_done = TRUE;
                   if (spec.mod_long)
                     {
-                      g_warning (G_GNUC_PRETTY_FUNCTION
+                      g_warning (G_GNUC_PRETTY_FUNCTION,
                                  "(): unable to handle wide char strings");
                       len += 1024; /* try adding some safety padding */
                     }
@@ -1108,7 +1108,7 @@ g_printf_string_upper_bound (const gchar
                   conv_len += format - spec_start;
                   break;
                 default:
-                  g_warning (G_GNUC_PRETTY_FUNCTION
+                  g_warning (G_GNUC_PRETTY_FUNCTION,
                              "(): unable to handle `%c' while parsing format",
                              c);
                   break;
>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index