From patchwork Wed Apr 15 15:41:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6221631 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B79E9F313 for ; Wed, 15 Apr 2015 15:41:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2BAD1201CE for ; Wed, 15 Apr 2015 15:41:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EAE10202D1 for ; Wed, 15 Apr 2015 15:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755892AbbDOPlh (ORCPT ); Wed, 15 Apr 2015 11:41:37 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:32980 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755844AbbDOPle (ORCPT ); Wed, 15 Apr 2015 11:41:34 -0400 Received: by paboj16 with SMTP id oj16so55069676pab.0 for ; Wed, 15 Apr 2015 08:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=pxOgdyRMfKJamuErY2z6AqxU4RL7/x+2+keLbG3OcEY=; b=FxA33g398fPY5ozke63NjQHdMI2zZTK8U/xsHIUwW3ZDlXIwCOlnIVh8XtAaZMiW/V jIVmCoithhzBoSeA98hmXtUBfQAd/TWFoesAPsotmtfKob6DUxyNZiZlCEOicvVau1B5 BFPJeIxl3vnFqK3AQqTMy6kVyrigsJNdMymbyPiH4ci6XIt92K78O8ZHonF0Xf0MdLxf 0CTeo64u2VmpzkOezjhfRJ7LdusKZW3dYey1L/zAxVSsHqJy20e1WNqAKpgiLEcY8jrK CCIcgv6ZH5h+1iv/RmKqz+Svlga7P+3nXaoXh0pVd8m75cTdXSvJj0rf5QhZ6Qw+GyET CO2A== X-Received: by 10.70.40.164 with SMTP id y4mr47453080pdk.25.1429112493550; Wed, 15 Apr 2015 08:41:33 -0700 (PDT) Received: from [192.168.99.8] ([104.143.41.79]) by mx.google.com with ESMTPSA id pm1sm4475079pdb.89.2015.04.15.08.41.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 08:41:32 -0700 (PDT) Message-ID: <552E86A8.6080506@gmail.com> Date: Wed, 15 Apr 2015 23:41:28 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Eino Juhani Oltedal , linux-nfs@vger.kernel.org Subject: Re: Problem installing nfs-utils to non standard dir References: <552E3508.5000403@fys.uio.no> In-Reply-To: <552E3508.5000403@fys.uio.no> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 4/15/2015 5:53 PM, Eino Juhani Oltedal wrote: > Hi! > > I'm trying to build nfs from source. I'm using nfs-utils-1.3.2 from http://sourceforge.net/projects/nfs/files/nfs-utils/1.3.2/. > I configure using the following command > > ./configure --prefix=/home/username/installs/tmp --exec-prefix=/home/username/installs/tmp > > When i run "make install" most of the packages are put under /home/username/installs/tmp, but for some reason the > install script tries to put osd_login under /sbin, which results in an error: > > Making install in osd_login > make[2]: Entering directory `/home/username/installs/nfs-utils-1.3.2/utils/osd_login' > make[3]: Entering directory `/home/username/installs/nfs-utils-1.3.2/utils/osd_login' > /usr/bin/mkdir -p '/sbin' > /usr/bin/install -c osd_login '/sbin' > /usr/bin/install: cannot remove ‘/sbin/osd_login’: Permission denied > make[3]: *** [install-dist_sbinSCRIPTS] Error 1 > > This is not supposed to happen, is it? No, it is. There are three utils (mount.nfs/mount.nfs4, nfsdcltrack and osd_login) must be installed in directory /sbin/, they are hard-coded. > Is there an easy way to fix it? I get the same error trying to build nfs-utils-1.3.1 as well. No, they are must installed in /sbin/ for kernel module nfsd.ko needing /sbin/nfsdcltrack and objlayoutdriver.ko needing /sbin/osd_login. You can not skip this problem with recently source. if you are hurry? you can avoid this problem with the following patch and configure as, # ./configure --disable-mount --disable-nfsdcltrack --disable-osdlogin --prefix=/root/test --exec-prefix=/root/test/ Ps: It is just a draft made by diff. I will send some patches for this problem. thanks, Kinglong Mee --- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html =================================================================== diff --git a/configure.ac b/configure.ac index e61430f..294e7a3 100644 --- a/configure.ac +++ b/configure.ac @@ -213,9 +213,16 @@ fi AC_ARG_ENABLE(nfsdcltrack, [AC_HELP_STRING([--disable-nfsdcltrack], [disable NFSv4 clientid tracking programs @<:@default=no@:>@])], - enable_nfsdctrack=$enableval, + enable_nfsdcltrack=$enableval, enable_nfsdcltrack="yes") +AC_ARG_ENABLE(osdlogin, + [AC_HELP_STRING([--disable-osdlogin], + [disable osd_login scripts @<:@default=no@:>@])], + enable_osdlogin=$enableval, + enable_osdlogin="yes") + AM_CONDITIONAL(CONFIG_OSD_LOGIN, [test "$enable_osdlogin" = "yes" ]) + dnl Check for TI-RPC library and headers AC_LIBTIRPC @@ -346,7 +353,7 @@ AC_SUBST(LIBBSD) AC_SUBST(LIBBLKID) AC_SUBST(LIBDL) -if test "$enable_libmount" != no; then +if test "$enable_libmount" = yes; then AC_CHECK_LIB(mount, mnt_context_do_mount, [LIBMOUNT="-lmount"], AC_MSG_ERROR([libmount needed])) AC_CHECK_HEADER(libmount/libmount.h, , AC_MSG_ERROR([Cannot find libmount header file libmount/libmount.h])) fi diff --git a/utils/Makefile.am b/utils/Makefile.am index b892dc8..6dd4a57 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -25,6 +25,10 @@ if CONFIG_NFSDCLTRACK OPTDIRS += nfsdcltrack endif +if CONFIG_OSD_LOGIN +OPTDIRS += osd_login +endif + SUBDIRS = \ exportfs \ mountd \ @@ -32,7 +36,6 @@ SUBDIRS = \ nfsstat \ showmount \ statd \ - osd_login \ $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in