From owner-freebsd-alpha Wed Dec 4 18:46:38 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C334737B401 for ; Wed, 4 Dec 2002 18:46:37 -0800 (PST) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5352F43E9C for ; Wed, 4 Dec 2002 18:46:36 -0800 (PST) (envelope-from Alex.Wilkinson@dsto.defence.gov.au) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au (8.10.1/8.10.1) with ESMTP id gB52ife04719 for ; Thu, 5 Dec 2002 13:14:41 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au (Content Technologies SMTPRS 4.2.10) with ESMTP id ; Thu, 5 Dec 2002 13:15:37 +1030 Received: from salex001.dsto.defence.gov.au (salex001.dsto.defence.gov.au [131.185.2.9]) by muttley.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id NAA25974; Thu, 5 Dec 2002 13:02:58 +1030 (CST) Received: from squirm.dsto.defence.gov.au ([131.185.75.211]) by salex001.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XR5ZK24J; Thu, 5 Dec 2002 13:03:02 +1030 Date: Thu, 5 Dec 2002 13:02:58 +1030 (CST) From: "Wilkinson,Alex" X-X-Sender: wilkinsa@squirm.dsto.defence.gov.au Reply-To: Alex.Wilkinson@dsto.defence.gov.au To: Peter Wemm Cc: Andrew Gallatin , alex , Yoriaki FUJIMORI , "" Subject: Re: link_elf: symbol osf1_wait4 undefined In-Reply-To: <20021204234429.1E7DE2A8A5@canning.wemm.org> Message-ID: <20021205130210.I85125-100000@squirm.dsto.defence.gov.au> References: <20021204234429.1E7DE2A8A5@canning.wemm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Only if -CURRENT would build on my Alpha ;( - aW This is quite well solved in 5.0: peter@daintree[3:41pm]~src/sys/alpha/osf1-121> grep MODULE_ * osf1_sysvec.c:MODULE_VERSION(osf1, 1); osf1_sysvec.c:MODULE_DEPEND(osf1, sysvmsg, 1, 1, 1); osf1_sysvec.c:MODULE_DEPEND(osf1, sysvsem, 1, 1, 1); osf1_sysvec.c:MODULE_DEPEND(osf1, sysvshm, 1, 1, 1); peter@daintree[3:41pm]~src/sys/alpha/osf1-122> cd ../linux/ peter@daintree[3:42pm]~src/sys/alpha/linux-123> grep MODULE_ * linux_sysvec.c:MODULE_VERSION(linux, 1); linux_sysvec.c:MODULE_DEPEND(linux, osf1, 1, 1, 1); linux_sysvec.c:MODULE_DEPEND(linux, sysvmsg, 1, 1, 1); linux_sysvec.c:MODULE_DEPEND(linux, sysvsem, 1, 1, 1); linux_sysvec.c:MODULE_DEPEND(linux, sysvshm, 1, 1, 1); ie: linux depends on osf1. osf1 depends on the sysv* stuff. linux also depends on the sysv*. All the dependency loading happens automatically if needed. There is no good solution for 4.x because the dependency system runs at the file level (rather than module level) and cannot detect when a module is already in the kernel. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message