tags 599127 squeeze
thanks

Hi Thomas,

Am Sonntag 24 April 2011 17:43:30 schrieb Thomas Goirand:
> On 04/24/2011 07:44 PM, Gert Michael Kulyk wrote:
> > Hi,
> >
> > after a couple of months this bug still is present in sid, so I thought
> > things would speed up a bit providing a patch. Here it is.
>
> Thanks for this patch.
>
> What I'm waiting, is the release of Natty, as I will work together with
> the Ubuntu maintainer on libdbi. We want to have the same package, and
> keep in synch, which is why I was waiting for the end of this week. We
> will work on it right after the release (and there's quite some work to
> do on it).
>
> In the mean while, I'm done with Nova (openstack compute) packaging, and
> will soon upload it to SID! :)

Note that this issue also affects Squeeze: Only the binary package currently 
present in Squeeze is not affected by this issue, since it's very old 
(uploaded in 2007) and was built with an older toolchain, but the bug is 
still present within the source:

You can reproduce this yourself: If you recompile libdbi/0.8.2-3 within 
Squeeze with the Squeeze toolchain, gammu fails to run it's test suite. I.e., 
this affects everyone rebuilding the package and all newer architectures, 
which do not have old binary packages available.

I noticed this when analysing build failures for Univention Corporate Server, 
a Debian derived distribution based on Debian stable (currently Lenny, our 
next release will be based on Squeeze).

I've verified that rebuilding libdbi/Squeeze with the attached patch (same as 
Gert's, but for Squeeze) fixes the test suite failures for gammu/Squeeze.
It would be nice if this were fixed in a point update.

Cheers,
Moritz
-- 
Moritz Mühlenhoff                         muehlenh...@univention.de
Open Source Software Engineer and Consultant
Univention GmbH  Linux for Your Business     fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen          fax: +49 421 22 232-99
http://www.univention.de
GCC miscompiles libdbi when compiled with the standard compiler from Squeeze
or later, which results in errors in other packages such as gammu.

Debian Bug #599127

diff -Naur libdbi-0.8.2.orig//configure libdbi-0.8.2/configure
--- libdbi-0.8.2.orig//configure	2007-02-14 23:51:14.000000000 +0100
+++ libdbi-0.8.2/configure	2011-02-16 01:28:53.000000000 +0100
@@ -19257,8 +19257,8 @@
         case $host in
         *-*-linux*)
                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
-                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";;
+                CFLAGS="-D_REENTRANT -fsigned-char -std=gnu99"
+                PROFILE="-pg -g -D_REENTRANT -fsigned-char -std=gnu99";;
         sparc-sun-*)
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"
                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"
diff -Naur libdbi-0.8.2.orig//configure.in libdbi-0.8.2/configure.in
--- libdbi-0.8.2.orig//configure.in	2007-02-14 23:51:02.000000000 +0100
+++ libdbi-0.8.2/configure.in	2011-02-16 01:28:53.000000000 +0100
@@ -55,8 +55,8 @@
         case $host in
         *-*-linux*)
                 DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
-                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
-                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";;
+                CFLAGS="-D_REENTRANT -fsigned-char -std=gnu99"
+                PROFILE="-pg -g -D_REENTRANT -fsigned-char -std=gnu99";;
         sparc-sun-*)
                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"
                 CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"

Reply via email to