problem detecting gcc version 4.3 prerelease, which is default version with Suse 11.0

Hi,
when running configure on orocos-rtt-1.6.0, I got
{{{
ERROR: You seem to be using gcc version:
4.3

CMake Error at config/global_setup.cmake:41 (MESSAGE):
ERROR: For gcc, Orocos requires version 4.x or 3.x
}}}

This is because gcc 4.3.1 (prerelease), the default with SUSE 11.0, provides 4.3 to -dumpversion, instead of 4.3.x
{{{
daniel@linux-i8nx:~/deps/orocos/orocos-rtt-1.6.0-boost-test/build> g++ --version
g++ (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

daniel@linux-i8nx:~/deps/orocos/orocos-rtt-1.6.0-boost-test/build> g++ -dumpversion
4.3
}}}

The problem is at config/global_setup.cmake, because it checks CXX_VERSION MATCHES "4\\.[0-9]\\.[0-9]". I tried, to make the minor number optional, but didn't succeed

problem detecting gcc version 4.3 prerelease, which is default v

On Tuesday 23 December 2008 11:38:18 orocos [..] ... wrote:
> Hi,
> when running configure on orocos-rtt-1.6.0, I got
> {{{
> ERROR: You seem to be using gcc version:
> 4.3
>
> CMake Error at config/global_setup.cmake:41 (MESSAGE):
> ERROR: For gcc, Orocos requires version 4.x or 3.x
> }}}

Thanks for reporting. The patch in attachment will fix this.

cd orocos-rtt-1.6.0
patch -p1 < fix-gcc-on-suse-detection.patch

Peter

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm