Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2012 13:54:47 -0700
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        "Jayachandran C." <c.jayachandran@gmail.com>
Cc:        Doug Barton <dougb@freebsd.org>, mips@freebsd.org, current@freebsd.org, Garrett Cooper <yanegomi@gmail.com>, FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject:   Re: There is a known problem with MIPS tinderbox.
Message-ID:  <20120406135447.6ca86bd9.stas@FreeBSD.org>
In-Reply-To: <CA%2B7sy7BLpd-c54OU%2BuyJmETgcjvtDUGeHDB3_xoA5gyNiBPsTA@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120406135447.6ca86bd9.stas>