LARTC
[Top] [All Lists]

[LARTC] Re: [LARTC} how can I compile tc

To: lartc <lartc@mailman.ds9a.nl>
Subject: [LARTC] Re: [LARTC} how can I compile tc
From: John Baker <johnnyb@marlboro.edu>
Date: Fri, 23 Mar 2007 14:48:41 -0400
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Thunderbird 1.5.0.10 (Macintosh/20070221)
Ok, I tried it out but for some reason it doesn't take for the compile process. This is, after export KERNEL_INCLUDE=/usr/src/linux/include/ if I run export this declare -x KERNEL_INCLUDE="/usr/src/linux/include/" is there. But when I run make in iproute2 I still get the /usr/include/linux/ip.h:93:2: error: #error "Endian problem - this didn't happen" error.

I tried to circumvent this by moving the /usr/include/linux directory to /usr/include/linux.old and then making /usr/include/linux a soft link pointing to /usr/src/linux/include and got a different set of errors as follows.

make[1]: Entering directory `/usr/src/iproute-2.6.20-070313/lib'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:122,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.0.3/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:35,
from ll_map.c:18:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from ../include/linux/netlink.h:5,
from ../include/libnetlink.h:5,
from ll_map.c:23:
../include/linux/types.h:5:31: error: linux/posix_types.h: No such file or directory
In file included from ../include/linux/netlink.h:5,
from ../include/libnetlink.h:5,
from ll_map.c:23:
../include/linux/types.h:166: error: syntax error before ‘__kernel_daddr_t’
../include/linux/types.h:166: warning: no semicolon at end of struct or union ../include/linux/types.h:167: warning: type defaults to ‘int’ in declaration of ‘f_tinode’ ../include/linux/types.h:167: warning: data definition has no type or storage class
../include/linux/types.h:170: error: syntax error before ‘}’ token
make[1]: *** [ll_map.o] Error 1
make[1]: Leaving directory `/usr/src/iproute-2.6.20-070313/lib'
make: *** [all] Error 2

The first time I tried this I forgot to run make clean after trying to compile it against the original /usr/include/linux/ and it actually got past the initial endian error and died trying to compile tc. When I ran make clean and tried I go the above error.

Any other thoughts?

Thanks

John

Andy Furniss wrote:
John Baker wrote:
I'm having a bunch of troubles with this as well. I'm using Ubuntu Dapper with vanilla kernel 2.6.20.3.

The iproute2-2.6.20 compile dies right away after


Maybe you are using the wrong headers - before the build do -

export KERNEL_INCLUDE=/path/to/your/linux-2.6.20.3/include/

don't build against anything in /usr/include/linux

Andy.

--
John Baker
Network Systems Administrator
Marlboro College
Phone: 451-7551 off campus; 551 on campus
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>