By Pavel Sayekat


2019-02-05 09:48:18 8 Comments

I was trying to compile libnetfilter_conntrack source from github as it was requested by iptables while compiling iptables and as any of these were not available in the HURD software repo and ended up in an error while configuring 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!

and my kernel is,

$ uname -a
GNU debian 0.9 GNU-Mach 1.8+git20190109-486/Hurd-0.9 i686-AT386 GNU

and my ultimate goal was to compile iproute2.

1 comments

@Stephen Kitt 2019-02-05 09:53:50

In general, it’s not very different; there are lists of known pitfalls on the Hurd’s site and on the Debian wiki. Many projects build fine, or after a few fixes (the most common issue being the absence of PATH_MAX).

However in your case you’ll find it difficult to get anywhere: netfilter and iptables are specific to the Linux kernel, so you won’t be able to use them on the Hurd. You’ll probably have noticed that the iptables package isn’t available on hurd-i386 — there’s usually a good reason for that... iproute2 is also Linux-specific.

On the Hurd you’d use eth-filter instead, see the networking section of the Debian GNU/Hurd configuration guide for details.

@Kusalananda 2019-02-05 09:59:07

@PavelSayekat Using a firewall not specifically written for Linux?

@Giacomo Alzetta 2019-02-05 13:34:32

@PavelSayekat You can always port the libraries/programs to hurd. Happy coding for the next few years!

@mirabilos 2019-02-05 16:33:15

@GiacomoAlzetta won’t work, because the libraries and programs are just the userspace half of the implementation; they talk to specific Linux kernel modules, so this won’t ever be possible.

@Stephen Kitt 2019-02-05 16:35:10

@mirabilos unless someone adds “kernel” support on the Hurd too ;-).

@mirabilos 2019-02-05 16:40:40

@StephenKitt the Hurd principle would rather make that into a translator which then talks to the network translator. No kernel involved, it basically only does message passing. (Oh, and I’d rather port pf from OpenBSD than whatever Linux uses these days… ☺)

@Stephen Kitt 2019-02-05 16:46:30

@mirabilos I know, which is why I put the term “kernel” in quotes. And yes, porting iptables would be rather pointless, it’s already in the past...

Related Questions

Sponsored Content

3 Answered Questions

[SOLVED] GNU/Hurd vs. GNU/Linux

  • 2011-10-29 14:51:30
  • Bernhard Heijstek
  • 7389 View
  • 16 Score
  • 3 Answer
  • Tags:   gnu hurd

9 Answered Questions

[SOLVED] Compiling code from vim

  • 2011-02-22 10:45:35
  • user4793
  • 25906 View
  • 17 Score
  • 9 Answer
  • Tags:   vim compiling ide

7 Answered Questions

[SOLVED] Compiling code from apue

  • 2013-12-17 03:23:30
  • makhlaghi
  • 12032 View
  • 11 Score
  • 7 Answer
  • Tags:   compiling

2 Answered Questions

[SOLVED] How to use the Hurd kernel in a Debian installation?

  • 2017-03-29 12:53:33
  • Pierre B
  • 103 View
  • 0 Score
  • 2 Answer
  • Tags:   kernel hurd

2 Answered Questions

[SOLVED] Errors while compiling C code

  • 2016-12-15 10:27:09
  • user205591
  • 455 View
  • 1 Score
  • 2 Answer
  • Tags:   compiling c

0 Answered Questions

R configure file error: C compiler cannot create executables

1 Answered Questions

[SOLVED] Can GNU/Linux software run on GNU/Hurd?

  • 2016-05-09 13:22:36
  • user169558
  • 549 View
  • 4 Score
  • 1 Answer
  • Tags:   linux gnu hurd

0 Answered Questions

Microkernel (e.g. GNU Hurd) more secure than monolithic kernel (Linux)?

1 Answered Questions

[SOLVED] How to update all Debian packages from source code?

0 Answered Questions

How do I backport Mesa on Debian Wheezy?

Sponsored Content