Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 1995 14:53:14 +0200 (MET DST)
From:      Remy.Card@masi.ibp.fr (Remy CARD)
To:        bde@zeta.org.au (Bruce Evans)
Cc:        hackers@FreeBSD.org, roberto@blaise.ibp.fr
Subject:   Re: Can't compile Lites 1.x on FreeBSD !! (fwd)
Message-ID:  <199504061253.OAA09106@hebe.ibp.fr>
In-Reply-To: <199504061155.VAA19233@godzilla.zeta.org.au> from "Bruce Evans" at Apr 6, 95 09:55:02 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> >I think we broke Lites with ld's changes from NetBSD. Lites doesn't run under
> >NetBSD either if I remember well.
> 
> >   ...
> >   kernfs_vnops.o: Undefined symbol `___divdi3' referenced from text segment
> >   ...
> >   nfs_nqlease.o: Undefined symbol `___udivdi3' referenced from text segment
> >   ...
> >   spec_vnops.o: Undefined symbol `___moddi3' referenced from text segment
> >   spec_vnops.o: Undefined symbol `___divdi3' referenced from text segment
> >   spec_vnops.o: Undefined symbol `___moddi3' referenced from text segment
> >   ufs_lookup.o: More undefined symbol ___udivdi3 refs follow
> 
> We took these out of libgcc.a.  They are in out libc.* and we don't want
> the static versions from libgcc.a.  I guess Lites depends on them being
> in libgcc.a.  The FreeBSD kernel gets them from libkern.a.

	I already told this about two or three weeks ago.  Lites depends on
the standard libgcc symbols and cannot be linked against libc, because this
may cause inclusion of Un*x functions which cannmot work in a kernel.  The
obvious solution to the problem was to link Lites against libkern but this
does not work now because libkern is not installed anymore in /usr/lib.

	BTW, FreeBSD-current is no longer a working environment for Lites.  It
seems that the changes made in ld.so (from revision 1.21 and 1.22) broke it
when running on top of Lites: every dynamically linked FreeBSD-current binary 
dies when it is started (ld.so complains about ``Bad address'' when loading
the shared libraries, revision 1.21 works fine).

> 
> Bruce
> 

		Remy



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