From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Baker Date: Mon, 26 Mar 2007 14:20:02 +0000 Subject: Re: [LARTC] Re: [LARTC} how can I compile tc Message-Id: <4607D692.4010700@marlboro.edu> List-Id: References: <46042109.3010602@marlboro.edu> In-Reply-To: <46042109.3010602@marlboro.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org The story here is that I'm am using instructions my predecessor left for=20 building a packet shapeing firewall and trying to update them for a new=20 box that needs some drivers in the newer kernel version. (I can go back,=20 use older versions and manually insert stuff but it makes more sense to=20 try the latest stuff first) I need to build tc because it needs to be patched with=20 esfq-2.6.20/esfq-iproute2.patch. So I built the Linux 2.6.20.3 with the necessary patches and left it in=20 /usr/src/linux-2.6.20.3 with a /usr/src/linux symlink pointing to it. I=20 didn't do anything after setting it up. The git version unfortunatly won't compile either. I get this: ../include/linux/types.h:166: error: syntax error before =91__kernel_daddr_= t=92 ../include/linux/types.h:166: warning: no semicolon at end of struct or=20 union ../include/linux/types.h:167: warning: type defaults to =91int=92 in=20 declaration of =91f_tinode=92 ../include/linux/types.h:167: warning: data definition has no type or=20 storage class ../include/linux/types.h:170: error: syntax error before =91}=92 token make[1]: *** [ll_map.o] Error 1 make[1]: Leaving directory `/usr/src/iproute2/lib' make: *** [all] Error 2 I'm going to see if I can get iproute 2.6.19 working with this. It=20 seemed to compile once but without the proper patches. If not, I'll have=20 to move back to the 2.6.15 versions that are already prove. Unless you have some other suggestion for hte above error. thanks for you help either way. John Andy Furniss wrote: > John Baker wrote: >> Ok, I tried it out but for some reason it doesn't take for the=20 >> compile process. This is, after export=20 >> KERNEL_INCLUDE=3D/usr/src/linux/include/ if I run export this declare=20 >> -x KERNEL_INCLUDE=3D"/usr/src/linux/include/" is there. But when I run=20 >> make in iproute2 I still get the /usr/include/linux/ip.h:93:2: error:=20 >> #error "Endian problem - this didn't happen" error. >> >> I tried to circumvent this by moving the /usr/include/linux directory=20 >> to /usr/include/linux.old and then making /usr/include/linux a soft=20 >> link pointing to /usr/src/linux/include and got a different set of=20 >> errors as follows. > > You shouldn't have to do this - maybe just maybe playing with symlinks=20 > can help build some old out of tree stuff, but you shouldn't need to=20 > do it here. > > I don't know what distros do nowadays (use LFS myself), but the very=20 > existance of /usr/src/linux link to tree is depreciated. > > Why do you need to build a new tc - unless you need the latest=20 > features your distro should already have it & I think it should work=20 > with a new kernel. > > If you really need it, I assume you have built your own 2.6.20.3? > > Where is it, what did you do? If after configuring/building it you=20 > cleaned with make mrproper that will be too clean to build against -=20 > make clean should be OK. > > > >> The first time I tried this I forgot to run make clean after trying=20 >> to compile it against the original /usr/include/linux/ and it=20 >> actually got past the initial endian error and died trying to compile=20 >> tc. When I ran make clean and tried I go the above error. > > I would expect tc to fail - you need the git version. > > Generally if I have the tar and fail a build I just delete and start=20 > again - not saying that will help in this case. > > If your distro has git already installed great - if not you can get it=20 > from here > > http://kernel.org/pub/software/scm/git/git-1.5.0.5.tar.bz2 > > install where you want - see INSTALL > > to get the iproute2 git do - > > git clone=20 > git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git > > (as one line) and it will get the latest iproute2 tree for you. > > > Andy --=20 John Baker Network Systems Administrator Marlboro College Phone: 451-7551 off campus; 551 on campus=20 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc