From 3b50ad308fc09092440466535502c3167835b36e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 29 Oct 2005 06:34:54 +0000 Subject: add an entry about gnu malloc compat option --- docs/uclibc.org/FAQ.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/uclibc.org/FAQ.html b/docs/uclibc.org/FAQ.html index c3505a785..d129089e7 100644 --- a/docs/uclibc.org/FAQ.html +++ b/docs/uclibc.org/FAQ.html @@ -26,6 +26,8 @@ have additions to this FAQ document, we would love to add them,
  • I think I found a bug in uClibc! What should I do?!
  • My package builds fine but link fails with errors like "undefined reference to __fputc_unlocked", who do I blame?! +
  • My package builds fine but link fails with errors like "undefined reference + to rpl_realloc / rpl_malloc", who do I blame?!
  • Why do I keep getting "sh: can't access tty; job control turned off" errors? Why doesn't Control-C work within my shell?
  • How do I make autoconf and automake behave? @@ -396,6 +398,24 @@ How could it be smaller and not suck? just expands to -I/usr/include). +
    +

    +

    My package builds fine but link fails with errors like "undefined reference + to rpl_realloc / rpl_malloc", who do I blame?!

    +

    + + This error crops up because you didn't enable MALLOC_GLIBC_COMPAT support. + Configure scripts detect whether your libc supports "GNU malloc" features by + seeing whether malloc(0) returns NULL (glibc malloc(0) will return a non NULL + pointer). uClibc defaults to malloc(0) returning NULL so autoconf will assume + malloc from your libc sucks and procede to try and compile the malloc replacement + version in the gnulib addon. However, since not many packages include gnulib, + they will fail to link with rpl_realloc / rpl_malloc errors. You could force + configure to assume working behavior by exporting the variables 'jm_cv_func_working_malloc' + (older autoconf) and 'ac_cv_func_malloc_0_nonnull' (newer autoconf) to 'yes' + before running `./configure`. + +


    Why do I keep getting "sh: can't access tty; job control -- cgit v1.2.3