From owner-freebsd-mips@FreeBSD.ORG Sat Apr 7 06:10:45 2012 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95B40106564A; Sat, 7 Apr 2012 06:10:45 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4B3888FC12; Sat, 7 Apr 2012 06:10:44 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so2677123wgb.31 for ; Fri, 06 Apr 2012 23:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2kdENQ4Nrm0gIwiMP/QMPS3HsmCc1Cxar30gyqDBTgQ=; b=NwxIp2/Ha1/6321P78crSRl9Co+nG9FT97gfTXK15Yum52KHjy5RGi3X1hW0AhgbI2 YZ7TBRi4i3I+MdDeMoSgn8JCDVTxUhEqjHWriSOFFQZGrjxAvhoRqDJfFyv/si81MN1N uiwvfbwvgvzvhOA+E5eyoXKJ6XrCI+1VZ7qEwvTYy6hZLKgq1ZuPCsy57IYEsS7EWXb3 /Fywcxi4K5lRjXam25lePSbORgqCvVZ1F93B105LvyYKlfhiBJHczh6hUTyw2YzchfOQ +GAS99w4DlMuTdetAGYESfGDYOIJdqloopNOEK+BeHKiwMXau22HXn58S8hENMxjspMw 4BOw== MIME-Version: 1.0 Received: by 10.216.132.30 with SMTP id n30mr286750wei.52.1333779043268; Fri, 06 Apr 2012 23:10:43 -0700 (PDT) Received: by 10.216.62.81 with HTTP; Fri, 6 Apr 2012 23:10:43 -0700 (PDT) In-Reply-To: <20120406135447.6ca86bd9.stas@FreeBSD.org> References: <20120405142423.90d48b27.stas@FreeBSD.org> <036C5A57-2B63-40C1-A0DA-0678B7BF29F8@freebsd.org> <20120406135447.6ca86bd9.stas@FreeBSD.org> Date: Sat, 7 Apr 2012 11:40:43 +0530 Message-ID: From: "Jayachandran C." To: Stanislav Sedov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , mips@freebsd.org, current@freebsd.org, Garrett Cooper , FreeBSD Tinderbox Subject: Re: There is a known problem with MIPS tinderbox. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2012 06:10:45 -0000 2012/4/7 Stanislav Sedov : > On Fri, 6 Apr 2012 13:08:12 +0530 > "Jayachandran C." mentioned: > >> On Fri, Apr 6, 2012 at 12:01 PM, Stanislav Sedov 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.