bug-gnulib
[Top][All Lists]
Advanced

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

Tru64 dtk vsnprintf module build failure


From: Peter O'Gorman
Subject: Tru64 dtk vsnprintf module build failure
Date: Thu, 10 Mar 2011 16:58:49 -0600
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

In the past gnulib-tool --import vsnprintf used to bring in wchar.h, but
it no longer does, so we get this failure on Tru64 5.1:
 cc -DHAVE_CONFIG_H -I. -g -c -MD printf-args.c  -DPIC -o .libs/printf-args.o
cc: Error: /usr/include.dtk/wchar.h, line 78: Ill-formed parameter type list. 
(parmtyplist)
                __VA_LIST__ __arg);
----------------^
cc: Error: /usr/include.dtk/wchar.h, line 83: Ill-formed parameter type list. 
(parmtyplist)
                __VA_LIST__ __arg);
----------------^
cc: Error: /usr/include.dtk/wchar.h, line 87: Ill-formed parameter type list. 
(parmtyplist)
                __VA_LIST__ __arg);
----------------^

This is noted in gnulib's wchar.h replacement - stdio.h must be included
before whcar.h.

We can fix this by adding #include <stdio.h> before the #include
<wchar.h> in printf-args.h, but I'm not sure that it's correct. Gnulib
undoubtedly has many more #include <wchar.h> that may be missing a prior
#include <stdio.h>

Peter
-- 
Peter O'Gorman
address@hidden

Index: gnulib/printf-args.h
===================================================================
--- gnulib/printf-args.h.orig   2011-03-10 22:25:10.000000000 +0000
+++ gnulib/printf-args.h        2011-03-10 22:30:15.220805277 +0000
@@ -32,6 +32,13 @@
 /* Get size_t.  */
 #include <stddef.h>
 
+/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
+   <wchar.h>. */
+
+#ifndef __GLIBC__
+# include <stdio.h>
+#endif
+
 /* Get wchar_t.  */
 #if HAVE_WCHAR_T
 # include <stddef.h



reply via email to

[Prev in Thread] Current Thread [Next in Thread]