Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Sep 1998 21:24:01 -0700
From:      John Polstra <jdp@polstra.com>
To:        current@FreeBSD.ORG
Subject:   ELF -current users: HEADS UP
Message-ID:  <199809050424.VAA14443@austin.polstra.com>

next in thread | raw e-mail | index | archive | help
I implemented ldconfig functionality for ELF today.  If you are
running an ELF system but still rely on some a.out libraries (e.g.,
in /usr/X11R6/lib), you may need to adjust your /etc/rc file to avoid
problems.

The new ldconfig treats ELF and a.out separately.  When you run it,
it deals with one format or the other, but not both.  The format is
selected by the usual rules involving "/etc/objformat", ${OBJFORMAT},
and the "-aout" and "-elf" command line options.

Because of this, if you are on an ELF system the ldconfig invocation
in /etc/rc will suddenly stop affecting your a.out hints, and will
start affecting your ELF hints instead.  Thus if you do nothing,
you'll have no a.out hints at all when you reboot.

A quick work-around is to edit /etc/rc, adding the "-aout" option to
the ldconfig invocation there.  It should look like this:

	ldconfig -aout ${_LDC}

A better solution will involve separate ldconfig directory lists
for a.out and ELF in /etc/rc.conf.  I'll commit something along
those lines soon.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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