Package: libcrypto++
Version: 5.2.1c2-5
Severity: serious
Tags: patch
Hello,
libcrypto++ FTBFS on arm, m68k and hppa due to GCC 4 giving an
Internal Compiler Error there. Using -O1 or -O0 does not help, so the
workaround is to compile with g++-3.4 on those architectures (this is
possible because the C++ ABIs of 3.4 and 4.0 are compatible).
A patch is attached (build tested on paer). If needed, I can upload
myself.
Cheers,
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
Listening to: Ana Belén - Peces de ciudad
A lie can go round the world before the truth has got its boots on.
-- Terry Pratchett
diff -u -rua libcrypto++-5.2.1c2.orig/debian/control
libcrypto++-5.2.1c2/debian/control
--- libcrypto++-5.2.1c2.orig/debian/control 2005-09-18 16:14:31.000000000
+0200
+++ libcrypto++-5.2.1c2/debian/control 2005-09-18 16:14:16.000000000 +0200
@@ -4,7 +4,7 @@
Maintainer: Jens Peter Secher <[EMAIL PROTECTED]>
Uploaders: Pierre Machard <[EMAIL PROTECTED]>
Standards-Version: 3.6.2
-Build-Depends: debhelper (>= 4), automake1.9, autoconf, libtool, dpatch
+Build-Depends: g++-3.4 [arm m68k hppa], debhelper (>= 4), automake1.9,
autoconf, libtool, dpatch
Build-Depends-Indep: doxygen
Package: libcrypto++5.2c2
diff -u -rua libcrypto++-5.2.1c2.orig/debian/rules
libcrypto++-5.2.1c2/debian/rules
--- libcrypto++-5.2.1c2.orig/debian/rules 2005-09-18 16:14:31.000000000
+0200
+++ libcrypto++-5.2.1c2/debian/rules 2005-09-18 16:14:13.000000000 +0200
@@ -36,6 +36,16 @@
cflags += -ffunction-sections
endif
+# gcc4 ICEs on some arches
+GCC4_ICES_HERE := arm m68k hppa
+DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),$(GCC4_ICES_HERE)))
+ export CC=gcc-3.4
+ export CPP=cpp-3.4
+ export CXX=g++-3.4
+endif
+
autotools_input := configure.ac Makefile.am config.h.in
autoclean: