From owner-freebsd-current@FreeBSD.ORG Wed May 7 19:22:10 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1917737B417 for ; Wed, 7 May 2003 19:22:10 -0700 (PDT) Received: from blarf.homeip.net (adsl-209-204-188-56.sonic.net [209.204.188.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8730543FD7 for ; Wed, 7 May 2003 19:22:09 -0700 (PDT) (envelope-from sonicmail@blarf.homeip.net) Received: by blarf.homeip.net (Postfix, from userid 1006) id CB41F1796; Wed, 7 May 2003 19:22:08 -0700 (PDT) Date: Wed, 7 May 2003 19:22:08 -0700 From: Alex Zepeda To: current@freebsd.org Message-ID: <20030508022208.GA662@blarf.homeip.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: ldconfig problem with rcNG X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 02:22:10 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Whoops. I'm getting messages like this: ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/qt/lib /usr/local/kde/lib ldconfig: illegal option -- e usage: ldconfig [-aout | -elf] [-Rimrsv] [-f hints_file] [dir | file ...] during bootup. A little further inspection, and it appears that ldconfig wants -{elf,aout} first or it won't work with other flags. Like so: blarf:~#ldconfig -elf -i /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/qt/lib /usr/local/kde/lib blarf:~#ldconfig -i -elf /usr/lib /usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/qt/lib /usr/local/kde/lib ldconfig: illegal option -- e usage: ldconfig [-aout | -elf] [-Rimrsv] [-f hints_file] [dir | file ...] The attached patch fixed it for me. - alex --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ldconfig.diff" --- /etc/rc.d/ldconfig Wed May 7 19:18:55 2003 +++ /usr/src/etc/rc.d/ldconfig Wed Apr 30 23:20:13 2003 @@ -23,3 +23,3 @@ ldconfig=${ldconfig_command} - checkyesno ldconfig_insecure && ld_insecure_flag="-i" + checkyesno ldconfig_insecure && ldconfig="${ldconfig} -i" if [ -x "${ldconfig_command}" ]; then @@ -32,3 +32,3 @@ echo 'ELF ldconfig path:' ${_LDC} - ${ldconfig} -elf ${ld_insecure_flag} ${_LDC} + ${ldconfig} -elf ${_LDC} @@ -46,3 +46,3 @@ echo 'a.out ldconfig path:' ${_LDC} - ${ldconfig} -aout ${ld_insecure_flag} ${_LDC} + ${ldconfig} -aout ${_LDC} ;; --3V7upXqbjpZ4EhLz--