[1.35] thread problem : get_timespec and get_xtime

Dear all, I'm using GCC 3.4 on REHL machine. I used to use BOOST 1.32 until yesterday and upgraded to 1.35 last night and now I can't compile my project =( I'm using boost thread library and it worked really well but doesn't work at all after the upgrading. The error message from g++ is... /usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp: In function `timespec boost::detail::get_timespec(const boost::system_time&)': /usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp:18: warning: missing initializer for member `timespec::tv_nsec' In file included from /usr/local/include/boost-1_35/boost/thread/pthread/condition_variable_fwd.hpp:12, I know this is just a warning but I wonder how I can clear this warning. Any suggestions are welcomed. Thanks =) -- Alexander Dong Back Kim

AMDG Alexander Dong Back Kim wrote:
Dear all,
I'm using GCC 3.4 on REHL machine. I used to use BOOST 1.32 until yesterday and upgraded to 1.35 last night and now I can't compile my project =( I'm using boost thread library and it worked really well but doesn't work at all after the upgrading. The error message from g++ is...
/usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp: In function `timespec boost::detail::get_timespec(const boost::system_time&)': /usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp:18: warning: missing initializer for member `timespec::tv_nsec' In file included from /usr/local/include/boost-1_35/boost/thread/pthread/condition_variable_fwd.hpp:12,
I know this is just a warning but I wonder how I can clear this warning. Any suggestions are welcomed. Thanks =)
This has been fixed in 1.36, which has struct timespec timeout={0,0}; instead of struct timespec timeout={0}; In Christ, Steven Watanabe

On Wed, Aug 13, 2008 at 12:53 PM, Steven Watanabe <watanabesj@gmail.com>wrote:
AMDG
Alexander Dong Back Kim wrote:
Dear all,
I'm using GCC 3.4 on REHL machine. I used to use BOOST 1.32 until yesterday and upgraded to 1.35 last night and now I can't compile my project =( I'm using boost thread library and it worked really well but doesn't work at all after the upgrading. The error message from g++ is...
/usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp: In function `timespec boost::detail::get_timespec(const boost::system_time&)': /usr/local/include/boost-1_35/boost/thread/pthread/timespec.hpp:18: warning: missing initializer for member `timespec::tv_nsec' In file included from
/usr/local/include/boost-1_35/boost/thread/pthread/condition_variable_fwd.hpp:12,
I know this is just a warning but I wonder how I can clear this warning. Any suggestions are welcomed. Thanks =)
This has been fixed in 1.36, which has struct timespec timeout={0,0}; instead of struct timespec timeout={0};
In Christ, Steven Watanabe
Thank you very much! so does it mean I need to upgrade boost again? is 1.36 stable by the way? I thought it's still in beta stage. -- Alexander Dong Back Kim

AMDG Alexander Dong Back Kim wrote:
This has been fixed in 1.36, which has struct timespec timeout={0,0}; instead of struct timespec timeout={0}
Thank you very much! so does it mean I need to upgrade boost again? is 1.36 stable by the way? I thought it's still in beta stage.
1.36 is still in beta. In Christ, Steven Watanabe

On Wed, Aug 13, 2008 at 1:55 PM, Steven Watanabe <watanabesj@gmail.com>wrote:
AMDG
Alexander Dong Back Kim wrote:
This has been fixed in 1.36, which has
struct timespec timeout={0,0}; instead of struct timespec timeout={0}
Thank you very much! so does it mean I need to upgrade boost again? is 1.36 stable by the way? I thought it's still in beta stage.
1.36 is still in beta.
In Christ, Steven Watanabe
Hi Steven, Thanks for you tips. =) I could solve all the compile errors and warnings now =) I'm still using 1.35. I manually changed two lines as you previously pointed out. I hope it doesn't affect any other stuff in BOOST so do you think it is acceptable thing to do for version 1.35? or it's a bad thing that I should've done? regards, -- Alexander Dong Back Kim

On Wed, Aug 13, 2008 at 2:38 PM, Alexander Dong Back Kim < alexdbkim@gmail.com> wrote:
On Wed, Aug 13, 2008 at 1:55 PM, Steven Watanabe <watanabesj@gmail.com>wrote:
AMDG
Alexander Dong Back Kim wrote:
This has been fixed in 1.36, which has
struct timespec timeout={0,0}; instead of struct timespec timeout={0}
Thank you very much! so does it mean I need to upgrade boost again? is 1.36 stable by the way? I thought it's still in beta stage.
1.36 is still in beta.
In Christ, Steven Watanabe
Hi Steven,
Thanks for you tips. =) I could solve all the compile errors and warnings now =) I'm still using 1.35. I manually changed two lines as you previously pointed out. I hope it doesn't affect any other stuff in BOOST so do you think it is acceptable thing to do for version 1.35? or it's a bad thing that I should've done?
regards,
-- Alexander Dong Back Kim
shouldn't* -- Alexander Dong Back Kim
participants (2)
-
Alexander Dong Back Kim
-
Steven Watanabe