cmath include broken in lsb-build-base3

Bug #424244 reported by Ole Henry Halvorsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb-build-base3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Found on: Ubuntu 9.04 Server x86_64

Steps to reproduce:

#include <cmath>

int main(int argc, char *argv[])
{
    return 0;
}

# lsbc++ test.cpp
In file included from /usr/include/lsb3/c++/cmath:50,
                 from test.cpp:1:
/usr/include/lsb3/c++/bits/cpp_type_traits.h:334: error: expected identifier before ‘__is_pod’
/usr/include/lsb3/c++/bits/cpp_type_traits.h:334: error: expected unqualified-id before ‘__is_pod’

Other toolsets are fine:

# g++-4.1 test.cpp
# g++-4.2 test.cpp
# g++-4.3 test.cpp

Thanks.

Revision history for this message
Ole Henry Halvorsen (ole-xymos) wrote :

Looking into it some more it appears that LSB 3.2 does not support or play well with GCC 4.3, the solution is to install gcc-4.1 then set LSBCC and LSBCXX environment variables so it will be used instead when invoking lsbc++.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.