Subject: Re: -current failed to build and I'm stuck
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Paul B Dokas <dokas@cs.umn.edu>
List: current-users
Date: 12/02/1998 14:09:09
On Wed, 2 Dec 1998, Jason Thorpe wrote:
> 
> Make sure you run "ldconfig" after the new libc is installed.  This happens
> because the hints file contains a pointer to the old libc.so.12.33, but
> libbfd was build to reference the symbol new to libc.so.12.34.  ldconfig
> will refresh the hints file.

Then, shouldn't a 'make build' in /usr/src do something like this:

make -n build
echo -n "Build started at: "
date
(cd /usr/src/etc && make DESTDIR=/ distrib-dirs)
(cd /usr/src/share/mk && make install)
(cd /usr/src/share/tmac && make && make install)
make cleandir
make includes
(cd /usr/src/lib/csu &&  make depend && NOMAN= make && NOMAN= make install)
(cd /usr/src/lib &&  make depend && NOMAN= make && NOMAN= make install)
if [ -f /sbin/ldconfig ]; then  /sbin/ldconfig -m /usr/lib;  fi
(cd /usr/src/gnu/lib &&  make depend && NOMAN= make && NOMAN= make install)
if [ -f /sbin/ldconfig ]; then  /sbin/ldconfig -m /usr/lib;  fi
(cd /usr/src/domestic/lib/libdes &&  make depend && NOMAN= make && NOMAN= make install)
(cd /usr/src/domestic/lib/libcom_err &&  make depend && NOMAN= make && NOMAN= make install)
(cd /usr/src/domestic/lib/libkrb &&  make depend && NOMAN= make && NOMAN= make install)
(cd /usr/src/domestic/lib &&  make depend && NOMAN= make && NOMAN= make install)
if [ -f /sbin/ldconfig ]; then  /sbin/ldconfig -m /usr/lib;  fi
make depend && make && make install
echo -n "Build finished at: "
date


Just to be safe?  Or better yet, whenever a library is installed, then
ldconfig -m <dir> is run where <dir> is the directory into which the
library is installed.

I know that 'make build' isn't meant to handle all build cases, but IMHO,
it would be nice for it to provide a path of least surprise.

Paul
--
Paul Dokas                                            dokas@cs.umn.edu
======================================================================
Don Juan Matus:  "an enigma wrapped in mystery wrapped in a tortilla."