[Klone-users] Cross compile Klone 2.1.0 for arm-linux
Carlos Santín Carballo
csantin at wonesys.com
Mon Sep 22 09:17:22 EDT 2008
Hi Thomas, thanxs for the fast response
There was a mistake in my post. I assumed that the ready-made Makefile
(http://koanlogic.com/download/klone/Makefile) referred to the latest
version (2.1.0) but it refers to 2.0.2. So the version I am installing
is 2.0.2.
Anyway, with a fresh install of the 2.0.2 the problem persists
On the other hand I've downloaded the 2.1.0 sources and tried to compile
it manually. It returns a problem in the toolbox/pwd.c compilation. From
party.log:
toolbox/pwd.c: In function `u_pwd_retr_res':
toolbox/pwd.c:359: error: parse error before '[' token
toolbox/pwd.c:371: error: parse error before ',' token
toolbox/pwd.c:384: error: parse error before ')' token
toolbox/pwd.c:368: error: label `err' used but not defined
toolbox/pwd.c: At top level:
toolbox/pwd.c:392: error: parse error before "do"
toolbox/pwd.c:406: warning: parameter names (without types) in function
declaration
toolbox/pwd.c:406: error: conflicting types for `u_pwd_res_close'
toolbox/pwd.c:36: error: previous declaration of `u_pwd_res_close'
toolbox/pwd.c:406: warning: data definition has no type or storage class
toolbox/pwd.c:409: error: `rec' undeclared here (not in a function)
toolbox/pwd.c:409: warning: data definition has no type or storage class
toolbox/pwd.c:411: error: parse error before "return"
toolbox/pwd.c:416: warning: parameter names (without types) in function
declaration
toolbox/pwd.c:416: warning: data definition has no type or storage class
toolbox/pwd.c:418: error: parse error before "return"
toolbox/pwd.c:434: error: conflicting types for `u_pwd_res_close'
toolbox/pwd.c:416: error: previous declaration of `u_pwd_res_close'
toolbox/pwd.c: In function `u_pwd_retr_mem':
toolbox/pwd.c:497: warning: passing arg 2 of `u_hmap_get' discards
qualifiers from pointer target type
make[6]: *** [toolbox/pwd.o] Error 1
make[6]: se sale del directorio
`/home/csantin/src/klone-2.1.0/build/target/klone-core-2.1.0/libu/srcs'
make[5]: *** [srcs] Error 2
make[5]: se sale del directorio
`/home/csantin/src/klone-2.1.0/build/target/klone-core-2.1.0/libu'
Any feedback is welcome
Carlos Santin
thomas fossati wrote:
> Hi Carlos,
>
> On Sep 22, 2008, at 12:37 PM, Carlos Santín Carballo wrote:
>> I am trying to cross-compile Klone for a linux-arm environment. In
>> order to achieve this, I download the Makefile for the 2.1.0 version
>> and add the line:
>>
>> MAKL_PLATFORM = linux-arm
>>
>> then I run make and it ends with this strange following error when
>> compiling the libu:
>>
>> arm-linux-g++
>> -I/home/csantin/src/klone/klone-2.0.2/build/target/klone-core-2.0.2/libu/include
>> -I/home/csantin/src/klone/klone-2.0.2/build/target/klone-core-2.0.2
>> -DHAVE_CONF_H -O2 -I../../libu/include -o kloned server.o main.o
>> entry.o ppc.o atom.o ppc_log_add.o ppc_log_get.o ppc_nop.o child.o
>> ppc_access_log.o ppc_fork_child.o -Wl,--start-group
>> ../libhttp/libhttp.a ../libutils/libutils.a ../libpage/libpage.a
>> ../libbackend/libbackend.a ../libemb/libemb.a ../libio/libio.a
>> ../libtls/libtls.a ../../site/libsite.a ../libcodec/libcodec.a
>> ../libklog/libklog.a ../../webapp/libwebapp.a ../libhttp/libhttp.a
>> ../libpage/libpage.a ../libutils/libutils.a ../libio/libio.a
>> ../libtls/libtls.a ../libcodec/libcodec.a ../libpage/libpage.a
>> ../libhook/libhook.a ../../libu/srcs/libu.a -Wl,--end-group
>> ../../site/libsite.a(pg_2cc3da97e110aefe2f9367222c408ec1.o)(.text+0x90):
>> In function `exec_page':
>> : undefined reference to `u_io_unzip_copy'
>> ../../site/libsite.a(pg_2cc3da97e110aefe2f9367222c408ec1.o)(.text+0xb0):
>> In function `exec_page':
>> : undefined reference to `u_io_unzip_copy'
>> ../../site/libsite.a(pg_2cc3da97e110aefe2f9367222c408ec1.o)(.text+0xf0):
>> In function `exec_page':
>> : undefined reference to `u_io_unzip_copy'
>> collect2: ld returned 1 exit status
>>
>> Do I have to modify anything apart from the top-level Makefile for
>> cross-compile Klone?
>
> in principle, no.
>
> Anyway, I see some strangeness in the output that you provided: you
> say you're using version 2.1.0 but I see version 2.0.2 of the klone
> core. Could you please try with a fresh build ?
>
> ciao, t.
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
--
Carlos Santín Carballo
W-onesys, SL
WDM Optical NEtworks SYStems
C/ Orient, 78-84
08172 Sant Cugat del Valles (Barcelona) - SPAIN
Tel. + 34 93 590 11 49
fax + 34 93 590 11 57
www.w-onesys.com
More information about the klone-users
mailing list