From owner-freebsd-tinderbox@FreeBSD.ORG Fri Apr 6 20:57:17 2012 Return-Path: Delivered-To: tinderbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1AE71065670; Fri, 6 Apr 2012 20:57:17 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0492E8FC17; Fri, 6 Apr 2012 20:57:17 +0000 (UTC) Received: from orion.swifttest.com (unknown [74.3.97.52]) by mx0.deglitch.com (Postfix) with ESMTPA id 9A65C8FC27; Sat, 7 Apr 2012 00:57:15 +0400 (MSK) Received: from orion.swifttest.com (localhost [127.0.0.1]) by orion.swifttest.com (Postfix) with SMTP id 1A2875C98; Fri, 6 Apr 2012 13:54:47 -0700 (PDT) Date: Fri, 6 Apr 2012 13:54:47 -0700 From: Stanislav Sedov To: "Jayachandran C." Message-Id: <20120406135447.6ca86bd9.stas@FreeBSD.org> In-Reply-To: References: <20120405142423.90d48b27.stas@FreeBSD.org> <036C5A57-2B63-40C1-A0DA-0678B7BF29F8@freebsd.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , mips@freebsd.org, current@freebsd.org, Juli Mallett , Stanislav Sedov , Garrett Cooper , FreeBSD Tinderbox Subject: Re: There is a known problem with MIPS tinderbox. X-BeenThere: freebsd-tinderbox@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Tinderbox reports, responses, and meta-comments" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 20:57:17 -0000 On Fri, 6 Apr 2012 13:08:12 +0530 "Jayachandran C." mentioned: > On Fri, Apr 6, 2012 at 12:01 PM, Stanislav Sedov wrote: > > > > On Apr 5, 2012, at 11:08 PM, Jayachandran C. wrote: > >> > >> > >> The asn1 library has a export map containing 'global: *', this exports > >> two symbols _fdata and _ftext versioned. =9AWhen 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. =9AWhat I'm also trying right now is to add a version map to the > > libkafs -- this might help binutils to link it properly as well. =9AIf = it > > fails, we can try adding a proper one for libasn1. >=20 > The libasn1 workaround is here: > http://people.freebsd.org/~jchandra/libasn1.diff >=20 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. Index: kerberos5/lib/libkafs5/version.map =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kerberos5/lib/libkafs5/version.map (revision 0) +++ kerberos5/lib/libkafs5/version.map (revision 0) @@ -0,0 +1,19 @@ +HEIMDAL_KAFS5_1.0 { + global: + k_afs_cell_of_file; + k_hasafs; + k_hasafs_recheck; + k_pioctl; + k_setpag; + k_unlog; + kafs_set_verbose; + kafs_settoken5; + kafs_settoken_rxkad; + krb5_afslog; + krb5_afslog_home; + krb5_afslog_uid; + krb5_afslog_uid_home; + krb5_realm_of_cell; + local: + *; +}; Index: kerberos5/lib/libkafs5/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kerberos5/lib/libkafs5/Makefile (revision 233932) +++ kerberos5/lib/libkafs5/Makefile (working copy) @@ -1,20 +1,13 @@ # $FreeBSD$ =20 LIB=3D kafs5 -LDADD=3D -lasn1 -lroken +LDADD=3D -lasn1 -lroken -lkrb5 +LDFLAGS=3D -Wl,--no-undefined DPADD=3D ${LIBASN1} ${LIBKRB5} ${LIBROKEN} INCS=3D kafs.h MAN=3D kafs5.3 +VERSION_MAP=3D ${.CURDIR}/version.map =20 -# -# Linking with libkrb5 uncovers a bug in binutils. -# See http://repo.or.cz/w/binutils.git/commit/ee05170bf71819c99cb5a36a4473= 5c231ae03c56 . -# -.if ${MACHINE} !=3D "mips" -LDADD+=3D -lkrb5 -LDFLAGS=3D -Wl,--no-undefined -.endif - MLINKS=3D kafs5.3 k_afs_cell_of_file.3 \ kafs5.3 k_hasafs.3 \ kafs5.3 k_pioctl.3 \ --=20 Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail=20 /\ www.asciiribbon.org - against proprietary attachments