Thunderbird, enigmail, and GCC 3.4

Coleman Kane cokane at FreeBSD.org
Tue Apr 22 13:09:12 UTC 2008


On Mon, 2008-04-21 at 15:05 -0700, Xin LI wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi, Coleman,
> 
> Finally I caught the issue for thunderbird.  It was due to the
> difference between our floating point handling and Linux's counterpart.
> ~ The patch attached would fix the problem at thunderbird part.
> 
> Unfortunately enigmail plugin compiled with gcc 4.x as shipped with
> FreeBSD 7.0+ would still crash with Signal 11, but with gcc 3.4 it would
> work fine.  I have not yet figured out why this would happen...
> 
> Cheers,
> - --
> Xin LI <delphij at delphij.net>	http://www.delphij.net/
> FreeBSD - The Power to Serve!
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.8 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEUEARECAAYFAkgND6wACgkQi+vbBBjt66D0awCY4lzwwwmAaOLuoGEVo9OEHI8u
> ZwCfUi2KfOWUR3GFFCSiba6g5YK/sjg=
> =wLNg
> -----END PGP SIGNATURE-----
> plain text document attachment (thunderbird.diff)
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/mail/thunderbird/Makefile,v
> retrieving revision 1.90
> diff -u -p -r1.90 Makefile
> --- Makefile	19 Apr 2008 17:51:46 -0000	1.90
> +++ Makefile	21 Apr 2008 21:58:18 -0000
> @@ -8,7 +8,7 @@
>  
>  PORTNAME=	thunderbird
>  DISTVERSION=	2.0.0.12
> -PORTREVISION=	2
> +PORTREVISION=	3
>  CATEGORIES=	mail ipv6
>  MASTER_SITES=	${MASTER_SITE_MOZILLA_EXTENDED}
>  MASTER_SITE_SUBDIR=	thunderbird/releases/${DISTVERSION}/source
> Index: files/patch-Double.cpp
> ===================================================================
> RCS file: /home/ncvs/ports/mail/thunderbird/files/patch-Double.cpp,v
> retrieving revision 1.2
> diff -u -p -r1.2 patch-Double.cpp
> --- files/patch-Double.cpp	16 Nov 2003 18:55:33 -0000	1.2
> +++ files/patch-Double.cpp	21 Apr 2008 21:05:06 -0000
> @@ -1,20 +1,20 @@
> ---- extensions/transformiix/source/base/Double.cpp.orig	Thu Jan 30 09:26:46 2003
> -+++ extensions/transformiix/source/base/Double.cpp	Sun Nov 16 01:46:42 2003
> -@@ -51,10 +51,10 @@
> +--- extensions/transformiix/source/base/Double.cpp.orig	2006-06-22 12:13:00.000000000 -0700
> ++++ extensions/transformiix/source/base/Double.cpp	2008-04-21 14:04:37.540570448 -0700
> +@@ -52,10 +52,10 @@
>   //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
>   #ifdef __FreeBSD__
>   #include <ieeefp.h>
>  -#ifdef __alpha__
>  -fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
>  -#else
> -+#if defined(__i386__)
> ++#if defined(__i386__) || defined(__amd64__)
>   fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML;
>  +#else
>  +fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
>   #endif
>   fp_except_t oldmask = fpsetmask(~allmask);
>   #endif
> -@@ -75,22 +75,31 @@
> +@@ -115,22 +115,31 @@
>   #define TX_DOUBLE_HI32_EXPMASK   0x7ff00000
>   #define TX_DOUBLE_HI32_MANTMASK  0x000fffff

Hi Xin Li,

I am only now coming into this (and it seems that a significant number
of people have already reported on it). I can confirm that I've tried TB
and Enigmail from ports, and ever since around the time that 2.0.0.12
was brought in, I cannot get enigmail to work no matter what combination
of USE_GCC I have between mail/thunderbird and
mail/enigmail-thunderbird. I am using 8.0-CURRENT as of about four days
ago (just after sos@ imported the last of the sys/dev/ata fixes).

Since that time, I have managed to bring in some fixes to devel/glib20
that fix the shared-object module loading that used to make evolution
take 10 minutes to start up (seriously!). In addition, I sent some fixes
over to the seahorse crowd (and committed them to our seahorse port) to
fix breakage when using seahorse-agent w/ GnuPG. This allowed me to
finally use Evolution+GnuPG together.

I'll try the patch below on enigmail w/ TB to see if it fixes the
breakage in enigmail-tb for me now... but I may take a couple days time
getting reports back to you.

-- 
Coleman Kane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080422/7e4ff9b7/attachment.pgp


More information about the freebsd-ports mailing list