[Boost-bugs] [Boost C++ Libraries] #3558: como throws error: the global scope has no snprintf

Subject: [Boost-bugs] [Boost C++ Libraries] #3558: como throws error: the global scope has no snprintf
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-25 02:44:13


#3558: como throws error: the global scope has no snprintf
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: test
  Version: Boost Development Trunk | Severity: Problem
 Keywords: como,comeau |
------------------------------------------+---------------------------------
 Building Boost.Test from trunk (r57142) using
 [http://www.comeaucomputing.com/43101features.html Comeau C/C++ 4.3.10.1]
 gives errors about missing snprintf function:

 {{{
 como-linux.compile.c++ ../../bin.v2/libs/test/build/como-
 linux/debug/debug.o
 Comeau C/C++ 4.3.10.1 (May 7 2008 12:23:21) for LINUX_INTEL_ELF_Beta
 Copyright 1988-2008 Comeau Computing. All rights reserved.
 MODE:non-strict warnings C++ noC++0x_extensions

 "../../boost/test/impl/debug.ipp", line 320: error: the global scope has
 no
           "snprintf"
       ::snprintf( title_str, sizeof(title_str), "%*s %ld",
 (int)(dsi.binary_path.end()-it), it, dsi.pid );
         ^

 "../../boost/test/impl/debug.ipp", line 420: error: the global scope has
 no
           "snprintf"
       ::snprintf( pid_buff, sizeof(pid_buff), "%ld", dsi.pid );
         ^

 "../../boost/test/impl/debug.ipp", line 426: error: the global scope has
 no
           "mkstemp"
       fd_holder cmd_fd( ::mkstemp( cmd_file_name ) );
                           ^

 "../../boost/test/impl/debug.ipp", line 492: error: the global scope has
 no
           "snprintf"
       ::snprintf( dbg_cmd_buff, sizeof(dbg_cmd_buff), "(progn (gdb \"gdb
 -q -x %s\"))", cmnd_file_name );
         ^

 "../../boost/test/impl/debug.ipp", line 516: error: the global scope has
 no
           "snprintf"
       ::snprintf( cmd_line_buff, sizeof(cmd_line_buff), "unlink
 %s;cont;%s%s",
         ^

 "../../boost/test/impl/debug.ipp", line 530: error: the global scope has
 no
           "snprintf"
       ::snprintf( pid_buff, sizeof(pid_buff), "%ld", dsi.pid );
         ^

 "../../boost/test/impl/debug.ipp", line 545: error: the global scope has
 no
           "snprintf"
       ::snprintf( pid_buff, sizeof(pid_buff), "%ld", dsi.pid );
         ^

 "../../boost/test/impl/debug.ipp", line 582: error: the global scope has
 no
           "snprintf"
       ::snprintf( pid_buff, sizeof(pid_buff), "%ld", dsi.pid );
         ^

 "../../boost/test/impl/debug.ipp", line 714: error: the global scope has
 no
           "kill"
       ::kill( ::getpid(), SIGTRAP );
         ^

 "../../boost/test/impl/debug.ipp", line 863: error: the global scope has
 no
           "mkstemp"
       fd_holder init_done_lock_fd( ::mkstemp( init_done_lock_fn ) );
                                      ^

 10 errors detected in the compilation of "../../libs/test/src/debug.cpp".

     como -tused -c --long_long -DBOOST_ALL_NO_LIB=1
 -DBOOST_TEST_DYN_LINK=1 --no_inlining -O0 -g --exceptions -I"../.." -o
 "../../bin.v2/libs/test/build/como-linux/debug/debug.o"
 "../../libs/test/src/debug.cpp" 2>&1

 ...failed como-linux.compile.c++ ../../bin.v2/libs/test/build/como-
 linux/debug/debug.o...
 }}}

 I installed Comeau compiler with ''relaxed mode'' of compilation
 configured as default. The snprintf function comes from C99 and as far as
 I'm experienced with Comeau C/C++, in relaxed mode it is not available
 unless Comeau's option ''--c99'' is specified

 Environment: Ubuntu 9.04 (32-bit), GCC 4.3.3, Comeau C/C++ 4.3.10.1

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3558>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC