Source: kadu Version: 0.10.0-3 Severity: normal Wrong stripping of Werror breaks compilation when using a Werror=... flag.
plugins/mime_tex/mimetex/CMakeLists.txt contains this:
# Original mimetex has a lot of compilation warnings. We have to remove
# -Werror to let it build even though there are warnings.
STRING(REPLACE "-Werror" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
This removes the Werror from Werror=somevalue flags possible in gcc 4.6
leading to a build failure later on (log stripped a bit):
[ 86%] Building C object
plugins/mime_tex/mimetex/CMakeFiles/mimetex.dir/mimetex.c.o
cd /tmp/kadu-0.10.0/build-dir/plugins/mime_tex/mimetex &&
/usr/lib/ccache/gcc -Wall -Wextra -Wstrict-aliasing=2 -Wall -Wextra
-Wstrict-aliasing=2 -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Wformat-security =format-security
-O2 -DNDEBUG [...]
gcc: error: =format-security: No such file or directory
note the stripped -Werror "-Wformat-security =format-security"
See also the full buildlog in ubuntu:
https://launchpadlibrarian.net/83147020/buildlog_ubuntu-precise-i386.kadu_0.10.0-1_FAILEDTOBUILD.txt.gz
To reproduce this particular failure add the following to debian/rules [0]:
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
[0] http://lists.debian.org/debian-devel-announce/2011/09/msg00001.html
signature.asc
Description: OpenPGP digital signature

