From: Andy Furniss Date: Mon, 26 Mar 2007 20:43:13 +0000 Subject: Re: [LARTC] Re: [LARTC} how can I compile tc Message-Id: <46083061.9030600@andyfurniss.entadsl.com> 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 John Baker wrote: > The story here is that I'm am using instructions my predecessor left for = > 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, = > use older versions and manually insert stuff but it makes more sense to=20 > try the latest stuff first) >=20 > I need to build tc because it needs to be patched with=20 > esfq-2.6.20/esfq-iproute2.patch. >=20 > 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. >=20 > The git version unfortunatly won't compile either. I get this: >=20 > ../include/linux/types.h:166: error: syntax error before =91__kernel_dadd= r_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 >=20 > 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 = > to move back to the 2.6.15 versions that are already prove. >=20 > Unless you have some other suggestion for hte above error. I just tried with esfq patches and it still works for me. I notice=20 Correy has started using netfilter - I bet that will take some=20 maintaining, but it doesn't look like it's anything to do with your error. What is your arch 64bit? I only have 32bit to test with. My desktop is fairly old tools (LFS 5.1 IIRC - it was still 2.4 I think=20 before I migrated it) - if you are really really old maybe that could=20 hurt you. Maybe you could try a quick test - no need to build the kernel, but you=20 must configure. For me make menuconfig picks up my last config because I=20 put it in /boot YMMV of course you may need to find/import your config=20 then just exit and save. My configs have pretty much everything tc/qos=20 related selected as modules. Don't bother with esfq just see if you can build against a vanilla kernel. just to complicate things git doesn't work for me today - Initialized empty Git repository in=20 /home/andy/Kern-test/git-test/iproute2.git/.git/ fatal: The remote end hung up unexpectedly fetch-pack from=20 'git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/' failed. But I kept a clean copy of it from the other day, so just used that,=20 I've put a copy up so we know we are using the same thing. Anyway - just as a user try somewhere - mkdir tc-test cd tc-test wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.3.tar.bz2 wget www.andyqos.ukfsn.org/iproute2-git.tar.bz2 tar xjf linux-2.6.20.3.tar.bz2 tar xjf iproute2-git.tar.bz2 cd linux-2.6.20.3 make [whateveryouuse]config load/hope it found your recent config exit/save cd ../iproute2-git export KERNEL_INCLUDE=3D/full/path/to/tc-test/linux-2.6.20.3/include/ make If it still fails maybe we should cc Stephen again :-) Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc