Thanks Roman, I succeeded compiling it for a Ubuntu 10.10, but I needed to make some hand modifications to get it running.
First of all, ./configure --enable-fixincludes doesn't understand that we are using patchless, and gives an error about kernel not being patched (which will mean we cannot compile click-install for example). I enter linuxmodule folder and type make. Several errors appear (I introduce my proposed solutions, don't know if they are good enough): FIRST ______ /include/click/config-linuxmodule.h:174: error: redefinition of typedef ‘uintptr_t’ include/click-linuxmodule/include1/linux/types.h:45: note: previous declaration of ‘uintptr_t’ was here I comment line 45 at include/click-linuxmodule/include1/linux/types.h SECOND ________ include/click-linuxmodule/include1/linux/sysfs.h:25: error: use of enum ‘kobj_ns_type’ without previous declaration I include linux/kobject.h at include/click-linuxmodule/include1/linux/sysfs.h Is it possible to use PollDevice with click patchless? Thanks, Ricard On 11/11/2010 06:01 PM, Roman Chertov wrote: > Ricard, > > Depending on what kernel you are using, you might not even need patches. Get > the latest source from https://github.com/kohler/click and then try the > following "<click_dir>/configure --fix-includes" If the configure process > finishes, then you don't need any patches. If it fails, then you need to > apply > the following patches > http://www.mail-archive.com/[email protected]/msg04236.html > http://www.mail-archive.com/[email protected]/msg04237.html > http://www.mail-archive.com/[email protected]/msg04238.html > http://www.mail-archive.com/[email protected]/msg04239.html > http://www.mail-archive.com/[email protected]/msg04244.html > > Please let the list know which kernel version you used and if you had to apply > the patches. > > Roman > > > On Thu, 11 Nov 2010 11:34:59 +0100 Ricard Vilalta<[email protected]> > wrote > >> Hello Roman and everyone, >> >> Do I only need to apply patch1-2.txt and patch2-2.txt to be able to run >> click in kernel mode, without any patch to the kernel? >> Thanks for helping a newbie, >> Ricard >> >> P.S. I need to use click in kernel mode in a kernel upper than 2.6.27. >> >> On 11/03/2010 02:44 AM, Roman Chertov wrote: >>> Hello, >>> >>> This works on Fedora 13 running 2.6.35.8 SMP kernel. The second patch is >>> based >>> on patches 2/12 and 3/12 that Joonwoo released. I had to add the >>> NETREG_REGISTERED patch due to scoping issues when an enum declared in >>> net_device is used. Otherwise, the code is same as in github master >>> branch. I >>> am not sure if there is a more elegant way to solve that issue. >>> >>> Roman >>> >>> >>> >>> _______________________________________________ >>> click mailing list >>> [email protected] >>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click >> >> -- >> ______________________________________________________________ >> >> Ricard Vilalta >> Research Engineer >> Optical Networking Area (ONA) http://wikiona.cttc.es/ >> CTTC - Centre Tecnològic de Telecomunicacions de Catalunya >> Parc Mediterrani de la Tecnologia (PMT) >> Av. Carl Friedrich Gauss 7, >> 08860 Castelldefels (Barcelona), Spain >> http://www.cttc.es/ >> Phone: +34 93 396 71 70 (ext. 2232). Fax: +34 93 645 29 01 >> E-mail: [email protected] -- ______________________________________________________________ Ricard Vilalta Research Engineer Optical Networking Area (ONA) http://wikiona.cttc.es/ CTTC - Centre Tecnològic de Telecomunicacions de Catalunya Parc Mediterrani de la Tecnologia (PMT) Av. Carl Friedrich Gauss 7, 08860 Castelldefels (Barcelona), Spain http://www.cttc.es/ Phone: +34 93 396 71 70 (ext. 2232). Fax: +34 93 645 29 01 E-mail: [email protected] _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
