Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15401 - [boost] 1.37.0-1 still has buggy header (solution known since 2008)

Attached to Project: Arch Linux
Opened by Sven Nguyen Van (snv) - Monday, 06 July 2009, 13:18 GMT
Last edited by Allan McRae (Allan) - Tuesday, 14 July 2009, 05:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The header file /usr/include/boost/date_time/tz_db_base.hpp stops compilation, because of a namespace problem

To fix it you only have to change line 161 from:
typedef dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets;
to
typedef boost::date_time::dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets;

Steps to reproduce:
just install and compile on gcc4
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 14 July 2009, 05:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.39.0
Comment by Roman Kyrylych (Romashka) - Monday, 06 July 2009, 14:36 GMT
try boost 1.39.0-1 from testing
Comment by Sven Nguyen Van (snv) - Monday, 06 July 2009, 20:34 GMT
tried that of course, did not compile (will tackle that another time independently).
But that does not matter; 1.39 does not seem polished enough for me, and in our project we develope against 1.37 (currently)
Comment by Roman Kyrylych (Romashka) - Monday, 06 July 2009, 20:37 GMT
well, since we have 1.39 now - it makes sense to fix that version, not 1.37 (which will be replaced very soon).
Comment by Sven Nguyen Van (snv) - Monday, 06 July 2009, 20:51 GMT
when 1.39 builds correctly i would not mind, but it still is in testing and it's not as if fixing 1.37 is lots of work. Just changing one line in the repo.
Comment by Allan McRae (Allan) - Monday, 06 July 2009, 22:56 GMT
This bug report is really unclear... what does this stop compiling? Also, this should be reported upstream. If such a minor fix had been known since 2008, I am very surprised it has not made it into a release.
Comment by Sven Nguyen Van (snv) - Tuesday, 07 July 2009, 00:31 GMT
Ok, with the unaltered, freshly installed file i get the following error:
In file included from /usr/include/boost/date_time/local_time/tz_database.hpp:14,
from /usr/include/boost/date_time/local_time/local_time.hpp:19,
from /usr/include/boost/date_time.hpp:15,
from src/main.cpp:10:
/usr/include/boost/date_time/tz_db_base.hpp:161: Fehler: Deklaration von »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: Fehler: verändert die Bedeutung von »dst_adjustment_offsets« von »class boost::date_time::dst_adjustment_offsets<typename time_zone_type::time_duration_type>«
make: *** [main] Fehler 1

Which would be very roughly translated as: Error at line 161: Declaration of "typedef class ..." changes the meaning of "dst_adjustment_offsets" of "class..." (formerly declared at line 76)

It actually has been known for far longer than a year, see: http://forums.fedoraforum.org/showpost.php?p=1103082&postcount=6

There even was a patch in arch's svn : http://repos.archlinux.org/viewvc.cgi/boost/repos/extra-i686/ but it does not get installed by a regular boost install.
Comment by Allan McRae (Allan) - Tuesday, 07 July 2009, 02:01 GMT
This is fixed in boost from [testing]. Given that will replace the package in [extra] soon, the old package will not be patched.

Loading...