| Summary: | iproute ebuild enables htb patch and fails to build on 2.4.19 kernel headers | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcin Wojtczuk <fastviper> |
| Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
We read in sys-apps/iproute-20010824-r5 : # This allows us to always enable HTB3 without compile problems; This is _NOT_ true. Iproute checks kernel version by itself and issues an error via gcc #error directive: q_htb.c:28:2: #error "Different kernel and TC HTB versions" This error is caused by: #define HTB_TC_VER 0x30003 #if HTB_TC_VER >> 16 != TC_HTB_PROTOVER #error "Different kernel and TC HTB versions" #endif TC_HTB_PROTOVER is defined in file /usr/include/linux/pkt_shed.h and WASN'T there in 2.4.19. This build WILL fail on every system that uses old kernel headers. Reproducible: Always Steps to Reproduce: Expected Results: Build must require kernel headers or disable htb3. I'd disable htb3 since /usr/incluide/linux MUST contain kernel headers that glibc was build on (new kernel headers => recompiling glibc). Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.25) ================================================================= System uname: 2.4.25 i686 AMD Athlon(tm) XP Gentoo Base System version 1.4.6 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS=" -march=athlon-xp -O2 -s -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -DNDEBUG -DG_DISABLE_ASSERT" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" NOTE: I use kernel 2.4.25 but not it's headers. Headers are from 2.4.19!