mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Compiling iproute2(w/HTB patch) for 2.5.51
@ 2002-12-13 23:49 axel
  2002-12-13 23:55 ` axel
  0 siblings, 1 reply; 3+ messages in thread
From: axel @ 2002-12-13 23:49 UTC (permalink / raw)
  To: lartc, linux-kernel, kuznet

Hi,

having read an article about QoS and HTB in a German computer magazine I
wanted to implement such thing on my linux router running kernel 2.5.51.
First I patched the iproute2-020116.tar.gz package with the htb3.6_tc.diff 
from http://luxik.cdi.cz/~devik/qos/htb/ and started building it. But
unfortunately it resulted in strange compile errors I do not understand.

Hope this is some help for you and I am not doing something terribly wrong.

Best regards,
Axel Siebenwirth

make[1]: Entering directory /usr/local/src/iproute2/misc'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include-glibc
-I/usr/include/db3 -include ../include-glibc/glibc-bugs.h
-I/usr/src/linux/include -I../include -DRESOLVE_HOSTNAMES   -c -o ss.o ss.c
In file included from /usr/src/linux/include/linux/skbuff.h:19,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/time.h:9: redefinition of `struct timespec'
/usr/src/linux/include/linux/time.h:15: redefinition of `struct timeval'
In file included from /usr/src/linux/include/linux/skbuff.h:19,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/time.h:146:1: warning: "FD_SET" redefined
In file included from /usr/include/sys/types.h:215,
                 from ../include-glibc/glibc-bugs.h:5,
                 from <command line>:1:
/usr/include/sys/select.h:89:1: warning: this is the location of the
previous definition
In file included from /usr/src/linux/include/linux/skbuff.h:19,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/time.h:147:1: warning: "FD_CLR" redefined
In file included from /usr/include/sys/types.h:215,
                 from ../include-glibc/glibc-bugs.h:5,
                 from <command line>:1:
/usr/include/sys/select.h:90:1: warning: this is the location of the
previous definition
In file included from /usr/src/linux/include/linux/skbuff.h:19,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/time.h:148:1: warning: "FD_ISSET" redefined
In file included from /usr/include/sys/types.h:215,
                 from ../include-glibc/glibc-bugs.h:5,
                 from <command line>:1:
/usr/include/sys/select.h:91:1: warning: this is the location of the
previous definition
In file included from /usr/src/linux/include/linux/skbuff.h:19,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/time.h:149:1: warning: "FD_ZERO" redefined
In file included from /usr/include/sys/types.h:215,
                 from ../include-glibc/glibc-bugs.h:5,
                 from <command line>:1:
/usr/include/sys/select.h:92:1: warning: this is the location of the
previous definition
In file included from /usr/src/linux/include/linux/sched.h:12,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/skbuff.h:25,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/linux/jiffies.h:11: parse error before "jiffies_64"
/usr/src/linux/include/linux/jiffies.h:11: warning: type defaults to 	nt'
in declaration of 
iffies_64'
/usr/src/linux/include/linux/jiffies.h:11: warning: data definition has no
type
or storage class
In file included from /usr/src/linux/include/linux/sched.h:20,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/skbuff.h:25,
                 from /usr/src/linux/include/linux/tcp.h:20,
                 from ss.c:36:
/usr/src/linux/include/asm/mmu.h:13: field `sem' has incomplete type
/usr/src/linux/include/asm/mmu.h:15: confused by earlier errors, bailing out
make[1]: *** [ss.o] Error 1
make[1]: Leaving directory /usr/local/src/iproute2/misc'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compiling iproute2(w/HTB patch) for 2.5.51
  2002-12-13 23:49 Compiling iproute2(w/HTB patch) for 2.5.51 axel
@ 2002-12-13 23:55 ` axel
  0 siblings, 0 replies; 3+ messages in thread
From: axel @ 2002-12-13 23:55 UTC (permalink / raw)
  To: lartc, linux-kernel, kuznet

Hi again!

On Sat, 14 Dec 2002, axel@pearbough.net wrote:

> having read an article about QoS and HTB in a German computer magazine I
> wanted to implement such thing on my linux router running kernel 2.5.51.
> First I patched the iproute2-020116.tar.gz package with the htb3.6_tc.diff 
> from http://luxik.cdi.cz/~devik/qos/htb/ and started building it. But
> unfortunately it resulted in strange compile errors I do not understand.
> 
> make[1]: *** [ss.o] Error 1
> make[1]: Leaving directory /usr/local/src/iproute2/misc'

There are no such problems with 2.4.20.

Axel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Compiling iproute2(w/HTB patch) for 2.5.51
@ 2002-12-16  6:26 Mikael Starvik
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael Starvik @ 2002-12-16  6:26 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

I have the exact same problem with sysklogd and I found 
that linux/module.h has a lot of new includes in 2.5 
that indirectly brings in a lot of .h files that 
shouldn't be included from userspace. 

Because of this you get both the compilers definition 
of FD_SET etc and the kernels version. I have not yet 
had the time to find out how to solve this but the 
solution is either to remove some includes or to add 
more #ifdef __KERNEL__. 

Question 1: Should it at all be possible to compile 
applications with 2.5.x headers? 

Question 2: Is there any chance that we can remove 
or #ifdef some includes in module.h (e.g. sched.h)? 

/Mikael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-16  6:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-13 23:49 Compiling iproute2(w/HTB patch) for 2.5.51 axel
2002-12-13 23:55 ` axel
2002-12-16  6:26 Mikael Starvik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®