• Bug#265533: lyx: FTBFS with gcc-3.4: `out_of_range_bit' undeclared (fir

    From Andreas Jochens@1:229/2 to All on Fri Aug 13 17:40:09 2004
    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/
  • From Erinn Clark@1:229/2 to All on Fri Aug 13 21:00:23 2004
    From: [email protected]

    * Andreas Jochens <[email protected]> [2004:08:13 17:26 +0200]:
    With the attached patch 'lyx' can be compiled using gcc-3.4.
    <snip>

    Hi Andreas,

    Thanks a lot for the patch. I'll apply it and do some testing, and if I see
    no problems, it will be included in the next upload.

    --
    off the chain like a rebellious guanine nucleotide


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)