Date: Fri, 6 Apr 2007 14:07:27 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: freebsd-current@FreeBSD.org Cc: Roman Divacky <rdivacky@FreeBSD.org>, Norikatsu Shigemura <nork@FreeBSD.org> Subject: Re: Cannot mount linprocfs by unresolving sysvs?m symbols Message-ID: <200704061407.35340.jkim@FreeBSD.org> In-Reply-To: <20070406174305.GA90217@freebsd.org> References: <20070407023855.ede13b76.nork@FreeBSD.org> <20070406174305.GA90217@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704061407.35340.jkim>