在 Debian GNU/Hurd 中编译源代码与在 Debian GNU/Linux 中有什么不同?

Pav*_*kat 9 compiling c debian hurd

我试图libnetfilter_conntrack从 github编译源代码,因为它是iptables在编译iptables时请求的,因为其中任何一个在 HURD 软件存储库中都不可用,并且在配置时出现错误libnetfilter_conntrack

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
configure: error: Linux only, dude!
Run Code Online (Sandbox Code Playgroud)

我的内核是,

$ uname -a
GNU debian 0.9 GNU-Mach 1.8+git20190109-486/Hurd-0.9 i686-AT386 GNU
Run Code Online (Sandbox Code Playgroud)

我的最终目标是编译iproute2

Ste*_*itt 25

一般来说,它没有太大的不同。在 Hurd 的站点Debian wiki有已知的陷阱列表。许多项目构建良好,或者经过一些修复(最常见的问题是缺少PATH_MAX)。

但是,在您的情况下,您会发现很难到达任何地方:netfilter并且iptables特定于 Linux 内核,因此您将无法在 Hurd 上使用它们。您可能已经注意到iptables软件包不可用hurd-i386- 通常有一个很好的理由......iproute2也是特定于 Linux 的。

在您要使用的 Hurd 上eth-filter,请参阅Debian GNU/Hurd 配置指南的网络部分以获取详细信息。

  • @PavelSayekat 使用不是专门为 Linux 编写的防火墙? (12认同)
  • @PavelSayekat 您始终可以将库/程序移植到 hurd。未来几年编码愉快! (5认同)
  • @mirabilos 除非有人也在 Hurd 上添加了“内核”支持;-)。 (4认同)