#19875: build error / musl / mii-tool / r45995
------------------------+------------------------
Reporter: bittorf@… | Owner: developers
Type: defect | Status: closed
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: wontfix | Keywords:
------------------------+------------------------
Comment (by anonymous):
This patch will build mii-tools successfully against musl.
diff -urN feeds/oldpackages/net/mii-tool.old/patches/remove_econet.patch
feeds/oldpackages/net/mii-tool/patches/remove_econet.patch
--- feeds/oldpackages/net/mii-tool.old/patches/remove_econet.patch
1969-12-31 16:00:00.000000000 -0800
+++ feeds/oldpackages/net/mii-tool/patches/remove_econet.patch 2015-08-31
18:44:21.117482162 -0700
@@ -0,0 +1,11 @@
+--- /dev/null 2015-08-27 11:31:35.954026089 -0700
++++ ./config.in 2015-08-27 11:32:21.741153499 -0700
+@@ -56,7 +56,7 @@
+ bool 'NET/ROM (packet radio) protocol family' HAVE_AFNETROM y
+ bool 'Rose (packet radio) protocol family' HAVE_AFROSE y
+ bool 'X.25 (CCITT) protocol family' HAVE_AFX25 y
+-bool 'Econet protocol family' HAVE_AFECONET y
++bool 'Econet protocol family' HAVE_AFECONET n
+ bool 'DECnet protocol family' HAVE_AFDECnet n
+ bool 'Ash protocol family' HAVE_AFASH y
+ bool 'Bluetooth protocol family' HAVE_AFBLUETOOTH n
--- /dev/null 2015-08-24 11:47:16.422313938 -0700
+++ feeds/oldpackages/net/mii-tool/patches/remove_include.patch 2015-09-01
10:29:28.233215451 -0700
@@ -0,0 +1,58 @@
+--- ./lib/inet6_gr.c.orig 2015-08-31 23:26:12.977576967 -0700
++++ ./lib/inet6_gr.c 2015-08-31 23:28:20.958454417 -0700
+@@ -23,9 +23,6 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <unistd.h>
+-#ifndef __GLIBC__
+-#include <netinet6/ipv6_route.h> /* glibc doesn't have this */
+-#endif
+ #include "version.h"
+ #include "net-support.h"
+ #include "pathnames.h"
+--- ./lib/inet6_sr.c.orig 2015-09-01 10:03:16.786037089 -0700
++++ ./lib/inet6_sr.c 2015-09-01 10:03:46.498352993 -0700
+@@ -8,6 +8,7 @@
+ #if HAVE_AFINET6
+ #include <asm/types.h>
+ #include <sys/param.h>
++#include <asm/param.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+@@ -23,11 +24,7 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <unistd.h>
+-#ifdef __GLIBC__
+ #include <net/route.h>
+-#else
+-#include <netinet6/ipv6_route.h> /* glibc does not have this */
+-#endif
+ #include "version.h"
+ #include "net-support.h"
+ #include "pathnames.h"
+--- ./lib/inet_sr.c.orig 2015-09-01 10:08:32.566797902 -0700
++++ ./lib/inet_sr.c 2015-09-01 10:08:53.209936887 -0700
+@@ -11,6 +11,7 @@
+ #if HAVE_AFINET
+ #include <asm/types.h>
+ #include <sys/param.h>
++#include <asm/param.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+--- ./mii-tool.c.orig 2015-09-01 10:28:47.464731743 -0700
++++ ./mii-tool.c 2015-09-01 10:28:59.280888821 -0700
+@@ -46,10 +46,6 @@
+ #include <net/if.h>
+ #include <linux/sockios.h>
+
+-#ifndef __GLIBC__
+-#include <linux/if_arp.h>
+-#include <linux/if_ether.h>
+-#endif
+ #include <linux/mii.h>
+ #include <linux/sockios.h>
+ #include "version.h"
+
--
Ticket URL: <https://dev.openwrt.org/ticket/19875#comment:2>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets