Subject: [Boost-bugs] [Boost C++ Libraries] #2498: #including boost/test/included/unit_test.hpp causes "POLL_ERR is not defined" error when compiling for Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-13 10:53:07
#2498: #including boost/test/included/unit_test.hpp causes "POLL_ERR is not
defined" error when compiling for Linux
---------------------------------------------------+------------------------
Reporter: ANDREW CHITTENDEN <andyc_at_[hidden]> | Type: Bugs
Status: new | Milestone: Boost 1.38.0
Component: None | Version: Boost 1.36.0
Severity: Problem | Keywords:
---------------------------------------------------+------------------------
This happens on boost 1_37_0.
When compiling this simple program:
#include <boost/test/included/unit_test.hpp>
gives these errors when compiled with "gcc -W -Wall -Wundef"
In file included from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/included/unit_test.hpp:22,
from test.cpp:1:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:480:48:
warning: "POLL_ERR" is not defined
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:480:59:
warning: "POLL_HUP" is not defined
In file included from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/output/compiler_log_formatter.hpp:20,
from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/compiler_log_formatter.ipp:19,
from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/included/unit_test.hpp:18,
from test.cpp:1:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:
In instantiation of ?boost::unit_test::basic_cstring<const char>?:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/unit_test_log_formatter.hpp:63:
instantiated from here
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:209:
warning: type qualifiers ignored on function return type
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:218:
warning: type qualifiers ignored on function return type
In file included from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/included/unit_test.hpp:22,
from test.cpp:1:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:
In destructor ?boost::detail::signal_handler::~signal_handler()?:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:678:
warning: missing initializer for member ?sigaltstack::ss_sp?
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:678:
warning: missing initializer for member ?sigaltstack::ss_flags?
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/impl/execution_monitor.ipp:678:
warning: missing initializer for member ?sigaltstack::ss_size?
In file included from
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/included/unit_test.hpp:31,
from test.cpp:1:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:
In constructor
?boost::unit_test::test_case_filter::single_filter::single_filter(boost::unit_test::const_string)?:
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:686:
warning: type qualifiers ignored on function return type
/home/andyc/work/3rdParty/boost_1_37_0/boost/test/utils/basic_cstring/basic_cstring.hpp:701:
warning: type qualifiers ignored on function return type
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2498> 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:49:59 UTC