[Sun C++ 5.8/Solaris 10] sprintf undeclared in 22.locale.money.put.cpp
----------------------------------------------------------------------
Key: STDCXX-143
URL: http://issues.apache.org/jira/browse/STDCXX-143
Project: C++ Standard Library
Type: Bug
Components: Tests
Versions: 4.1.3
Environment: Sun C++ 5.8/Solaris 10/AMD
Reporter: Martin Sebor
Fix For: 4.1.4
The 22.locale.money.put.cpp test fails to compile with Sun C++ 5.8 on Solaris
10:
CC -c -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG
-I/build/sebor/stdcxx-4.1.3-sunpro-5.8-15d/include
-I/build/sebor/stdcxx-4.1.3/include -I/build/sebor/stdcxx-4.1.3/../rwtest
-I/build/sebor/stdcxx-4.1.3/../rwtest/include
-I/build/sebor/stdcxx-4.1.3/tests/include -library=%none -g +w
/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
332: Error: The function "sprintf" must have a prototype.
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
419: Where: While instantiating "type_test<char>(int, char, long double,
const char*, char, int, int, int, const char*, const char*)".
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
419: Where: Instantiated from ldbl_test<char>(char).
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
830: Where: Instantiated from non-template code.
Error: Cannot continue processing because of prior errors.
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
419: Where: While instantiating "type_test<char>(int, char, long double,
const char*, char, int, int, int, const char*, const char*)".
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
419: Where: Instantiated from ldbl_test<char>(char).
"/build/sebor/stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line
830: Where: Instantiated from non-template code.
Compilation aborted.
gmake[2]: *** [22.locale.money.put.o] Error 1
gmake[2]: Leaving directory `/build/sebor/stdcxx-4.1.3-sunpro-5.8-15d/tests'
gmake[1]: [tests] Error 2 (ignored)
gmake[1]: Leaving directory `/build/sebor/stdcxx-4.1.3-sunpro-5.8-15d'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira