[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#505669: Causes FTBFS with GCC 4.4: gcc 4.4 not supported



retitle 505669 [fixed for 3.1, cws gcc44] Causes FTBFS with GCC 4.4: gcc 4.4 not supported
thanks

Martin Michlmayr wrote:
> Package: openoffice.org-dev
> Version: 1:2.4.1-12
> User: debian-gcc@lists.debian.org
> Usertags: ftbfs-gcc-4.4
>  
> What is needed to get GCC 4.4 supported in openoffice.org-dev?
> 
> FWIW, openoffice.org-voikko builds fine with the patch below:
> 
> > Automatic build of openoffice.org-voikko_2.2-4 on em64t by sbuild/amd64 0.53
> ...
> > mkdir -p build/src
> > gcc -c -O -fpic -O2 -Wall -Wno-non-virtual-dtor -Werror -fno-strict-aliasing -Ibuild/hpp -I/usr/lib/openoffice/sdk/include/stl -I/usr/lib/openoffice/sdk/include -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.4.0/../../../../include/c++/4.4.0  -obuild/src/registry.o src/registry.cxx
> > In file included from /usr/lib/openoffice/sdk/include/cppu/macros.hxx:42,
> >                  from build/hpp/com/sun/star/uno/Exception.hdl:13,
> >                  from build/hpp/com/sun/star/uno/RuntimeException.hdl:9,
> >                  from build/hpp/com/sun/star/uno/XComponentContext.hdl:9,
> >                  from build/hpp/com/sun/star/uno/XComponentContext.hpp:9,
> >                  from /usr/lib/openoffice/sdk/include/cppuhelper/factory.hxx:50,
> >                  from src/registry.cxx:19:
> > /usr/lib/openoffice/sdk/include/uno/lbnames.h:78:2: error: #error "Supported gcc majors are 2 , 3 and 4 <= 4.3.  Unsupported gcc major version."
> > make[1]: *** [build/src/registry.o] Error 1
> 
> --- /usr/lib/openoffice/sdk/include/uno/lbnames.h~	2008-11-14 05:06:27.000000000 -0500
> +++ /usr/lib/openoffice/sdk/include/uno/lbnames.h	2008-11-14 05:06:42.000000000 -0500
> @@ -70,12 +70,12 @@
>  #error "Tested gcc 2 versions are 2.91 and 2.95.  Patch uno/lbnames.h to try your gcc 2 version."
>  #elif (__GNUC__ == 3 && __GNUC_MINOR__ <= 4)
>  #define __CPPU_ENV gcc3
> -#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 3)
> +#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 4)
>  #define __CPPU_ENV gcc3
>  #elif (__GNUC__ == 3)
>  #error "Tested gcc 3 version is <= 3.4.  Patch uno/lbnames.h to try your gcc 3 version."
>  #else
> -#error "Supported gcc majors are 2 , 3 and 4 <= 4.3.  Unsupported gcc major version."
> +#error "Supported gcc majors are 2 , 3 and 4 <= 4.4.  Unsupported gcc major version."
>  #endif /* defined (__GNUC__) */
>  #endif /* defined (_MSC_VER) */

Applied the patch upstream.

Note that it will only fix the build of *other* packages using OOo
with gcc 4.4, but not OOo itself, it also needs #505597 fixed [1]

I'll close this bug with the upload including the above patch, though, since
its topic is not OOo FTBFSing but OOo causing FTBFSes.

Grüße/Regards,

René

[1] unless I use internal boost, which I don't want to unless absolutely
    necessary
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  rene@debian.org | GnuPG-Key ID: 248AEB73
   `-   Fingerprint: 41FA F208 28D4 7CA5 19BB  7AD9 F859 90B0 248A EB73




Reply to: