From owner-freebsd-current@FreeBSD.ORG Fri Apr 6 18:07:38 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D690316A407; Fri, 6 Apr 2007 18:07:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 7D34713C455; Fri, 6 Apr 2007 18:07:38 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l36I7bm5016755; Fri, 6 Apr 2007 14:07:37 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Fri, 6 Apr 2007 14:07:27 -0400 User-Agent: KMail/1.6.2 References: <20070407023855.ede13b76.nork@FreeBSD.org> <20070406174305.GA90217@freebsd.org> In-Reply-To: <20070406174305.GA90217@freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200704061407.35340.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/3029/Fri Apr 6 12:53:11 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Roman Divacky , Norikatsu Shigemura Subject: Re: Cannot mount linprocfs by unresolving sysvs?m symbols X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 06 Apr 2007 18:07:38 -0000 On Friday 06 April 2007 01:43 pm, Roman Divacky wrote: > > Index: linprocfs.c > > ================================================================= > >== RCS file: /home/ncvs/src/sys/compat/linprocfs/linprocfs.c,v > > retrieving revision 1.108 > > diff -u -r1.108 linprocfs.c > > --- linprocfs.c 30 Mar 2007 17:56:44 -0000 1.108 > > +++ linprocfs.c 6 Apr 2007 17:33:05 -0000 > > @@ -1238,3 +1238,5 @@ > > PSEUDOFS(linprocfs, 1); > > MODULE_DEPEND(linprocfs, linux, 1, 1, 1); > > MODULE_DEPEND(linprocfs, procfs, 1, 1, 1); > > +MODULE_DEPEND(linprocfs, sysvmsg, 1, 1, 1); > > +MODULE_DEPEND(linprocfs, sysvsem, 1, 1, 1); > > I dont like this, I would prefer some dynamic determining > whether sysv symbols are present and if not just fill > in "safe" values. You know I have used sysctlbyname before but it was shot down by des. :-( > is there a way to do this nicely? Probably we can improve kernel linker to do better job. ;-) I mean, load all dependencies before look up symbols. Jung-uk Kim