[BUILD] Fix problems at cross-compiling
authorAlexey Gladkov <legion@altlinux.org>
Mon, 24 Aug 2009 11:19:22 +0000 (15:19 +0400)
committerAlexey Gladkov <legion@altlinux.org>
Mon, 24 Aug 2009 11:23:14 +0000 (15:23 +0400)
commitafa2417e9be04c6b1c39e67218d8a4d6004ee811
treeb98d87eeb672d5abe8d1021f43788f81c8bf4869
parent4fa600142c1f3c61a51ee25e1f77761b3fa45d0a
[BUILD] Fix problems at cross-compiling

Hello,

I'm trying to cross-compile kbd-1.14. I configured it with the following arguments:

--prefix=/usr --build=i686-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --disable-nls

I get the following error message:

configure: error: cannot check setpgrp when cross compiling

I can fix it by adding ac_cv_func_setpgrp_void=yes to the configure arguments list,
but I wonder if this is the normal and recommended way to proceed or if it is a bug.

Also, I cannot run "make" successfully because of the following error message:

mapscrn-xmalloc.o: In function `xrealloc':
xmalloc.c:(.text+0x67): undefined reference to `rpl_realloc'
mapscrn-xmalloc.o: In function `xmalloc':
xmalloc.c:(.text+0xa7): undefined reference to `rpl_malloc'
mapscrn-kdmapop.o: In function `getunimap':
kdmapop.c:(.text+0x248): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status

I can fix it by adding ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes
to the configure arguments list. I have the same doubt as before.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
config.h.in
configure.ac
src/klibc_compat.h
src/loadkeys.c
src/openvt.c