From owner-freebsd-questions Mon Jun 1 09:43:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA09434 for freebsd-questions-outgoing; Mon, 1 Jun 1998 09:43:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA09423 for ; Mon, 1 Jun 1998 09:43:04 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id MAA03843 for freebsd-questions@freebsd.org; Mon, 1 Jun 1998 12:39:03 -0400 (EDT) (envelope-from listread) Message-Id: <199806011639.MAA03843@lucy.bedford.net> Subject: Portmap and ldconfig To: freebsd-questions@FreeBSD.ORG Date: Mon, 1 Jun 1998 12:39:03 -0400 (EDT) X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, As part of the never-ending quest for security, I have recompiled the RPC portmap daemon to use the tcp wrapper lib, libwrap.XXX. The problem arises during boot: a) I linked portmap dynamically b) libwrap.so.XX gets installed (by default) in /usr/local/lib c) portmap won't load, since ld.so can't find libwrap (note, /usr/local/lib is on the same fs as /usr on that box). Observations: d) portmap needs to be run early e) ldconfig needs to be run late Questions: why is d) true? To mount other volumes NFS? Solutions, your comments are solicited: a) copy libwrap.so.XXX to /usr/lib b) symlink instead c) relink portmap staticly d) run ldconfig early, then again late after all fs's are mounted. e) add a LD_LIBRARY_PATH="/usr/lib:/usr/local/lib" to the portmap launch in /etc/rc f) ? You tell me! a) and c) are sure-fire, but which is best? Dave -- DISCLAIMER: If it can be disclaimed, it is. DISCLAIMER: In particular, I don't represent any organization. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message