ecki / net-tools

Linux base networking tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix headers to build with musl-libc

mjeveritt opened this issue · comments

Gentoo (and other musl distributions) are carrying a patch to fix headers in order to build with musl libc, eg. https://gitweb.gentoo.org/proj/musl.git/tree/sys-apps/net-tools/files/net-tools-fix-headers-r1.patch .

commented

This is not yet part of 2.10, but I am investigating.

Same problem here and the link above seems to be invalid now. Hope this can be fixed soon!

commented

Sorry, forgot about this, it would be good if somebody could dig up the relevant patches and/or propose a PR

Hey guys I think I’ve solved this.

Please check the patch: https://git.alpinelinux.org/aports/tree/main/net-tools/musl-fixes.patch?h=3.8-stable

For the "linux/if_strip.h: No such file or directory", check the if_strip.patch in https://archlinuxarm.org/forum/download/file.php?id=245&sid=97df9e7f03ae864dd45abc89c28cb12a

For the "error: 'x25_address' undeclared (first use in this function)", check the net-tools-1.60-2.6-compilefix.patch in same link above

For the "hostname.c:100:2: error: label at end of compound statement default:" issue, just simply add "break" in empty default block, likedefault: break;