|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67782 - trunk/boost/chrono/detail
From: vicente.botet_at_[hidden]
Date: 2011-01-08 09:57:00
Author: viboes
Date: 2011-01-08 09:56:55 EST (Sat, 08 Jan 2011)
New Revision: 67782
URL: http://svn.boost.org/trac/boost/changeset/67782
Log:
Boost.Chrono: Try to solve SUN free/malloc undefined issue
Test output: Sandia-sun - chrono - io_ex3_shared / sun-5.10
Rev 67766 / Sat, 8 Jan 2011 01:15:34 +0000
Report Time: Sat, 8 Jan 2011 12:49:04 +0000
Compile [2011-01-08 02:06:04 UTC]: fail
"/opt/sunstudio12.1/bin/CC" +d -library=stlport4 -features=tmplife -features=tmplrefstatic -g -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_TYPEOF_EMULATION -DBOOST_USE_WINDOWS_H -I".." -c -o "/scratch2/kbelco/boost/results/boost/bin.v2/libs/chrono/test/io_ex3_shared.test/sun-5.10/debug/address-model-64/stdlib-sun-stlport/io_ex3.o" "../libs/chrono/test/../example/io_ex3.cpp"
"../boost/chrono/detail/scan_keyword.hpp", line 68: Error: free is not defined.
"../boost/chrono/chrono_io.hpp", line 642: Where: While instantiating "boost::chrono::chrono_detail::scan_keyword<std::istreambuf_iterator<char, std::char_traits<char>>, const std::string *>(std::istreambuf_iterator<char, std::char_traits<char>>&, std::istreambuf_iterator<char, std::char_traits<char>>, const std::string *, const std::string *, int&)".
"../boost/chrono/chrono_io.hpp", line 642: Where: Instantiated from boost::chrono::operator>><char, std::char_traits<char>, boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000>>>(std::istream &, boost::chrono::time_point<boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000>>>&).
"../libs/chrono/test/../example/io_ex3.cpp", line 30: Where: Instantiated from non-template code.
"../boost/chrono/detail/scan_keyword.hpp", line 71: Error: The function "malloc" must have a prototype.
"../boost/chrono/chrono_io.hpp", line 642: Where: While instantiating "boost::chrono::chrono_detail::scan_keyword<std::istreambuf_iterator<char, std::char_traits<char>>, const std::string *>(std::istreambuf_iterator<char, std::char_traits<char>>&, std::istreambuf_iterator<char, std::char_traits<char>>, const std::string *, const std::string *, int&)".
"../boost/chrono/chrono_io.hpp", line 642: Where: Instantiated from boost::chrono::operator>><char, std::char_traits<char>, boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000>>>(std::istream &, boost::chrono::time_point<boost::chrono::steady_clock, boost::chrono::duration<long long, boost::ratio<1, 1000000000>>>&).
"../libs/chrono/test/../example/io_ex3.cpp", line 30: Where: Instantiated from non-template code.
2 Error(s) detected.
TinyUrl
Text files modified:
trunk/boost/chrono/detail/scan_keyword.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/chrono/detail/scan_keyword.hpp
==============================================================================
--- trunk/boost/chrono/detail/scan_keyword.hpp (original)
+++ trunk/boost/chrono/detail/scan_keyword.hpp 2011-01-08 09:56:55 EST (Sat, 08 Jan 2011)
@@ -22,7 +22,8 @@
#include <boost/interprocess/smart_ptr/unique_ptr.hpp>
#include <ios>
#include <exception>
-#include <cstdlib>
+//~ #include <cstdlib>
+#include <stdlib.h>
namespace boost {
using interprocess::unique_ptr;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk