Re: There is a known problem with MIPS tinderbox.

From: Stanislav Sedov <stas_at_FreeBSD.org>
Date: Fri, 6 Apr 2012 13:54:47 -0700
On Fri, 6 Apr 2012 13:08:12 +0530
"Jayachandran C." <c.jayachandran_at_gmail.com> mentioned:

> On Fri, Apr 6, 2012 at 12:01 PM, Stanislav Sedov <stas_at_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. šWhen 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. šWhat 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. šIf 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.

Index: kerberos5/lib/libkafs5/version.map
===================================================================
--- kerberos5/lib/libkafs5/version.map	(revision 0)
+++ kerberos5/lib/libkafs5/version.map	(revision 0)
_at__at_ -0,0 +1,19 _at__at_
+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
===================================================================
--- kerberos5/lib/libkafs5/Makefile	(revision 233932)
+++ kerberos5/lib/libkafs5/Makefile	(working copy)
_at__at_ -1,20 +1,13 _at__at_
 # $FreeBSD$
 
 LIB=	kafs5
-LDADD=	-lasn1 -lroken
+LDADD=	-lasn1 -lroken -lkrb5
+LDFLAGS=	-Wl,--no-undefined
 DPADD=	${LIBASN1} ${LIBKRB5} ${LIBROKEN}
 INCS=	kafs.h
 MAN=	kafs5.3
+VERSION_MAP=	${.CURDIR}/version.map
 
-#
-# Linking with libkrb5 uncovers a bug in binutils.
-# See http://repo.or.cz/w/binutils.git/commit/ee05170bf71819c99cb5a36a44735c231ae03c56 .
-#
-.if ${MACHINE} != "mips"
-LDADD+=	-lkrb5
-LDFLAGS=	-Wl,--no-undefined
-.endif
-
 MLINKS=	kafs5.3 k_afs_cell_of_file.3 \
 	kafs5.3 k_hasafs.3 \
 	kafs5.3 k_pioctl.3 \


-- 
Stanislav Sedov
ST4096-RIPE

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
Received on Fri Apr 06 2012 - 18:57:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC