From: Samir K. <sam...@gm...> - 2007-09-10 16:10:11
|
Hi Henry, I am having some trouble following the guide. I installed fltk-1.1.6 from source into ~/i686-pc-linux-local. After that I ran the following commands: ==================================================================================== > export PATH=$HOME/i686-linux-local/bin:$PATH > ./configure --target=i686-pc-linux-local --targetkerneldir=~/Downloads/devel-colinux-20070819 --hostkerneldir=/lib/modules/2.6.20-16-generic/build > export COLINUX_TARGET_KERNEL_PATH=~/Downloads/devel-colinux-20070819 > export COLINUX_HOST_KERNEL_DIR=/lib/modules/2.6.20-16-generic/build > export COLINUX_HOST_OS=linux > export COLINUX_CFLAGS="-I$HOME/i686-pc-linux-local/include" > export COLINUX_LFLAGS="-L$HOME/i686-pc-linux-local/lib" > make HOSTOS=linux colinux ==================================================================================== I have attached the error I get. Do you have any ideas as to what I am doing wrong? I am running ubuntu 7.0.4 as my host system. Thanks. ================================================================================================================ make[2]: Entering directory `/home/samir/Downloads/devel-colinux-20070819/src' python ../bin/make.py colinux /home/samir/Downloads/devel-colinux-20070819/bin/comake/lib.py:1: DeprecationWarning: The sre module is deprecated, please import re. import sre, os Analyzing target tree... Target architecture not specified, defaulting to i386 Starting build [colinux] [src/build] [src/colinux/os/linux/build/executables] [src/colinux/os/linux/build/colinux-daemon] [src/colinux/os/linux/user/daemon/daemon.o] [src/colinux/os/linux/user/daemon/main.o] Building: target requires creation gcc -Isrc -I~/Downloads/devel-colinux-20070819/include -I~/Downloads/devel-colinux-20070819/include2 -I~/Downloads/devel-colinux-20070819/include -Wno-trigraphs -fno-strict-aliasing -Wall -I/home/samir/i686-pc-linux-local/include -O2 -DCOLINUX -DCOLINUX_ARCH=linux -DCOLINUX_DEBUG -DCOLINUX_FILE_ID=0 -DCO_HOST_API -c src/colinux/os/linux/user/daemon/main.c -o src/colinux/os/linux/user/daemon/main.o In file included from src/colinux/common/config.h:13, from src/colinux/user/daemon.h:14, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/common.h:28:31: error: linux/cooperative.h: No such file or directory In file included from src/colinux/user/daemon.h:14, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/config.h:178: error: 'CO_MODULE_MAX_COBD' undeclared here (not in a function) src/colinux/common/config.h:184: error: 'CO_MODULE_MAX_CONET' undeclared here (not in a function) src/colinux/common/config.h:189: error: 'CO_MODULE_MAX_COFS' undeclared here (not in a function) src/colinux/common/config.h:194: error: 'CO_MODULE_MAX_SERIAL' undeclared here (not in a function) src/colinux/common/config.h:204: error: 'CO_BOOTPARAM_STRING_LENGTH' undeclared here (not in a function) In file included from src/colinux/user/daemon.h:15, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/messages.h:17: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:26: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:44: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:49: error: expected specifier-qualifier-list before 'co_message_t' src/colinux/common/messages.h:53: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/messages.h:59: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:60: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:62: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:62: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:63: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:64: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:65: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/common/messages.h:66: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:67: error: expected declaration specifiers or '...' before 'co_message_t' src/colinux/common/messages.h:69: error: expected ')' before '*' token src/colinux/common/messages.h:70: error: expected ')' before '*' token src/colinux/common/messages.h:74: error: expected ')' before 'module' In file included from src/colinux/user/daemon.h:16, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/console.h:51: error: expected specifier-qualifier-list before 'co_cursor_pos_t' src/colinux/common/console.h:58: error: expected declaration specifiers or '...' before 'co_console_message_t' In file included from src/colinux/user/monitor.h:16, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/common/ioctl.h:45: error: expected specifier-qualifier-list before 'co_info_t' src/colinux/common/ioctl.h:96: error: expected specifier-qualifier-list before 'co_module_t' src/colinux/common/ioctl.h:157: error: expected specifier-qualifier-list before 'co_termination_reason_t' src/colinux/common/ioctl.h:176: error: expected specifier-qualifier-list before 'co_termination_reason_t' In file included from src/colinux/os/kernel/manager.h:13, from src/colinux/os/user/manager.h:15, from src/colinux/user/monitor.h:17, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/kernel/manager.h:89: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/os/user/manager.h:15, from src/colinux/user/monitor.h:17, from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/os/kernel/manager.h:27: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/user/daemon.h:19, from src/colinux/os/linux/user/daemon/main.c:18: src/colinux/user/monitor.h:29: error: expected declaration specifiers or '...' before 'co_module_t' src/colinux/user/monitor.h:47: error: expected declaration specifiers or '...' before 'co_message_t' In file included from src/colinux/os/linux/user/daemon/main.c:21: src/colinux/user/debug.h:16: error: expected ')' before '*' token Error: Target not build (TargetNotBuildError) make[1]: *** [colinux] Error 1 make[1]: Leaving directory `/home/samir/Downloads/devel-colinux-20070819/src' make: *** [colinux] Error 2 =================================================================================================== Regards Samir On 9/4/07, Henry Nestler <Hen...@ar...> wrote: > > Samir Kuthiala wrote: > > So I guess there is no way of using co-linux on linux? I like the idea > > of using vserver but can vserver run colinux images directly? > > Read this "5.3. For Linux as host": > > http://colinux.svn.sourceforge.net/svnroot/colinux/branches/devel/doc/building > > You need to compile the module colinux.ko from source. > Kernels with REGPARM enabled dosn't work as host. Current kernel 2.6.22 > does only work, if you remove the regparm parameter from host kernel > Makefile (and recompile the host kernel!). > > -- > Henry > |