From owner-freebsd-afs@FreeBSD.ORG Sat Dec 13 19:44:08 2008 Return-Path: Delivered-To: freebsd-afs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB61A1065672 for ; Sat, 13 Dec 2008 19:44:08 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 5F1258FC25 for ; Sat, 13 Dec 2008 19:44:08 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1LBaPG-000I3N-CR; Sat, 13 Dec 2008 22:44:06 +0300 Received: from bsam by bs1.sp34.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LBaPG-0000KX-5v; Sat, 13 Dec 2008 22:44:06 +0300 To: "Ben Kaduk" References: <94529048@bb.ipt.ru> <47d0403c0812131122x82adfddu537d2be603869ad7@mail.gmail.com> From: Boris Samorodov Date: Sat, 13 Dec 2008 22:44:06 +0300 In-Reply-To: <47d0403c0812131122x82adfddu537d2be603869ad7@mail.gmail.com> (Ben Kaduk's message of "Sat\, 13 Dec 2008 14\:22\:38 -0500") Message-ID: <94513977@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-afs@freebsd.org Subject: Re: Configuration files structure for openafs port(s) X-BeenThere: freebsd-afs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Andrew File System and FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 19:44:08 -0000 "Ben Kaduk" writes: > On Sat, Dec 13, 2008 at 12:37 PM, Boris Samorodov wrote: >> Hello List, >> >> >> here is a proposed coniguration files structure for openafs port(s): >> ----- >> PREFIX=3D/usr/local >> ETCBASE=3D${PREFIX}/etc >> AFSCONFDIR=3D${ETCBASE}/openafs >> AFSCLIENTCONFDIR=3D${AFSCONFDIR}/client #should this be named VICEETC? >> AFSSERVERCONFDIR=3D${AFSCONFDIR}/server #is there a historical variable? >> ----- > > That seems reasonable to me. OK. > I pulled your port from ftp://ftp.ipt.ru/pub/tmp/openafs.shar > and I removed "--disable-kernel-module" from the Makefile > on a recent -current system. I get an error on -current system when building client: ----- ... touch MODLOAD/sec_net.h cd MODLOAD ; echo make DESTDIR=3D single_compdir_libafs; make DESTDIR=3D = single_compdir_libafs make DESTDIR=3D single_compdir_libafs ... cc -I. -I.. -I../nfs -I/work/a/ports/net/openafs/work/openafs-1.4.8/src -= I/work/a/ports/net/openafs/work/openafs-1.4.8/src/afs -I/work/a/ports/net/= openafs/work/openafs-1.4.8/src/afs/FBSD -I/work/a/ports/net/openafs/work/o= penafs-1.4.8/src/config -I/work/a/ports/net/openafs/work/openafs-1.4.8/src= /rx/FBSD -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/rxkad -I/work= /a/ports/net/openafs/work/openafs-1.4.8/src/rxkad/domestic -I/work/a/ports= /net/openafs/work/openafs-1.4.8/src/util -I/work/a/ports/net/openafs/work/= openafs-1.4.8/src -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/afs = -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/FBSD -I/work/a/port= s/net/openafs/work/openafs-1.4.8/src/util -I/work/a/ports/net/openafs/work= /openafs-1.4.8/src/rxkad -I/work/a/ports/net/openafs/work/openafs-1.4.8/sr= c/config -I/work/a/ports/net/openafs/work/openafs-1.4.8/src/fsint -I/work= /a/ports/net/openafs/work/openafs-1.4.8/src/vlserver -I/work/a/ports/net/o= penafs/work/openafs-1.4.8/include -I/work/a/ports/net/openafs/work/openafs= -1.4.8/include/afs -O -I. -I.. -I/work/a/ports/net/openafs/work/openafs-1.= 4.8/src/config -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA= -DGETMOUNT -Wall -nostdinc -I/usr/include -D_KERNEL -DKLD_MODULE -elf -m= no-align-long-strings -fformat-extensions -fno-common -ffreestanding -I/a/= ports/net/openafs/files -include opt_global.h -fno-strict-aliasing -O2 -o= afs_vcache.o -c /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_v= cache.c /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c: In funct= ion 'afs_FlushReclaimedVcaches': /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c:602: warn= ing: format '%x' expects type 'unsigned int', but argument 2 has type 'stru= ct vcache *' /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c: In funct= ion 'afs_GetVCache': /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c:1840: war= ning: passing argument 3 of 'vinvalbuf' makes integer from pointer without = a cast /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c:1840: err= or: too many arguments to function 'vinvalbuf' /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c: In funct= ion 'afs_NFSFindVCache': /work/a/ports/net/openafs/work/openafs-1.4.8/src/afs/afs_vcache.c:2820: war= ning: unused variable 'lock' *** Error code 1 Stop in /work/a/ports/net/openafs/work/openafs-1.4.8/src/libafs/MODLOAD. *** Error code 1 ----- > The build will take a couple hours, You should use and ancient machine... I's say that some 10-15 minutes are more reasonable. > but I did notice that we will probably need to add a > --with-bsd-kernel-build line in the Makefile that defaults to > /usr/obj/usr/src/sys/GENERIC but can be overridden for > those of use with custom kernel configs. Yes, I do it for experimental (not published yet) openafs port with client support. Thanks for your feedback. WBR --=20 Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve