Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2010 12:38:10 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Beat Gaetzi <beat@FreeBSD.org>
Cc:        gecko@FreeBSD.org
Subject:   Re: thunderbird and gcc44 (again)
Message-ID:  <4C8DF102.407@icyb.net.ua>
In-Reply-To: <4C8DEF2B.2040605@FreeBSD.org>
References:  <4C8DD187.2070309@icyb.net.ua> <4C8DEF2B.2040605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on 13/09/2010 12:30 Beat Gaetzi said the following:
> Hi,
> 
> On 13.09.2010 09:23, Andriy Gapon wrote:
>>
>> Big thanks to all who made it possible for gecko ports to be buildable with
>> gcc44+ almost without any issues!
>>
>> About 'almost' - it seems that thunderbird port still requires one small patch,
>> which is needed for dlopen(3) definition.  The patch should be an effective NOP
>> for base gcc.
> 
> Thanks for the patch. Have you applied some other modifications to the
> Thunderbird ports? With your patch I run into a linker error when
> compiling Thunderbird 3.0.7 and 3.1.3 with GCC 4.4.

Oh, yes.  Do you get undefined symbols that should come either from libthr or libc?
I had to dump gcc44 specs file (-dumpspecs), then find a line that defines
pthread option expansion and add shared clause the same as !shared clause there.
And then I modified make.conf to use the new specs file for gcc44:
CFLAGS+=	-specs=/home/avg/devel/gcc/gcc44.specs

This is a problem that upstream GCC has incorrect specs for -pthread option.

To better see what I mean do:
$ gcc -dumpspecs | fgrep -w pthread
and
$ gcc44 -dumpspecs | fgrep -w pthread

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C8DF102.407>