From: Chris F. <cfr...@no...> - 2004-05-28 18:28:55
|
I downloaded the latest CVS version and tried building against a 2.6.5 x86 tree. Got a bunch of errors (see below) wrt include files. The issue seems to be that irq_vectors.h is actually located in asm/mach-default, which isn't in the search path. Has anyone managed to build this? Chris [cfriesen@pcard0ks cvs]$ make TOPDIR=/usr/local/misc/kernel/linux-2.6.5 cd ./TIPC_SCC && make KINCLUDE=/usr/local/misc/kernel/linux-2.6.5/include all make[1]: Entering directory `/usr/local/misc/tipc/cvs/TIPC_SCC' cc -M -DTIPC_LINUX_2_6 -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I../EnvAdaptation_SWI/incl -I../TIPC_SWI/incl -I../TipcAdaptation_SWI/incl -I/usr/local/misc/kernel/linux-2.6.5/include -I./src ./src/Address.c ./src/Bearer.c ./src/Debug.c ./src/Link.c ./src/LinkSubscription.c ./src/Manager.c ./src/Memory.c ./src/Message.c ./src/NameDistributor.c ./src/NameSubscription.c ./src/NameTable.c ./src/Network.c ./src/NetworkSubscription.c ./src/Port.c ./src/Processor.c ./src/Reference.c ./src/Subnetwork.c ./src/tipc_port.c ./src/Zone.c | sed -e 's|^.*\.o:|./obj.linuxm/\0|g' > .deps In file included from /usr/local/misc/kernel/linux-2.6.5/include/linux/irq.h:20, from /usr/local/misc/kernel/linux-2.6.5/include/asm/hardirq.h:6, from /usr/local/misc/kernel/linux-2.6.5/include/linux/interrupt.h:11, from ../EnvAdaptation_SWI/incl/tipc_linuxm_adaptation.h:69, from ../EnvAdaptation_SWI/incl/tipc_target_adaptation.h:68, from ../TipcAdaptation_SWI/incl/tipc_adaptation.h:805, from src/Debug.h:61, from ./src/Address.c:57: /usr/local/misc/kernel/linux-2.6.5/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /usr/local/misc/kernel/linux-2.6.5/include/linux/irq.h:20, from /usr/local/misc/kernel/linux-2.6.5/include/asm/hardirq.h:6, from /usr/local/misc/kernel/linux-2.6.5/include/linux/interrupt.h:11, from ../EnvAdaptation_SWI/incl/tipc_linuxm_adaptation.h:69, from ../EnvAdaptation_SWI/incl/tipc_target_adaptation.h:68, from ../TipcAdaptation_SWI/incl/tipc_adaptation.h:805, from src/Debug.h:61, from ./src/Bearer.c:60: /usr/local/misc/kernel/linux-2.6.5/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory |
From: Jon M. <jon...@er...> - 2004-05-28 18:48:40
|
The 1.2-line of TIPC os only maintained for the 2.4-kernel. If you want to run TIPC on 2.6, you should use the 1.3-line, which is now approaching the same stability (we are not quite there yet). Note that the API and insmod parameters have changed in the 1.3-line, but you will like the changes, I think. /Jon Chris Friesen wrote: > > I downloaded the latest CVS version and tried building against a 2.6.5 > x86 tree. Got a bunch of errors (see below) wrt include files. > > The issue seems to be that irq_vectors.h is actually located in > asm/mach-default, which isn't in the search path. > > Has anyone managed to build this? > > Chris > > > > > [cfriesen@pcard0ks cvs]$ make TOPDIR=/usr/local/misc/kernel/linux-2.6.5 > cd ./TIPC_SCC && make > KINCLUDE=/usr/local/misc/kernel/linux-2.6.5/include all > make[1]: Entering directory `/usr/local/misc/tipc/cvs/TIPC_SCC' > cc -M -DTIPC_LINUX_2_6 -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB > -I../EnvAdaptation_SWI/incl -I../TIPC_SWI/incl > -I../TipcAdaptation_SWI/incl > -I/usr/local/misc/kernel/linux-2.6.5/include -I./src ./src/Address.c > ./src/Bearer.c ./src/Debug.c ./src/Link.c ./src/LinkSubscription.c > ./src/Manager.c ./src/Memory.c ./src/Message.c ./src/NameDistributor.c > ./src/NameSubscription.c ./src/NameTable.c ./src/Network.c > ./src/NetworkSubscription.c ./src/Port.c ./src/Processor.c > ./src/Reference.c ./src/Subnetwork.c ./src/tipc_port.c ./src/Zone.c | > sed -e 's|^.*\.o:|./obj.linuxm/\0|g' > .deps > In file included from > /usr/local/misc/kernel/linux-2.6.5/include/linux/irq.h:20, > from > /usr/local/misc/kernel/linux-2.6.5/include/asm/hardirq.h:6, > from > /usr/local/misc/kernel/linux-2.6.5/include/linux/interrupt.h:11, > from > ../EnvAdaptation_SWI/incl/tipc_linuxm_adaptation.h:69, > from > ../EnvAdaptation_SWI/incl/tipc_target_adaptation.h:68, > from ../TipcAdaptation_SWI/incl/tipc_adaptation.h:805, > from src/Debug.h:61, > from ./src/Address.c:57: > /usr/local/misc/kernel/linux-2.6.5/include/asm/irq.h:16:25: > irq_vectors.h: No such file or directory > In file included from > /usr/local/misc/kernel/linux-2.6.5/include/linux/irq.h:20, > from > /usr/local/misc/kernel/linux-2.6.5/include/asm/hardirq.h:6, > from > /usr/local/misc/kernel/linux-2.6.5/include/linux/interrupt.h:11, > from > ../EnvAdaptation_SWI/incl/tipc_linuxm_adaptation.h:69, > from > ../EnvAdaptation_SWI/incl/tipc_target_adaptation.h:68, > from ../TipcAdaptation_SWI/incl/tipc_adaptation.h:805, > from src/Debug.h:61, > from ./src/Bearer.c:60: > /usr/local/misc/kernel/linux-2.6.5/include/asm/irq.h:16:25: > irq_vectors.h: No such file or directory |
From: Chris F. <cfr...@no...> - 2004-05-28 19:34:49
|
Jon Maloy wrote: > The 1.2-line of TIPC os only maintained for the 2.4-kernel. If you want > to run > TIPC on 2.6, you should use the 1.3-line, which is now approaching the same > stability (we are not quite there yet). Note that the API and insmod > parameters > have changed in the 1.3-line, but you will like the changes, I think. Okay, I think I figured it out. It was not obvious to me that I needed to build in source/unstable. A couple comments: 1) I think the "clean" line in the Makefile should read rm -f net/tipc/*.ko and not rm -f /net/tipc/*.ko 2) The duplicated Makefiles in source/unstable and source/unstable/net/tipc is kind of grungy. Chris |
From: Jon M. <jon...@er...> - 2004-05-28 20:47:45
|
See below. /jon Chris Friesen wrote: > Jon Maloy wrote: > >> The 1.2-line of TIPC os only maintained for the 2.4-kernel. If you want >> to run >> TIPC on 2.6, you should use the 1.3-line, which is now approaching >> the same >> stability (we are not quite there yet). Note that the API and insmod >> parameters >> have changed in the 1.3-line, but you will like the changes, I think. > > > Okay, I think I figured it out. It was not obvious to me that I > needed to build in source/unstable. > > > A couple comments: > > 1) I think the "clean" line in the Makefile should read > > rm -f net/tipc/*.ko > > and not > > rm -f /net/tipc/*.ko Yes, of course. > > > > 2) The duplicated Makefiles in source/unstable and > source/unstable/net/tipc is kind of grungy. These files don't have the same purpose. The one under unstable/net/tipc is for use when TIPC is integrated into its right place in the kernel, and can not be used at all for standalone build. This file must be kept as "standard" as possible to please the kernel guys. The other one is an optional support for standalone build of the module, and must be kept outside the tipc directory because of its interaction with the Linux module build support. (This basically expects to find a file with the name "Makefile" under "SUB_DIRS", and since we already have a file with that name under net/tipc I had to use a different SUB_DIRS.) You will find more issues when you start looking at the code, but it is improving by the day :-) Regards /Jon > > > Chris |