Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2012 11:40:43 +0530
From:      "Jayachandran C." <c.jayachandran@gmail.com>
To:        Stanislav Sedov <stas@freebsd.org>
Cc:        Doug Barton <dougb@freebsd.org>, mips@freebsd.org, current@freebsd.org, Juli Mallett <jmallett@freebsd.org>, Garrett Cooper <yanegomi@gmail.com>, FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject:   Re: There is a known problem with MIPS tinderbox.
Message-ID:  <CA%2B7sy7CFiffrYP0jwjB=_-iFAptCCVsn8MQuRzLG47Uv%2BV%2B7Eg@mail.gmail.com>
In-Reply-To: <20120406135447.6ca86bd9.stas@FreeBSD.org>
References:  <CACVs6=_kNJQZLouh6b%2BW9Ktj-CUFyeg7MVhas1qzoLGymJL7Kg@mail.gmail.com> <20120405142423.90d48b27.stas@FreeBSD.org> <CA%2B7sy7BwFQxUaHJsom36xGJXO9rd71%2BuERFcxcR4dUGkbwgNjA@mail.gmail.com> <036C5A57-2B63-40C1-A0DA-0678B7BF29F8@freebsd.org> <CA%2B7sy7BLpd-c54OU%2BuyJmETgcjvtDUGeHDB3_xoA5gyNiBPsTA@mail.gmail.com> <20120406135447.6ca86bd9.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2012/4/7 Stanislav Sedov <stas@freebsd.org>:
> On Fri, 6 Apr 2012 13:08:12 +0530
> "Jayachandran C." <c.jayachandran@gmail.com> mentioned:
>
>> On Fri, Apr 6, 2012 at 12:01 PM, Stanislav Sedov <stas@freebsd.org> wrot=
e:
>> >
>> > On Apr 5, 2012, at 11:08 PM, Jayachandran C. wrote:
>> >>
>> >>
>> >> The asn1 library has a export map containing 'global: *', this export=
s
>> >> two symbols _fdata and _ftext versioned. =A0When libkafs5 is linked,
>> >> these symbols confuse the bfd code and the entries corresponding to
>> >> theses (index 13, and 16) are left un-initialized.
>> >>
>> >> One workaround I see is to change the export 'global: *' in
>> >> kerberos5/lib/libasn1 to the actual list of exported symbols.
>> >>
>> >
>> > Thanks. =A0What I'm also trying right now is to add a version map to t=
he
>> > libkafs -- this might help binutils to link it properly as well. =A0If=
 it
>> > fails, we can try adding a proper one for libasn1.
>>
>> The libasn1 workaround is here:
>> http://people.freebsd.org/~jchandra/libasn1.diff
>>
>
> Thanks!
>
> My idea of adding a version map to libkafs worked as well.
> Can you, please, test if it fixes the issue for you?
> It seems to be a less complicated way to solve it.

I would still suggest the asn1 change if we are doing a temporary fix, beca=
use:
- It does not add any new symbol versioning, it just converts the
'global: *' to an explicit list of symbols.
- there are other libraries lined to asn1 which may have the same
issue as libkafs5 (I haven't really looked at this.

The only downside I see is that libasn1 has a lot of symbols.

JC.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7sy7CFiffrYP0jwjB=_-iFAptCCVsn8MQuRzLG47Uv%2BV%2B7Eg>