Subject: groff doesn't build
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
List: netbsd-bugs
Date: 01/30/1994 17:58:47
Lots of files in the groff tree do not build anymore. Apparently the g++
compiler can't handle the declarations
int snprintf __P((char *, size_t, const char *, ...))
__attribute__((format (printf, 3, 4)));
int vsnprintf __P((char *, size_t, const char *, _VA_LIST_))
__attribute__((format (printf, 3, 0)));
int vscanf __P((const char *, _VA_LIST_))
__attribute__((format (scanf, 1, 0)));
int vsscanf __P((const char *, const char *, _VA_LIST_))
__attribute__((format (scanf, 2, 0)));
in /usr/include/stdio.h. I get:
In file included from /usr/include/g++/stdio.h:71, from /usr/src/gnu/usr.bin/groff/libgroff/assert.cc:20:
/usr/include/stdio.h:274: unrecognized format specifier for `int snprintf (char *, unsigned int, const char *, ...)'
/usr/include/stdio.h:276: unrecognized format specifier for `int vsnprintf (char *, unsigned int, const char *, char *)'
/usr/include/stdio.h:278: unrecognized format specifier for `int vscanf (const char *, char *)'
/usr/include/stdio.h:280: unrecognized format specifier for `int vsscanf (const char *, const char *, char *)'
*** Error code 1
I have unfortunately no idea what is causing this. I have just installed
the new include files, libraries, gcc and libg++ from yesterday's -current
tree.
- Havard
------------------------------------------------------------------------------