Nathan Angelacos wrote:
Hi list,
This is mainly for the uClibc folks, and its really a uClibc related question,
but since I'm using buildtool.pl, I'll ask here first.
I'm trying to compile haserl in the buildtool.pl environment. (K.-P. gave me
working buildtool.mk & cfg files, so that part works.)
buildtool.pl build haserl fails with this error:
/root/cvs/src/bering-uclibc/buildtool/staging/usr/bin/gcc -g -O2 -Wall -o
haserl haserl.o
haserl.o(.text+0x165): In function `myputenv':
/root/cvs/src/bering-uclibc/buildtool/source/haserl/haserl-0.7.3/src/haserl.c:160:
undefined reference to `rpl_malloc'
haserl.o(.text+0x4a7): In function `ReadCGIPOSTValues':
/root/cvs/src/bering-uclibc/buildtool/source/haserl/haserl-0.7.3/src/haserl.c:324:
undefined reference to `rpl_malloc'
haserl.o(.text+0x723): In function `ReadMimeEncodedInput':
/root/cvs/src/bering-uclibc/buildtool/source/haserl/haserl-0.7.3/src/haserl.c:419:
undefined reference to `rpl_malloc'
haserl.o(.text+0xdbb): In function `PushTokenChain':
/root/cvs/src/bering-uclibc/buildtool/source/haserl/haserl-0.7.3/src/haserl.c:692:
undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
The reason is that the configure script thinks that it doesn't have a glibc
compatible malloc, and so the src/Makefile contains:
LIBOBJS = malloc$U.o
LTLIBOBJS = malloc$U.lo
(and the src/config.h contains
#define malloc rpl_malloc )
If I uncomment all that junk out, then haserl compiles in the uClibc buildtool
environment.
My previous builds of haserl have been from a buildfs from Erik Anderson's
toolkit, so I've never had this problem.
Since malloc is a pretty common function... is there a standard trick to
getting the ./configure script to work correctly? I'm a newbie at autoconf
too - so if there's a test I should put there, that's fine...
You could try removing AC_FUNC_MALLOC in the configure.ac script.
--
Natanael Copa
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel