Ticket #1312 (closed defect: fixed)
kmk fails on zfs
|Reported by:||rmf||Owned by:||bird|
|Version:||VirtualBox Solaris Beta 1||Keywords:||zfs kmk|
You cannot build virtualbox on solaris in a zfs filesystem because kmk will fail attempting to create directories with its builtin mkdir. Apparently, kmk's logic for directory existence is... less than optimal - it seems to try creating directories from /, whether or not they exist (unlike mkdir which tries to create the leaf dir and fails upward). The problem happens when it reaches a ZFS mountpoint, where mkdir(2) will return ENOSYS, instead of its expect EEXIST, causing kmk to bail out.
Only workaround is to build on a ufs filesystem, as kmk will do mkdirs whether or not the target exists.