pkgsrc-Users archive

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

Re: pkg-config dumping core



On Wed, Feb 13, 2008 at 12:27:18PM +0000, raymond.meyer%rambler.ru@localhost 
wrote:
> Is this any use? pkg-config binary was built with gcc-4.2.3

Hm. Does the attached patch work around the problem?

Joerg
$NetBSD$

--- main.c.orig 2008-02-13 13:39:19.000000000 +0100
+++ main.c
@@ -78,7 +78,6 @@ void
 verbose_error (const char *format, ...)
 {
   va_list args;
-  gchar *str;
   FILE* stream;
   
   g_return_if_fail (format != NULL);
@@ -86,19 +85,15 @@ verbose_error (const char *format, ...)
   if (!want_verbose_errors)
     return;
 
-  va_start (args, format);
-  str = g_strdup_vprintf (format, args);
-  va_end (args);
-
   if (want_stdout_errors)
     stream = stdout;
   else
     stream = stderr;
-  
-  fputs (str, stream);
-  fflush (stream);
 
-  g_free (str);
+  va_start (args, format);
+  vfprintf(stream, format, args);  
+  va_end (args);
+  fflush (stream);
 }
 
 #define DEFINE_VARIABLE 1


Home | Main Index | Thread Index | Old Index