Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-143

[Sun C++ 5.8/Solaris 10] sprintf undeclared in 22.locale.money.put.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.2.0
    • Tests
    • None
    • Sun C++ 5.8/Solaris 10/AMD

    Description

      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'

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: