Am Sat, 25 Nov 2006 16:46:10 +0100
schrieb Waldemar Brodkorb <[EMAIL PROTECTED]>:

[...]  
>> Another port which cannot be compiled at the moment is iproute2.
>> The port system don't pick up the system includes. After a first
>> glance I presume that the port makefile is not in "sync" with the
>> source tarball (no "LIBC_INCLUDE" in makefile from iproute2).
 
> Any working patch for that?

Well, no, not yet. With the following hack it will compile on my
machine, but due to the 4 last "$(SED)" commands it will break on a 
different os / machine.

Index: package/iproute2/Makefile
===================================================================
--- package/iproute2/Makefile   (Revision 1208)
+++ package/iproute2/Makefile   (Arbeitskopie)
@@ -19,20 +19,25 @@
 $(eval $(call PKG_template,TC,tc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
 $(WRKBUILD)/.configured:
-       $(SED) "s:-O2:${TARGET_CFLAGS}:g" $(WRKBUILD)/Makefile
-       $(SED) "s,-I/usr/include/db3,," $(WRKBUILD)/Makefile
+       $(SED) "s,-O2,${TARGET_CFLAGS},g" $(WRKBUILD)/Makefile
+#      $(SED) "s,-I/usr/include/db3,," $(WRKBUILD)/Makefile
        $(SED) "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=$(LINUX_DIR)/include," \
                $(WRKBUILD)/Makefile
-       $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
-               $(WRKBUILD)/Makefile
+#      $(SED) "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include," \
+#              $(WRKBUILD)/Makefile
        # For now disable compiling of the misc directory because it seems to 
fail
-       rm -rf $(WRKBUILD)/misc 
-       $(SED) "s, misc,," $(WRKBUILD)/Makefile
+#      rm -rf $(WRKBUILD)/misc 
+#      $(SED) "s, misc,," $(WRKBUILD)/Makefile
+       $(SED) "s,linux\/types.h,asm\/types.h," $(WRKBUILD)/netem/normal.c
+       $(SED) "s,linux\/types.h,asm\/types.h," $(WRKBUILD)/netem/pareto.c
+       $(SED) "s,linux\/types.h,asm\/types.h," $(WRKBUILD)/netem/paretonormal.c
+       $(SED) "s,-o,-I/work/linux/usr/include -o," $(WRKBUILD)/netem/Makefile
        touch $@
 
 $(WRKBUILD)/.built:
-       $(MAKE) -j1 -C $(WRKBUILD)/netem HOSTCC=$(HOSTCC) CFLAGS="-D_GNU_SOURCE 
-O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
-       $(MAKE) -j1 -C $(WRKBUILD) $(TARGET_CONFIGURE_OPTS) 
KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
+       $(MAKE) -j1 -C $(WRKBUILD)/netem HOSTCC=$(HOSTCC) 
+#CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include 
-DRESOLVE_HOSTNAMES"
+       $(MAKE) -j1 -C $(WRKBUILD) $(TARGET_CONFIGURE_OPTS) 
KERNEL_INCLUDE=$(LINUX_DIR)/include all # tc/tc ip/ip
        touch $@
 
 $(IPKG_IP):


The problem is that parts of the source (directory /netem) is 
compiled for the host system and it needs linux specific system 
includes (linux/types.h). In this case using asm/types.h from glibc 
is sufficient, but normally not available under openbsd (even via 
ports). It has to be extracted from a rpm or something else.

Is there a mechanism for host-os specific patches or changes 
available in buildroot?


        Ulrich
_______________________________________________
freewrt-users mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-users

Reply via email to