OpenWrt Forum Archive

Topic: Problem with 'rpl_malloc'

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all, I have some problems when my program comes to linking :

: undefined reference to `rpl_malloc'
main.o(.text+0x12e0): In function `main':
: undefined reference to `rpl_malloc'
queue.o(.text+0x24): In function `queue_init':

I think it comes either from the uClibc or the libpthread, but I can't get rid of these errors. So if anyone has an idea, suggestion ... Thanks a lot by advance.

Check the configure script for lines like :

echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_malloc_0_nonnull=no
else
  ...

If you find them, you can invoke configure with :

ac_cv_func_malloc_0_nonnull=yes 
./configure

--
Nico

Thanks a lot Nico, now I have 2 packages that are working well smile

The discussion might have continued from here.