From owner-freebsd-bugs Fri Oct 30 21:10:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA12042 for freebsd-bugs-outgoing; Fri, 30 Oct 1998 21:10:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA11993 for ; Fri, 30 Oct 1998 21:10:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA19115; Fri, 30 Oct 1998 21:10:01 -0800 (PST) Received: from gli.pn.wagsky.com (wagsky.vip.best.com [206.86.71.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11090 for ; Fri, 30 Oct 1998 20:59:52 -0800 (PST) (envelope-from jeff@gli.pn.wagsky.com) Received: (from root@localhost) by gli.pn.wagsky.com (8.9.1/8.9.1) id UAA19018; Fri, 30 Oct 1998 20:59:47 -0800 (PST) (envelope-from jeff) Message-Id: <199810310459.UAA19018@gli.pn.wagsky.com> Date: Fri, 30 Oct 1998 20:59:47 -0800 (PST) From: root@gli.pn.wagsky.com Reply-To: root@gli.pn.wagsky.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/8517: rc.conf/rc fails to set ldconfig -aout Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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