From:
[email protected]
Package: lyx
Severity: normal
Tags: patch
When building 'lyx' with gcc-3.4 I get the following error:
from ../../../src/mathed/formulamacro.C:20: ../../../boost/boost/config/compiler/gcc.hpp:57:7: warning: #warning "Unknown compiler version - please run the configure tests and report the results"
In file included from ../../../boost/boost/format.hpp:50,
from ../../../src/mathed/../BoostFormat.h:9,
from ../../../src/mathed/formulamacro.C:43: ../../../boost/boost/format/format_implementation.hpp: In member function `boost::basic_format<Ch, Tr>& boost::basic_format<charT, Traits>::clear_bind(int)':
../../../boost/boost/format/format_implementation.hpp:154: error: `out_of_range_bit' undeclared (first use this function)
../../../boost/boost/format/format_implementation.hpp:154: error: (Each undeclared identifier is reported only once for each function it appears in.)
In file included from ../../../src/mathed/formulamacro.C:43: ../../../src/mathed/../BoostFormat.h: At global scope: ../../../src/mathed/../BoostFormat.h:18: error: expected unqualified-id before ';' token
make[4]: *** [formulamacro.lo] Error 1
make[4]: Leaving directory `/lyx-1.3.4/build-tree-qt/src/mathed'
With the attached patch 'lyx' can be compiled using gcc-3.4.
Regards
Andreas Jochens
diff -urN ../tmp-orig/lyx-1.3.4/boost/boost/format/format_implementation.hpp ./boost/boost/format/format_implementation.hpp
--- ../tmp-orig/lyx-1.3.4/boost/boost/format/format_implementation.hpp 2002-11-21 19:33:01.000000000 +0100
+++ ./boost/boost/format/format_implementation.hpp 2004-08-13 15:36:14.000000000 +0200
@@ -151,7 +151,7 @@
{
if(argN<1 || argN > num_args_ || bound_.size()==0 || !bound_[argN-1] )
{
- if( exceptions() & out_of_range_bit )
+ if( exceptions() & io::out_of_range_bit )
boost::throw_exception(io::out_of_range()); // arg not in range.
else return *this;
}
diff -urN ../tmp-orig/lyx-1.3.4/src/BoostFormat.h ./src/BoostFormat.h
--- ../tmp-orig/lyx-1.3.4/src/BoostFormat.h 2002-11-25 20:44:44.000000000 +0100
+++ ./src/BoostFormat.h 2004-08-13 14:07:44.000000000 +0200
@@ -14,8 +14,8 @@
namespace boost
{
-extern
-template basic_format<char>;
+//extern
+//template basic_format<char>;
extern template
std::ostream &
diff -urN ../tmp-orig/lyx-1.3.4/src/frontends/controllers/ControlDialog.tmpl ./src/frontends/controllers/ControlDialog.tmpl
--- ../tmp-orig/lyx-1.3.4/