v1.28 can't be built under DragonFlyBSD

Andrew Clayton andrew at digital-domain.net
Wed Oct 12 19:22:01 UTC 2022


On Wed, 12 Oct 2022 21:02:16 +0800 (CST)
lhmwzy <lhmwzy at 126.com> wrote:

[...]

> src/nxt_runtime.c:1372: error: undefined reference to 'nxt_fs_mkdir_parent'
> src/nxt_controller.c:673: error: undefined reference to 'nxt_fs_mkdir_parent'
> collect2: error: ld returned 1 exit status
> *** Error code 1

This looks like a known issue, I'm guessing your building from unit
master and that DragonFly doesn't have the FreeBSD nmount(2) system
call...

Could you try this patch

https://github.com/ac000/unit/commit/ba021d54cc00cbcc28f34b37fe0e004612dd2d4d.patch

Assuming your using git and are in the repo root

  $ wget https://github.com/ac000/unit/commit/ba021d54cc00cbcc28f34b37fe0e004612dd2d4d.patch -O build-fix.patch

  $ git am build-fix.patch

then rebuild and install.

[...]

Cheers,
Andrew



More information about the unit mailing list