[Klone-users] Update 2.1.1rc0 to 2.1.1rc10 Error addr_t
thomas fossati
tho at koanlogic.com
Mon Oct 6 11:55:26 EDT 2008
Hi Mickael,
On Oct 6, 2008, at 11:24 AM, Mickael Auger wrote:
> So I replace "addr_t" word by "kaddr_t" in my source code
> (fctscommunes.c), and I have this new compilation error (that I have
> not with the 2.1.1rc0 version) :
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> m68k-elf-gcc -I/opt/uClinux-dist/uClibc/include -L/opt/uClinux-dist/
> uClibc/libc/ -L/opt/uClinux-dist/uClibc/libm/ -Os -m5307 -msep-data -
> D__UCLINUX__ -pipe -I/home/all_user/ug_ma/ug_web-v1.5x_2.1.1rc10/
> klone-2.1.1rc10/build/target/klone-core-2.1.1rc10/libu/include -I/
> home/all_user/ug_ma/ug_web-v1.5x_2.1.1rc10/klone-2.1.1rc10/build/
> target/klone-core-2.1.1rc10 -DHAVE_CONF_H -I/usr/local/include -O2
> -I/usr/local/include -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 /home/all_user/ug_ma/ug_web-v1.5x_2.1.1rc10/lokiinifile/
> liblokiinifile.a /home/all_user/ug_ma/ug_web-v1.5x_2.1.1rc10/
> fctscommunes/libfctscommunes.a /home/all_user/ug_ma/ug_web-
> v1.5x_2.1.1rc10/base64/libbase64.a ../../libu/srcs/libu.a -Wl,--end-
> group -Wl,-elf2flt -lc -lgcc -lz -L/usr/local/lib -lcrypt
> kloned.elf2flt: In function `__gexf2':
> /home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/xfgnulib.c(.text
> +0x2aca4): undefined reference to `strncat'
> collect2: ld returned 1 exit status
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I doubt that this is something related to klone: in fact strncat() is
never used directly in klone/libu sources. Perhaps some 3rd party lib
you use, or your .kl1 pages or some helper lib that you wrote or some
macro expansion ...
Anyway, I've tried with my local uclinux setup and I was able to
compile the minimal and minimal-lib klapps without problems. Even
inserting strncat() calls into .kl1 pages gave me no errors at all.
Could you please try to cross-compile a simple C program with
strncat() alone inside and see if it gives you errors ?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#include <string.h>
int main (void)
{
char s0[16] = "s0", s1[16] = "s1";
(void) strncat(s0, s1, sizeof s1 - strlen(s1) - 1);
return 0;
}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
$ m68k-elf-gcc -I/home/uclinux/uClinux-dist/uClibc/include \
-Wl,-elf2flt -m5200 -msep-data -D__UCLINUX__ \
main.c -o test-strncat -lc
I've tried this which works for me.
ciao, t.
PS: Please try also using KLONE_VERSION = 2.1.1 ... Still I am not
confident that changing the klone version is enough.
More information about the klone-users
mailing list