Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#61 rpl_realloc and rpl_malloc undefined when building on uclibc

open
nobody
None
5
2012-10-30
2012-10-30
Alexander Varnin
No

macro AC_FUNC_MALLOC and AC_FUNC_REALLOC defined in configure.ac lead to build error, when building for ARM and uClibc.

possible workaround is to remove AC_FUNC_REALLOC and AC_FUNC_MALLOC from configure.ac

Here is some of compiler output:
/home/varnin/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -W -Wno-sign-compare -D_REENTRANT -I/home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/glib-2.0 -I/home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -I/home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/include/fuse -o curlftpfs ftpfs.o /home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libiconv.so libcurlftpfs.a /home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libglib-2.0.so /home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libintl.so /home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libfuse.so /home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libcurl.so -lpthread -Wl,--rpath -Wl,/home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib -Wl,--rpath -Wl,/home/varnin/buildroot/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib
ftpfs.o: In function `checkpasswd':
ftpfs.c:(.text+0x78): undefined reference to `rpl_realloc'
ftpfs.o: In function `buf_add_mem':
ftpfs.c:(.text+0xe4): undefined reference to `rpl_realloc'
ftpfs.o: In function `ftpfs_open_common':
ftpfs.c:(.text+0x3a04): undefined reference to `rpl_malloc'
libcurlftpfs.a(charset_utils.o): In function `convert_charsets':
charset_utils.c:(.text+0x68): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status

Discussion