Bug#505669: Causes FTBFS with GCC 4.4: gcc 4.4 not supported
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) */
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: