[Bug 479659] New: boost: broken /usr/include/boost/function/function_template.hpp
https://bugzilla.novell.com/show_bug.cgi?id=479659 Summary: boost: broken /usr/include/boost/function/function_template.hpp Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: All Status: NEW Severity: Critical Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: pmladek@novell.com QAContact: qa@suse.de Found By: Development Created an attachment (id=275453) --> (https://bugzilla.novell.com/attachment.cgi?id=275453) test file (boost-no-exception-test.cxx) There seems to #endif on invalid line in /usr/include/boost/function/function_template.hpp. You could reproduce the problem with the attached sample code: --- cut --- $> g++ -DBOOST_NO_EXCEPTIONS=1 -c boost-no-exception-test.cxx In file included from /usr/include/boost/function/detail/maybe_include.hpp:13, from /usr/include/boost/function/detail/function_iterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:47, from /usr/include/boost/function.hpp:64, from boost-no-exception-test.cxx:1: /usr/include/boost/function/function_template.hpp:965: error: declaration of ‘class R’ /usr/include/boost/function/function_template.hpp:652: error: shadows template parm ‘class R’ /usr/include/boost/function/function_template.hpp:979: error: declaration of ‘class R’ /usr/include/boost/function/function_template.hpp:652: error: shadows template parm ‘class R’ /usr/include/boost/function/function_template.hpp:983: error: invalid use of incomplete type ‘class boost::function0<R>’ /usr/include/boost/function/function_template.hpp:667: error: declaration of ‘class boost::function0<R>’ /usr/include/boost/function/function_template.hpp:994: error: declaration of ‘class R’ /usr/include/boost/function/function_template.hpp:652: error: shadows template parm ‘class R’ /usr/include/boost/function/function_template.hpp:1000: error: ‘void boost::function0<R>::operator==(const boost::function0<R>&, const boost::function0<R>&)’ must take exactly one argument /usr/include/boost/function/function_template.hpp:1001: error: declaration of ‘class R’ /usr/include/boost/function/function_template.hpp:652: error: shadows template parm ‘class R’ /usr/include/boost/function/function_template.hpp:1007: error: ‘void boost::function0<R>::operator!=(const boost::function0<R>&, const boost::function0<R>&)’ must take exactly one argument /usr/include/boost/function/function_template.hpp:1017: error: declaration of ‘class R’ /usr/include/boost/function/function_template.hpp:652: error: shadows template parm ‘class R’ /usr/include/boost/function/function_template.hpp:1025: error: ‘struct boost::function<R ()()>::clear_type’ redeclared with different access /usr/include/boost/function/function_template.hpp:1098: error: ‘class boost::function<R ()()>’ redeclared with different access In file included from /usr/include/boost/function/detail/maybe_include.hpp:18, from /usr/include/boost/function/detail/function_iterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:52, from /usr/include/boost/function.hpp:64, from boost-no-exception-test.cxx:1: /usr/include/boost/function/function_template.hpp:80: error: expected unqualified-id before ‘namespace’ boost-no-exception-test.cxx:6: error: expected `}' at end of input --- cut --- I'll attach a patch the fixed the problem for me. As a workaround, I could build the affected files with exceptions. I am not sure how many makefiles I would need to update. So, it would be better if you could fix the package ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c1 --- Comment #1 from Petr Mladek <pmladek@novell.com> 2009-02-25 12:17:14 MST --- Created an attachment (id=275455) --> (https://bugzilla.novell.com/attachment.cgi?id=275455) Proposed fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c2 --- Comment #2 from Petr Mladek <pmladek@novell.com> 2009-02-25 12:18:42 MST --- Just a note: I found this during the OpenOffice.org compilation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c3 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Philipp Thomas <pth@novell.com> 2009-02-26 06:28:49 MST --- That patch is wrong. The second '#if !defined' needs to move down just before the catch clause. This is also fix you'll find in the boost bug tracker https://svn.boost.org/trac/boost/attachment/ticket/2469/Fix.patch and which I'm checking in. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c4 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #4 from Philipp Thomas <pth@novell.com> 2009-02-26 06:48:30 MST --- Fixed package submitted to STABLE. Please check when the packages become available and mark as verified or reopen the bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c5 --- Comment #5 from Petr Mladek <pmladek@novell.com> 2009-02-26 07:52:28 MST --- Than a lot for quick and correct fix! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c6 --- Comment #6 from Petr Mladek <pmladek@novell.com> 2009-03-04 06:10:59 MST --- Hmm, the fixed boost is still not available because the build failed in factory. I am not sure if the bug is in boost or somewhere else :-/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=479659 User pth@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479659#c7 --- Comment #7 from Philipp Thomas <pth@novell.com> 2009-03-04 07:15:43 MST --- The fixed package was checked in today, I had made an error in the documentation handling. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com