Date: Fri, 30 Oct 1998 20:59:47 -0800 (PST) From: root@gli.pn.wagsky.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: conf/8517: rc.conf/rc fails to set ldconfig -aout Message-ID: <199810310459.UAA19018@gli.pn.wagsky.com>
next in thread | raw e-mail | index | archive | help
>Number: 8517
>Category: conf
>Synopsis: rc.conf/rc fails to set ldconfig -aout
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 30 21:10:00 PST 1998
>Last-Modified:
>Originator: Jeff Kletsky
>Organization:
Wagsky Associates
>Release: FreeBSD 3.0-CURRENT i386
>Environment:
cvsup of 3.0-CURRENT as of 981015 and
ports collection as of 981030
>Description:
With cvsup of 3.0-CURRENT as of 981015 and ports collection as of 981030,
build of emacs20 fails with
[...]
./temacs -batch -l loadup dump
/usr/libexec/ld-elf.so.1: Shared object "libXaw.so.6" not found
gmake[1]: *** [emacs] Error 1
gmake[1]: Leaving directory
`/usr/ports/editors/emacs20/work/emacs-20.3/src'
gmake: *** [src] Error 2
*** Error code 2
[...]
This has been traced to 'rc.conf'
[...]
ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" # shared library search paths
ldconfig_paths_aout="/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout" # a.out shared library search paths
[...]
and the execution of the startup script 'rc'
[...]
# Default the a.out ldconfig path, in case the system's
# /etc/rc.conf hasn't been updated.
: ${ldconfig_paths_aout=${ldconfig_paths}}
_LDC=/usr/lib/aout
for i in $ldconfig_paths_aout; do
if test -d $i; then
_LDC="${_LDC} $i"
fi
done
echo 'setting a.out ldconfig path:' ${_LDC}
ldconfig -aout ${_LDC}
[...]
which apparently fails to properly set the aout ldconfig path.
Executing ldconfig manually results in:
bash-2.02# ldconfig -elf /usr/lib/compat /usr/X11R6/lib /usr/local/lib
bash-2.02# ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout \
/usr/local/lib/aout
ldconfig: /usr/local/lib/aout: No such file or directory
as /usr/local/lib/aout apparently is not created by the 'make world'
process.
>How-To-Repeat:
Install "fresh" RELEASE-3.0
cvsup -current
make world (build new kernel, update /etc, /dev, /stand/sysinstall)
reboot
cd /usr/ports/editors/emacs20
make clean
make install
>Fix:
Workaround:
ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout
Fix:
This could easily be solved by modifying 'rc' or the "hierarchy"
('BSD.usr.dist') portion of the make process to ensure that
/usr/local/lib/aout exists.
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810310459.UAA19018>
