From owner-freebsd-arch@FreeBSD.ORG Sun Jun 1 11:02:31 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B5237B401 for ; Sun, 1 Jun 2003 11:02:31 -0700 (PDT) Received: from mail.ryu16.org (YahooBB219005044040.bbtec.net [219.5.44.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4D8F43F93 for ; Sun, 1 Jun 2003 11:02:29 -0700 (PDT) (envelope-from imura@ryu16.org) Received: from redeye.xt.ryu16.org (localhost [IPv6:::1]) by mail.ryu16.org (8.12.6/8.12.5) with ESMTP id h51I0qtW023214; Mon, 2 Jun 2003 03:00:52 +0900 (JST) (envelope-from imura@redeye.xt.ryu16.org) Received: (from imura@localhost) by redeye.xt.ryu16.org (8.12.6/8.12.6/Submit) id h51I0Vgu023207; Mon, 2 Jun 2003 03:00:31 +0900 (JST) Date: Mon, 2 Jun 2003 03:00:31 +0900 From: "R. Imura" To: Bruce Evans Message-ID: <20030602030031.H77796@ryu16.org> References: <20030531202221.GA22056@dragon.nuxi.com> <20030531225040.GV87863@roark.gnf.org> <20030601221123.B11577@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Mutt/1.2.5i-jp2 In-Reply-To: <20030601221123.B11577@gamplex.bde.org>; from bde@zeta.org.au on Sun, Jun 01, 2003 at 10:25:26PM +1000 cc: Julian Elischer cc: arch@freebsd.org Subject: Re: Moving some items out of src/sbin to src/usr.sbin X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2003 18:02:32 -0000 Hi, Bruce, On Sun, Jun 01, 2003 at 10:25:26PM +1000, Bruce Evans wrote: > mount_smbfs isn't actually dynamically linked currently: > > %%% > $ file /sbin/mount_smbfs > /sbin/mount_smbfs: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.0, statically linked, stripped > %%% > > The world was built with NOSHARED=yes. > > This seems to be a bug in mount_smbfs/Makefile: > > %%% > # Needs to be dynamically linked for optional dlopen() access to > # userland libiconv (see the -E option). > # > NOSHARED?= NO > %%% > > If it really needs to be dynamically linked, then NOSHARED should > be set unconditionally. When statically linked, mount_smbfs is limited to no character conversion based on libiconv.so, because dlopen() returns "Service unavailable". Since smbfs works fine w/o code conversion, if someone wants, he can make it statically linked. I think European need dynamically linked for their character code conversion purpose. (In my case, I(japanese) don't use -E option for mount_smbfs, because it doesn't work for 16bit chars, so I can make it statically linked.) Anyway, I think this is not a bug of mount_smbfs/Makefile, IMHO. - R. Imura