NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/50410 no netbsd32 compat w/o nfsserver
The following reply was made to PR kern/50410; it has been noted by GNATS.
From: Paul Goyette <paul%vps1.whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: PR/50410 no netbsd32 compat w/o nfsserver
Date: Mon, 30 Nov 2015 10:20:42 +0800 (PHT)
(resend since first time doesn't seem to have gone through)
> Please note that my original case was a custom kernel w/o any module
> support and everything build in (but no NFS server).
>
> I agree that the module is hard to fix (and may not be worth to try),
> but the non-MODULAR case should either fail to build or just work.
The problem is actually wider than just nfsserver.
The compat_netbsd32 module also assumes other optional components are
available in the base kernel, for example SYSV{SEM,SHM,MSG}. If you
try to load the current compat_netbsd32 module on a kernel which does
not include the SYSV options, you get undefined symbol errors. This
would generally mean that the module needs to depend on some other
module which provides those symbols.
However, adding "sysv_ipc" to the list of required modules for compat_netbsd32
will prevent a built-in variant of the compat_netbsd32 module from
initializing.
The general problem is that the compat_netbsd32 module assumes that all of the
required non-compat code is built-in to the kernel, rather than being
optionally loaded. There are two possible solutions:
* Reduce the granularity of modularity for the base kernel, or
* Split the compat_netbsd32 module into corresponding multiple modules which
can be individually loaded (ie, compat_netbsd32_sysv_ipc,
compat_netbsd32_nfsserver, etc.)
I'm working on the latter approach. It will take some time to implement and
test.
+------------------+--------------------------+-------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+-------------------------+
Home |
Main Index |
Thread Index |
Old Index