PDA

View Full Version : F9 Beta has a boost package error


marko
2008-03-30, 03:45 PM CDT
One of the reasons I really wanted to try F9 Beta was to get my
hands on the new GCC 4.3.

Upon compiling my project I got this error:

/usr/include/boost/date_time/tz_db_base.hpp:161: error: declaration of ‘typedef class boost::date_time::dst_adjustment_offsets<typename time_zone_type::time_duration_type> boost::date_time::tz_db_base<time_zone_type, rule_type>::dst_adjustment_offsets’
/usr/include/boost/date_time/time_zone_base.hpp:76: error: changes meaning of ‘dst_adjustment_offsets’ from ‘class boost::date_time::dst_adjustment_offsets<typename time_zone_type::time_duration_type>’

This is not in my code but in the boost stuff itself. I wanted to confirm if others
see this before possibly taking this to bugzilla.

the packages installed are
boost-devel-1.34.1-13.fc9.i386
boost-devel-static-1.34.1-13.fc9.i386
boost-1.34.1-13.fc9.i386
kernel-2.6.25-0.163.rc7.git1.fc9.i686
gcc-4.3.0-5.i386

Mark

stevea
2008-03-30, 05:36 PM CDT
Welll, you got your hands on 4.3 - how is that working out for you ?
I wonder why that call it F9-BETA ? :rolleyes:

That doesn't look like an error due to GCC ,but an issue with the highly complex) declarations in boost. Can you post a minimal code snippet that reproduces this ? I imagine it's just the includes that cause the errors.

stevea
2008-03-30, 05:42 PM CDT
Looks similar
http://beta.boost.org/development/tests/trunk/developer/output/jrp-gcc4-4-0-boost-bin-v2-libs-date_time-test-testlocal_time_input_facet-test-gcc-4-4-0-debug.html

Boost 1.35.0 (the current release, released today) has only been tested up to gcc 4.2.1 !

1.34.1 was tested against ...
GCC C++ "3.2.x., 3.3.x, 3.4.x, 4.0.x, 4.1.x on Linux"

stevea
2008-03-30, 06:06 PM CDT
This may be the fix.

http://svn.boost.org/trac/boost/ticket/1615

It's a new 2/2/08 patch suggested against 1.35.0

marko
2008-03-30, 07:05 PM CDT
Welll, you got your hands on 4.3 - how is that working out for you ?[/COLOR]


I manually typed in the fix to boost/date_time/tz_db_base.hpp, it works
fine now.


//typedef dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets;
typedef boost::date_time::dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets;


Mark