vsnprintf chokes "make check" on HPUX
"Seip, Christopher" <[email protected]>
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Message-ID | <5DFB8EEE0EB4044AA09E9AA85854631B15B133@cacexc09.americas.cpqcorp.net> |
On HP-UX 10.20, with either HP's aCC compiler or with the GNU gcc
compiler, the dejagnu.h file's use of vsnprintf chokes the compiler
during the "make check" phase of building (dejagnu 1.4.4).
aCC -AA +DAportable (version A.01.27) complains like this:
Error 403: "../../dejagnu.h", line 68 # Undeclared variable 'vsnprintf'.
Perhaps 'vsprintf' as in "int vsprintf(char *,const char *,double
*)"
["/usr/include/stdio.h", line 422] was intended.
vsnprintf( buffer, _BUFFER_SIZE_, fmt, ap );
^^^^^^^^^
Error 403: "../../dejagnu.h", line 82 # Undeclared variable 'vsnprintf'.
Perhaps 'vsprintf' as in "int vsprintf(char *,const char *,double
*)"
["/usr/include/stdio.h", line 422] was intended.
vsnprintf( buffer, _BUFFER_SIZE_, fmt, ap );
^^^^^^^^^
Error 403: "../../dejagnu.h", line 96 # Undeclared variable 'vsnprintf'.
Perhaps 'vsprintf' as in "int vsprintf(char *,const char *,double
*)"
["/usr/include/stdio.h", line 422] was intended.
vsnprintf( buffer, _BUFFER_SIZE_, fmt, ap );
^^^^^^^^^
Error 403: "../../dejagnu.h", line 110 # Undeclared variable
'vsnprintf'.
Perhaps 'vsprintf' as in "int vsprintf(char *,const char *,double
*)"
["/usr/include/stdio.h", line 422] was intended.
vsnprintf( buffer, _BUFFER_SIZE_, fmt, ap );
^^^^^^^^^
Error 403: "../../dejagnu.h", line 123 # Undeclared variable
'vsnprintf'.
Perhaps 'vsprintf' as in "int vsprintf(char *,const char *,double
*)"
["/usr/include/stdio.h", line 422] was intended.
vsnprintf( buffer, _BUFFER_SIZE_, fmt, ap );
^^^^^^^^^
Error 182: "unit.cc", line 56 # "int main(int,char **)" cannot access
protected member "std::basic_streambuf<char,std::char_traits<char> >
*std::basic_streambuf<char,std::char_traits<char> >::setbuf(char
*,int)".
cout.rdbuf()->setbuf(bbuuff, 5120);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
make[4]: *** [unit.o] Error 2
Complaints from gcc (version 3.3.2) look like this:
In file included from unit.cc:9:
../../dejagnu.h: In function `void pass(const char*, ...)':
../../dejagnu.h:68: error: `vsnprintf' undeclared (first use this
function)
../../dejagnu.h:68: error: (Each undeclared identifier is reported only
once
for each function it appears in.)
../../dejagnu.h: In function `void fail(const char*, ...)':
../../dejagnu.h:82: error: `vsnprintf' undeclared (first use this
function)
../../dejagnu.h: In function `void untested(const char*, ...)':
../../dejagnu.h:96: error: `vsnprintf' undeclared (first use this
function)
../../dejagnu.h: In function `void unresolved(const char*, ...)':
../../dejagnu.h:110: error: `vsnprintf' undeclared (first use this
function)
../../dejagnu.h: In function `void note(const char*, ...)':
../../dejagnu.h:123: error: `vsnprintf' undeclared (first use this
function)
make[4]: *** [unit.o] Error 1
The config logs for both configurations are attached. Thanks for any
feedback or assistance you can provide! Regards,
--Chris--
_______________________________________________
Bug-dejagnu mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/bug-dejagnu
dejagnu.config.log.gcc
(application/octet-stream, 14 KB) - not displayed
dejagnu.config.log.acc
(application/octet-stream, 21.8 KB) - not displayed