最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Cygwin下用arm-xscale-linux-gnueabi交叉编译log4c出错:../../src/log4c/.libs/liblog4c.so: undefined reference to ‘rpl_malloc’

Embedded crifan 2329浏览 0评论

【问题】

折腾:

【记录】Cygwin下用arm-xscale-linux-gnueabi交叉编译log4c

期间,解决了:

【已解决】Cygwin下用arm-xscale-linux-gnueabi交叉编译log4c出错:libtool: line 1326: xxx/bin/arm-xscale-linux-gnueabi-gcc: Bad address

结果又出现如下出错:

CLi@PC-CLI-1 ~/develop/log4c/log4c-1.2.1
$ make
make  all-recursive
make[1]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1'
Making all in config
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/config'
Making all in src
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make  all-recursive
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
Making all in sd
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src/sd'
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c -o stack.lo stack.c
mkdir .libs
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c stack.c  -fPIC -DPIC -o .libs/stack.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c stack.c -o stack.o >/dev/null 2>&1
mv -f .deps/stack.Tpo .deps/stack.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c -o list.lo list.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c  -fPIC -DPIC -o .libs/list.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c -o list.o >/dev/null 2>&1
mv -f .deps/list.Tpo .deps/list.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c -o malloc.lo malloc.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c  -fPIC -DPIC -o .libs/malloc.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c -o malloc.o >/dev/null 2>&1
mv -f .deps/malloc.Tpo .deps/malloc.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c -o factory.lo factory.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c factory.c  -fPIC -DPIC -o .libs/factory.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c factory.c -o factory.o >/dev/null 2>&1
mv -f .deps/factory.Tpo .deps/factory.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c -o hash.lo hash.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c hash.c  -fPIC -DPIC -o .libs/hash.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c hash.c -o hash.o >/dev/null 2>&1
mv -f .deps/hash.Tpo .deps/hash.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c -o sprintf.lo sprintf.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c sprintf.c  -fPIC -DPIC -o .libs/sprintf.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c sprintf.c -o sprintf.o >/dev/null 2>&1
mv -f .deps/sprintf.Tpo .deps/sprintf.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c -o test.lo test.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c test.c  -fPIC -DPIC -o .libs/test.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c test.c -o test.o >/dev/null 2>&1
mv -f .deps/test.Tpo .deps/test.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c -o sd_xplatform.lo sd_xplatform.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c sd_xplatform.c  -fPIC -DPIC -o .libs/sd_xplatform.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c sd_xplatform.c -o sd_xplatform.o >/dev/null 2>&1
mv -f .deps/sd_xplatform.Tpo .deps/sd_xplatform.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c  -fPIC -DPIC -o .libs/error.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
mv -f .deps/error.Tpo .deps/error.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c -o domnode-expat.lo domnode-expat.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c domnode-expat.c  -fPIC -DPIC -o .libs/domnode-expat.o
domnode-expat.c: In function 'sd_domnode_load':
domnode-expat.c:429:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
domnode-expat.c: In function 'sd_domnode_store':
domnode-expat.c:444:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c domnode-expat.c -o domnode-expat.o >/dev/null 2>&1
mv -f .deps/domnode-expat.Tpo .deps/domnode-expat.Plo
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall  -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -lexpat  -o liblog4c_sd.la  stack.lo list.lo malloc.lo factory.lo  hash.lo sprintf.lo test.lo sd_xplatform.lo error.lo  domnode-expat.lo   -lpthread
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c_sd.a .libs/stack.o .libs/list.o .libs/malloc.o .libs/factory.o .libs/hash.o .libs/sprintf.o .libs/test.o .libs/sd_xplatform.o .libs/error.o .libs/domnode-expat.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c_sd.a
creating liblog4c_sd.la
(cd .libs && rm -f liblog4c_sd.la && ln -s ../liblog4c_sd.la liblog4c_sd.la)
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src/sd'
Making all in log4c
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src/log4c'
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c -o rc.lo rc.c
mkdir .libs
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c rc.c  -fPIC -DPIC -o .libs/rc.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c rc.c -o rc.o >/dev/null 2>&1
mv -f .deps/rc.Tpo .deps/rc.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c -o init.lo init.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c  -fPIC -DPIC -o .libs/init.o
init.c: In function 'log4c_fini':
init.c:231:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c -o init.o >/dev/null 2>&1
mv -f .deps/init.Tpo .deps/init.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c -o appender_type_stream.lo appender_type_stream.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c appender_type_stream.c  -fPIC -DPIC -o .libs/appender_type_stream.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c appender_type_stream.c -o appender_type_stream.o >/dev/null 2>&1
mv -f .deps/appender_type_stream.Tpo .deps/appender_type_stream.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c -o appender_type_stream2.lo appender_type_stream2.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c appender_type_stream2.c  -fPIC -DPIC -o .libs/appender_type_stream2.o
appender_type_stream2.c: In function 'stream2_get_or_make_udata':
appender_type_stream2.c:136:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c appender_type_stream2.c -o appender_type_stream2.o >/dev/null 2>&1
mv -f .deps/appender_type_stream2.Tpo .deps/appender_type_stream2.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c -o appender_type_syslog.lo appender_type_syslog.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c appender_type_syslog.c  -fPIC -DPIC -o .libs/appender_type_syslog.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c appender_type_syslog.c -o appender_type_syslog.o >/dev/null 2>&1
mv -f .deps/appender_type_syslog.Tpo .deps/appender_type_syslog.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c -o appender_type_mmap.lo appender_type_mmap.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c appender_type_mmap.c  -fPIC -DPIC -o .libs/appender_type_mmap.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c appender_type_mmap.c -o appender_type_mmap.o >/dev/null 2>&1
mv -f .deps/appender_type_mmap.Tpo .deps/appender_type_mmap.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c -o layout_type_basic.lo layout_type_basic.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c layout_type_basic.c  -fPIC -DPIC -o .libs/layout_type_basic.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c layout_type_basic.c -o layout_type_basic.o >/dev/null 2>&1
mv -f .deps/layout_type_basic.Tpo .deps/layout_type_basic.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c -o layout_type_dated.lo layout_type_dated.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c layout_type_dated.c  -fPIC -DPIC -o .libs/layout_type_dated.o
layout_type_dated.c: In function 'dated_format':
layout_type_dated.c:28:2: warning: #warning gmtime() routine should be defined in sd_xplatform [-Wcpp]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c layout_type_dated.c -o layout_type_dated.o >/dev/null 2>&1
mv -f .deps/layout_type_dated.Tpo .deps/layout_type_dated.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c -o layout_type_basic_r.lo layout_type_basic_r.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c layout_type_basic_r.c  -fPIC -DPIC -o .libs/layout_type_basic_r.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c layout_type_basic_r.c -o layout_type_basic_r.o >/dev/null 2>&1
mv -f .deps/layout_type_basic_r.Tpo .deps/layout_type_basic_r.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c -o layout_type_dated_r.lo layout_type_dated_r.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c layout_type_dated_r.c  -fPIC -DPIC -o .libs/layout_type_dated_r.o
layout_type_dated_r.c: In function 'dated_r_format':
layout_type_dated_r.c:28:2: warning: #warning gmtime() routine should be defined in sd_xplatform [-Wcpp]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c layout_type_dated_r.c -o layout_type_dated_r.o >/dev/null 2>&1
mv -f .deps/layout_type_dated_r.Tpo .deps/layout_type_dated_r.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c -o version.lo version.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c  -fPIC -DPIC -o .libs/version.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -o version.o >/dev/null 2>&1
mv -f .deps/version.Tpo .deps/version.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c -o logging_event.lo logging_event.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c logging_event.c  -fPIC -DPIC -o .libs/logging_event.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c logging_event.c -o logging_event.o >/dev/null 2>&1
mv -f .deps/logging_event.Tpo .deps/logging_event.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c -o priority.lo priority.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c priority.c  -fPIC -DPIC -o .libs/priority.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c priority.c -o priority.o >/dev/null 2>&1
mv -f .deps/priority.Tpo .deps/priority.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c -o appender.lo appender.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c appender.c  -fPIC -DPIC -o .libs/appender.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c appender.c -o appender.o >/dev/null 2>&1
mv -f .deps/appender.Tpo .deps/appender.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c -o layout.lo layout.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c layout.c  -fPIC -DPIC -o .libs/layout.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c layout.c -o layout.o >/dev/null 2>&1
mv -f .deps/layout.Tpo .deps/layout.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c -o category.lo category.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c category.c  -fPIC -DPIC -o .libs/category.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c category.c -o category.o >/dev/null 2>&1
mv -f .deps/category.Tpo .deps/category.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c -o appender_type_rollingfile.lo appender_type_rollingfile.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c appender_type_rollingfile.c  -fPIC -DPIC -o .libs/appender_type_rollingfile.o
appender_type_rollingfile.c: In function 'rollingfile_append':
appender_type_rollingfile.c:133:26: warning: unused variable 'my_event' [-Wunused-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c appender_type_rollingfile.c -o appender_type_rollingfile.o >/dev/null 2>&1
mv -f .deps/appender_type_rollingfile.Tpo .deps/appender_type_rollingfile.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c -o rollingpolicy.lo rollingpolicy.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c rollingpolicy.c  -fPIC -DPIC -o .libs/rollingpolicy.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c rollingpolicy.c -o rollingpolicy.o >/dev/null 2>&1
mv -f .deps/rollingpolicy.Tpo .deps/rollingpolicy.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c -o rollingpolicy_type_sizewin.lo rollingpolicy_type_sizewin.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c rollingpolicy_type_sizewin.c  -fPIC -DPIC -o .libs/rollingpolicy_type_sizewin.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c rollingpolicy_type_sizewin.c -o rollingpolicy_type_sizewin.o >/dev/null 2>&1
mv -f .deps/rollingpolicy_type_sizewin.Tpo .deps/rollingpolicy_type_sizewin.Plo
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall  -version-info 4:0:1  -o liblog4c.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib rc.lo init.lo appender_type_stream.lo  appender_type_stream2.lo appender_type_syslog.lo  appender_type_mmap.lo layout_type_basic.lo  layout_type_dated.lo layout_type_basic_r.lo  layout_type_dated_r.lo version.lo logging_event.lo priority.lo  appender.lo layout.lo category.lo appender_type_rollingfile.lo  rollingpolicy.lo  rollingpolicy_type_sizewin.lo ../sd/liblog4c_sd.la -lpthread
arm-xscale-linux-gnueabi-gcc -shared  .libs/rc.o .libs/init.o .libs/appender_type_stream.o .libs/appender_type_stream2.o .libs/appender_type_syslog.o .libs/appender_type_mmap.o .libs/layout_type_basic.o .libs/layout_type_dated.o .libs/layout_type_basic_r.o .libs/layout_type_dated_r.o .libs/version.o .libs/logging_event.o .libs/priority.o .libs/appender.o .libs/layout.o .libs/category.o .libs/appender_type_rollingfile.o .libs/rollingpolicy.o .libs/rollingpolicy_type_sizewin.o -Wl,--whole-archive ../sd/.libs/liblog4c_sd.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread  -Wl,-soname -Wl,liblog4c.so.3 -o .libs/liblog4c.so.3.1.0
(cd .libs && rm -f liblog4c.so.3 && ln -s liblog4c.so.3.1.0 liblog4c.so.3)
(cd .libs && rm -f liblog4c.so && ln -s liblog4c.so.3.1.0 liblog4c.so)
rm -fr .libs/liblog4c.lax
mkdir .libs/liblog4c.lax
rm -fr .libs/liblog4c.lax/liblog4c_sd.a
mkdir .libs/liblog4c.lax/liblog4c_sd.a
(cd .libs/liblog4c.lax/liblog4c_sd.a && arm-xscale-linux-gnueabi-ar x /home/CLi/develop/log4c/log4c-1.2.1/src/log4c/../sd/.libs/liblog4c_sd.a)
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c.a  rc.o init.o appender_type_stream.o appender_type_stream2.o appender_type_syslog.o appender_type_mmap.o layout_type_basic.o layout_type_dated.o layout_type_basic_r.o layout_type_dated_r.o version.o logging_event.o priority.o appender.o layout.o category.o appender_type_rollingfile.o rollingpolicy.o rollingpolicy_type_sizewin.o  .libs/liblog4c.lax/liblog4c_sd.a/domnode-expat.o .libs/liblog4c.lax/liblog4c_sd.a/error.o .libs/liblog4c.lax/liblog4c_sd.a/factory.o .libs/liblog4c.lax/liblog4c_sd.a/hash.o .libs/liblog4c.lax/liblog4c_sd.a/list.o .libs/liblog4c.lax/liblog4c_sd.a/malloc.o .libs/liblog4c.lax/liblog4c_sd.a/sd_xplatform.o .libs/liblog4c.lax/liblog4c_sd.a/sprintf.o .libs/liblog4c.lax/liblog4c_sd.a/stack.o .libs/liblog4c.lax/liblog4c_sd.a/test.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c.a
rm -fr .libs/liblog4c.lax
creating liblog4c.la
(cd .libs && rm -f liblog4c.la && ln -s ../liblog4c.la liblog4c.la)
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src/log4c'
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
Making all in examples
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
Making all in helloworld
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld'
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../src    -g -O2 -Wall -MT helloworld.o -MD -MP -MF .deps/helloworld.Tpo -c -o helloworld.o helloworld.c
helloworld.c: In function 'main':
helloworld.c:6:7: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
mv -f .deps/helloworld.Tpo .deps/helloworld.Po
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o helloworld helloworld.o ../../src/log4c/liblog4c.la -lpthread
mkdir .libs
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/helloworld helloworld.o  ../../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_malloc'
../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_realloc'
collect2: ld returned 1 exit status
Makefile:235: recipe for target `helloworld' failed
make[3]: *** [helloworld] Error 1
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld'
Makefile:355: recipe for target `all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
Makefile:338: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1'
Makefile:226: recipe for target `all' failed
make: *** [all] Error 2

CLi@PC-CLI-1 ~/develop/log4c/log4c-1.2.1
$

即:

../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_malloc’

../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_realloc’

【解决过程】

1.参考:

LOG4C移植到ARM平台流程

去将

log4c-1.2.1\src\config.h.in

中的:

/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc

/* Define to rpl_realloc if the replacement function should be used. */
#undef realloc

改为:

/* Define to rpl_malloc if the replacement function should be used. */
//#undef malloc

/* Define to rpl_realloc if the replacement function should be used. */
//#undef realloc

2.然后:

(1)用make clean全部删除旧的东西;

(2)再去重新配置:

 ./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalelog4c --build=i686-pc-cygwin --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi --with-expat-prefix=$HOME/develop/crosstool-ng/x-tools/armxscaleexpat CC=arm-xscale-linux-gnueabi-gcc

(3)再去make,就可以正常编译了:

CLi@PC-CLI-1 ~/develop/log4c/log4c-1.2.1
$ make
make  all-recursive
make[1]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1'
Making all in config
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/config'
Making all in src
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make  all-recursive
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
Making all in sd
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src/sd'
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c -o stack.lo stack.c
mkdir .libs
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c stack.c  -fPIC -DPIC -o .libs/stack.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT stack.lo -MD -MP -MF .deps/stack.Tpo -c stack.c -o stack.o >/dev/null 2>&1
mv -f .deps/stack.Tpo .deps/stack.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c -o list.lo list.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c  -fPIC -DPIC -o .libs/list.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c -o list.o >/dev/null 2>&1
mv -f .deps/list.Tpo .deps/list.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c -o malloc.lo malloc.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c  -fPIC -DPIC -o .libs/malloc.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT malloc.lo -MD -MP -MF .deps/malloc.Tpo -c malloc.c -o malloc.o >/dev/null 2>&1
mv -f .deps/malloc.Tpo .deps/malloc.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c -o factory.lo factory.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c factory.c  -fPIC -DPIC -o .libs/factory.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT factory.lo -MD -MP -MF .deps/factory.Tpo -c factory.c -o factory.o >/dev/null 2>&1
mv -f .deps/factory.Tpo .deps/factory.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c -o hash.lo hash.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c hash.c  -fPIC -DPIC -o .libs/hash.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT hash.lo -MD -MP -MF .deps/hash.Tpo -c hash.c -o hash.o >/dev/null 2>&1
mv -f .deps/hash.Tpo .deps/hash.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c -o sprintf.lo sprintf.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c sprintf.c  -fPIC -DPIC -o .libs/sprintf.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sprintf.lo -MD -MP -MF .deps/sprintf.Tpo -c sprintf.c -o sprintf.o >/dev/null 2>&1
mv -f .deps/sprintf.Tpo .deps/sprintf.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c -o test.lo test.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c test.c  -fPIC -DPIC -o .libs/test.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT test.lo -MD -MP -MF .deps/test.Tpo -c test.c -o test.o >/dev/null 2>&1
mv -f .deps/test.Tpo .deps/test.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c -o sd_xplatform.lo sd_xplatform.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c sd_xplatform.c  -fPIC -DPIC -o .libs/sd_xplatform.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT sd_xplatform.lo -MD -MP -MF .deps/sd_xplatform.Tpo -c sd_xplatform.c -o sd_xplatform.o >/dev/null 2>&1
mv -f .deps/sd_xplatform.Tpo .deps/sd_xplatform.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c  -fPIC -DPIC -o .libs/error.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
mv -f .deps/error.Tpo .deps/error.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include     -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c -o domnode-expat.lo domnode-expat.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c domnode-expat.c  -fPIC -DPIC -o .libs/domnode-expat.o
domnode-expat.c: In function 'sd_domnode_load':
domnode-expat.c:429:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
domnode-expat.c: In function 'sd_domnode_store':
domnode-expat.c:444:11: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/include -g -O2 -Wall -MT domnode-expat.lo -MD -MP -MF .deps/domnode-expat.Tpo -c domnode-expat.c -o domnode-expat.o >/dev/null 2>&1
mv -f .deps/domnode-expat.Tpo .deps/domnode-expat.Plo
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall  -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -lexpat  -o liblog4c_sd.la  stack.lo list.lo malloc.lo factory.lo  hash.lo sprintf.lo test.lo sd_xplatform.lo error.lo  domnode-expat.lo   -lpthread
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c_sd.a .libs/stack.o .libs/list.o .libs/malloc.o .libs/factory.o .libs/hash.o .libs/sprintf.o .libs/test.o .libs/sd_xplatform.o .libs/error.o .libs/domnode-expat.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c_sd.a
creating liblog4c_sd.la
(cd .libs && rm -f liblog4c_sd.la && ln -s ../liblog4c_sd.la liblog4c_sd.la)
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src/sd'
Making all in log4c
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src/log4c'
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c -o rc.lo rc.c
mkdir .libs
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c rc.c  -fPIC -DPIC -o .libs/rc.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rc.lo -MD -MP -MF .deps/rc.Tpo -c rc.c -o rc.o >/dev/null 2>&1
mv -f .deps/rc.Tpo .deps/rc.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c -o init.lo init.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c  -fPIC -DPIC -o .libs/init.o
init.c: In function 'log4c_fini':
init.c:231:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c -o init.o >/dev/null 2>&1
mv -f .deps/init.Tpo .deps/init.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c -o appender_type_stream.lo appender_type_stream.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c appender_type_stream.c  -fPIC -DPIC -o .libs/appender_type_stream.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream.lo -MD -MP -MF .deps/appender_type_stream.Tpo -c appender_type_stream.c -o appender_type_stream.o >/dev/null 2>&1
mv -f .deps/appender_type_stream.Tpo .deps/appender_type_stream.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c -o appender_type_stream2.lo appender_type_stream2.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c appender_type_stream2.c  -fPIC -DPIC -o .libs/appender_type_stream2.o
appender_type_stream2.c: In function 'stream2_get_or_make_udata':
appender_type_stream2.c:136:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_stream2.lo -MD -MP -MF .deps/appender_type_stream2.Tpo -c appender_type_stream2.c -o appender_type_stream2.o >/dev/null 2>&1
mv -f .deps/appender_type_stream2.Tpo .deps/appender_type_stream2.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c -o appender_type_syslog.lo appender_type_syslog.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c appender_type_syslog.c  -fPIC -DPIC -o .libs/appender_type_syslog.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_syslog.lo -MD -MP -MF .deps/appender_type_syslog.Tpo -c appender_type_syslog.c -o appender_type_syslog.o >/dev/null 2>&1
mv -f .deps/appender_type_syslog.Tpo .deps/appender_type_syslog.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c -o appender_type_mmap.lo appender_type_mmap.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c appender_type_mmap.c  -fPIC -DPIC -o .libs/appender_type_mmap.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_mmap.lo -MD -MP -MF .deps/appender_type_mmap.Tpo -c appender_type_mmap.c -o appender_type_mmap.o >/dev/null 2>&1
mv -f .deps/appender_type_mmap.Tpo .deps/appender_type_mmap.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c -o layout_type_basic.lo layout_type_basic.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c layout_type_basic.c  -fPIC -DPIC -o .libs/layout_type_basic.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic.lo -MD -MP -MF .deps/layout_type_basic.Tpo -c layout_type_basic.c -o layout_type_basic.o >/dev/null 2>&1
mv -f .deps/layout_type_basic.Tpo .deps/layout_type_basic.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c -o layout_type_dated.lo layout_type_dated.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c layout_type_dated.c  -fPIC -DPIC -o .libs/layout_type_dated.o
layout_type_dated.c: In function 'dated_format':
layout_type_dated.c:28:2: warning: #warning gmtime() routine should be defined in sd_xplatform [-Wcpp]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated.lo -MD -MP -MF .deps/layout_type_dated.Tpo -c layout_type_dated.c -o layout_type_dated.o >/dev/null 2>&1
mv -f .deps/layout_type_dated.Tpo .deps/layout_type_dated.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c -o layout_type_basic_r.lo layout_type_basic_r.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c layout_type_basic_r.c  -fPIC -DPIC -o .libs/layout_type_basic_r.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_basic_r.lo -MD -MP -MF .deps/layout_type_basic_r.Tpo -c layout_type_basic_r.c -o layout_type_basic_r.o >/dev/null 2>&1
mv -f .deps/layout_type_basic_r.Tpo .deps/layout_type_basic_r.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c -o layout_type_dated_r.lo layout_type_dated_r.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c layout_type_dated_r.c  -fPIC -DPIC -o .libs/layout_type_dated_r.o
layout_type_dated_r.c: In function 'dated_r_format':
layout_type_dated_r.c:28:2: warning: #warning gmtime() routine should be defined in sd_xplatform [-Wcpp]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout_type_dated_r.lo -MD -MP -MF .deps/layout_type_dated_r.Tpo -c layout_type_dated_r.c -o layout_type_dated_r.o >/dev/null 2>&1
mv -f .deps/layout_type_dated_r.Tpo .deps/layout_type_dated_r.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c -o version.lo version.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c  -fPIC -DPIC -o .libs/version.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -o version.o >/dev/null 2>&1
mv -f .deps/version.Tpo .deps/version.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c -o logging_event.lo logging_event.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c logging_event.c  -fPIC -DPIC -o .libs/logging_event.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT logging_event.lo -MD -MP -MF .deps/logging_event.Tpo -c logging_event.c -o logging_event.o >/dev/null 2>&1
mv -f .deps/logging_event.Tpo .deps/logging_event.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c -o priority.lo priority.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c priority.c  -fPIC -DPIC -o .libs/priority.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT priority.lo -MD -MP -MF .deps/priority.Tpo -c priority.c -o priority.o >/dev/null 2>&1
mv -f .deps/priority.Tpo .deps/priority.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c -o appender.lo appender.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c appender.c  -fPIC -DPIC -o .libs/appender.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender.lo -MD -MP -MF .deps/appender.Tpo -c appender.c -o appender.o >/dev/null 2>&1
mv -f .deps/appender.Tpo .deps/appender.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c -o layout.lo layout.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c layout.c  -fPIC -DPIC -o .libs/layout.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT layout.lo -MD -MP -MF .deps/layout.Tpo -c layout.c -o layout.o >/dev/null 2>&1
mv -f .deps/layout.Tpo .deps/layout.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c -o category.lo category.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c category.c  -fPIC -DPIC -o .libs/category.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT category.lo -MD -MP -MF .deps/category.Tpo -c category.c -o category.o >/dev/null 2>&1
mv -f .deps/category.Tpo .deps/category.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c -o appender_type_rollingfile.lo appender_type_rollingfile.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c appender_type_rollingfile.c  -fPIC -DPIC -o .libs/appender_type_rollingfile.o
appender_type_rollingfile.c: In function 'rollingfile_append':
appender_type_rollingfile.c:133:26: warning: unused variable 'my_event' [-Wunused-variable]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT appender_type_rollingfile.lo -MD -MP -MF .deps/appender_type_rollingfile.Tpo -c appender_type_rollingfile.c -o appender_type_rollingfile.o >/dev/null 2>&1
mv -f .deps/appender_type_rollingfile.Tpo .deps/appender_type_rollingfile.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c -o rollingpolicy.lo rollingpolicy.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c rollingpolicy.c  -fPIC -DPIC -o .libs/rollingpolicy.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy.lo -MD -MP -MF .deps/rollingpolicy.Tpo -c rollingpolicy.c -o rollingpolicy.o >/dev/null 2>&1
mv -f .deps/rollingpolicy.Tpo .deps/rollingpolicy.Plo
/bin/sh ../../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src  -DLOG4C_RCPATH="\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\""     -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c -o rollingpolicy_type_sizewin.lo rollingpolicy_type_sizewin.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c rollingpolicy_type_sizewin.c  -fPIC -DPIC -o .libs/rollingpolicy_type_sizewin.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOG4C_RCPATH=\"/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/etc\" -g -O2 -Wall -MT rollingpolicy_type_sizewin.lo -MD -MP -MF .deps/rollingpolicy_type_sizewin.Tpo -c rollingpolicy_type_sizewin.c -o rollingpolicy_type_sizewin.o >/dev/null 2>&1
mv -f .deps/rollingpolicy_type_sizewin.Tpo .deps/rollingpolicy_type_sizewin.Plo
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall  -version-info 4:0:1  -o liblog4c.la -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib rc.lo init.lo appender_type_stream.lo  appender_type_stream2.lo appender_type_syslog.lo  appender_type_mmap.lo layout_type_basic.lo  layout_type_dated.lo layout_type_basic_r.lo  layout_type_dated_r.lo version.lo logging_event.lo priority.lo  appender.lo layout.lo category.lo appender_type_rollingfile.lo  rollingpolicy.lo  rollingpolicy_type_sizewin.lo ../sd/liblog4c_sd.la -lpthread
arm-xscale-linux-gnueabi-gcc -shared  .libs/rc.o .libs/init.o .libs/appender_type_stream.o .libs/appender_type_stream2.o .libs/appender_type_syslog.o .libs/appender_type_mmap.o .libs/layout_type_basic.o .libs/layout_type_dated.o .libs/layout_type_basic_r.o .libs/layout_type_dated_r.o .libs/version.o .libs/logging_event.o .libs/priority.o .libs/appender.o .libs/layout.o .libs/category.o .libs/appender_type_rollingfile.o .libs/rollingpolicy.o .libs/rollingpolicy_type_sizewin.o -Wl,--whole-archive ../sd/.libs/liblog4c_sd.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread  -Wl,-soname -Wl,liblog4c.so.3 -o .libs/liblog4c.so.3.1.0
(cd .libs && rm -f liblog4c.so.3 && ln -s liblog4c.so.3.1.0 liblog4c.so.3)
(cd .libs && rm -f liblog4c.so && ln -s liblog4c.so.3.1.0 liblog4c.so)
rm -fr .libs/liblog4c.lax
mkdir .libs/liblog4c.lax
rm -fr .libs/liblog4c.lax/liblog4c_sd.a
mkdir .libs/liblog4c.lax/liblog4c_sd.a
(cd .libs/liblog4c.lax/liblog4c_sd.a && arm-xscale-linux-gnueabi-ar x /home/CLi/develop/log4c/log4c-1.2.1/src/log4c/../sd/.libs/liblog4c_sd.a)
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c.a  rc.o init.o appender_type_stream.o appender_type_stream2.o appender_type_syslog.o appender_type_mmap.o layout_type_basic.o layout_type_dated.o layout_type_basic_r.o layout_type_dated_r.o version.o logging_event.o priority.o appender.o layout.o category.o appender_type_rollingfile.o rollingpolicy.o rollingpolicy_type_sizewin.o  .libs/liblog4c.lax/liblog4c_sd.a/domnode-expat.o .libs/liblog4c.lax/liblog4c_sd.a/error.o .libs/liblog4c.lax/liblog4c_sd.a/factory.o .libs/liblog4c.lax/liblog4c_sd.a/hash.o .libs/liblog4c.lax/liblog4c_sd.a/list.o .libs/liblog4c.lax/liblog4c_sd.a/malloc.o .libs/liblog4c.lax/liblog4c_sd.a/sd_xplatform.o .libs/liblog4c.lax/liblog4c_sd.a/sprintf.o .libs/liblog4c.lax/liblog4c_sd.a/stack.o .libs/liblog4c.lax/liblog4c_sd.a/test.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c.a
rm -fr .libs/liblog4c.lax
creating liblog4c.la
(cd .libs && rm -f liblog4c.la && ln -s ../liblog4c.la liblog4c.la)
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src/log4c'
make[4]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[4]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/src'
Making all in examples
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
Making all in helloworld
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld'
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../src    -g -O2 -Wall -MT helloworld.o -MD -MP -MF .deps/helloworld.Tpo -c -o helloworld.o helloworld.c
helloworld.c: In function 'main':
helloworld.c:6:7: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
mv -f .deps/helloworld.Tpo .deps/helloworld.Po
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o helloworld helloworld.o ../../src/log4c/liblog4c.la -lpthread
mkdir .libs
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/helloworld helloworld.o  ../../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
creating helloworld
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld'
Making all in helloworld1
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld1'
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../src    -g -O2 -Wall -MT helloworld1.o -MD -MP -MF .deps/helloworld1.Tpo -c -o helloworld1.o helloworld1.c
mv -f .deps/helloworld1.Tpo .deps/helloworld1.Po
/bin/sh ../../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o helloworld1 helloworld1.o ../../src/log4c/liblog4c.la -lpthread
mkdir .libs
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/helloworld1 helloworld1.o  ../../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
creating helloworld1
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples/helloworld1'
make[3]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
/bin/sh ../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src   -I../src   -g -O2 -Wall -MT example_formatters.lo -MD -MP -MF .deps/example_formatters.Tpo -c -o example_formatters.lo example_formatters.c
mkdir .libs
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT example_formatters.lo -MD -MP -MF .deps/example_formatters.Tpo -c example_formatters.c  -fPIC -DPIC -o .libs/example_formatters.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT example_formatters.lo -MD -MP -MF .deps/example_formatters.Tpo -c example_formatters.c -o example_formatters.o >/dev/null 2>&1
mv -f .deps/example_formatters.Tpo .deps/example_formatters.Plo
/bin/sh ../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src   -I../src   -g -O2 -Wall -MT example_appenders.lo -MD -MP -MF .deps/example_appenders.Tpo -c -o example_appenders.lo example_appenders.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT example_appenders.lo -MD -MP -MF .deps/example_appenders.Tpo -c example_appenders.c  -fPIC -DPIC -o .libs/example_appenders.o
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT example_appenders.lo -MD -MP -MF .deps/example_appenders.Tpo -c example_appenders.c -o example_appenders.o >/dev/null 2>&1
mv -f .deps/example_appenders.Tpo .deps/example_appenders.Plo
/bin/sh ../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o liblog4c_examples.la  example_formatters.lo  example_appenders.lo  -lpthread
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c_examples.a .libs/example_formatters.o .libs/example_appenders.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c_examples.a
creating liblog4c_examples.la
(cd .libs && rm -f liblog4c_examples.la && ln -s ../liblog4c_examples.la liblog4c_examples.la)
/bin/sh ../libtool --tag=CC    --mode=compile arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src   -I../src   -g -O2 -Wall -MT userloc_formatter.lo -MD -MP -MF .deps/userloc_formatter.Tpo -c -o userloc_formatter.lo userloc_formatter.c
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT userloc_formatter.lo -MD -MP -MF .deps/userloc_formatter.Tpo -c userloc_formatter.c  -fPIC -DPIC -o .libs/userloc_formatter.o
userloc_formatter.c: In function 'userloc_format':
userloc_formatter.c:30:5: warning: implicit declaration of function 'sd_debug' [-Wimplicit-function-declaration]
 arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -g -O2 -Wall -MT userloc_formatter.lo -MD -MP -MF .deps/userloc_formatter.Tpo -c userloc_formatter.c -o userloc_formatter.o >/dev/null 2>&1
mv -f .deps/userloc_formatter.Tpo .deps/userloc_formatter.Plo
/bin/sh ../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o liblog4c_userloc.la  userloc_formatter.lo  -lpthread
arm-xscale-linux-gnueabi-ar cru .libs/liblog4c_userloc.a .libs/userloc_formatter.o
arm-xscale-linux-gnueabi-ranlib .libs/liblog4c_userloc.a
creating liblog4c_userloc.la
(cd .libs && rm -f liblog4c_userloc.la && ln -s ../liblog4c_userloc.la liblog4c_userloc.la)
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src  -I../src    -g -O2 -Wall -MT application_1.o -MD -MP -MF .deps/application_1.Tpo -c -o application_1.o application_1.c
mv -f .deps/application_1.Tpo .deps/application_1.Po
/bin/sh ../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o application_1 application_1.o ../src/log4c/liblog4c.la -lpthread
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/application_1 application_1.o  ../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
creating application_1
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src  -I../src    -g -O2 -Wall -MT application_2.o -MD -MP -MF .deps/application_2.Tpo -c -o application_2.o application_2.c
mv -f .deps/application_2.Tpo .deps/application_2.Po
/bin/sh ../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o application_2 application_2.o liblog4c_examples.la  ../src/log4c/liblog4c.la -lpthread
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/application_2 application_2.o  ./.libs/liblog4c_examples.a ../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
creating application_2
arm-xscale-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../src  -I../src    -g -O2 -Wall -MT application_3.o -MD -MP -MF .deps/application_3.Tpo -c -o application_3.o application_3.c
mv -f .deps/application_3.Tpo .deps/application_3.Po
/bin/sh ../libtool --tag=CC    --mode=link arm-xscale-linux-gnueabi-gcc  -g -O2 -Wall    -o application_3 application_3.o liblog4c_userloc.la  liblog4c_examples.la  ../src/log4c/liblog4c.la -lpthread
arm-xscale-linux-gnueabi-gcc -g -O2 -Wall -o .libs/application_3 application_3.o  ./.libs/liblog4c_userloc.a ./.libs/liblog4c_examples.a ../src/log4c/.libs/liblog4c.so -L/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib /home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib/libexpat.so -lpthread -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscalelog4c/lib -Wl,--rpath -Wl,/home/CLi/develop/crosstool-ng/x-tools/armxscaleexpat/lib
creating application_3
make[3]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1/examples'
make[2]: Entering directory `/home/CLi/develop/log4c/log4c-1.2.1'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1'
make[1]: Leaving directory `/home/CLi/develop/log4c/log4c-1.2.1'

CLi@PC-CLI-1 ~/develop/log4c/log4c-1.2.1
$

 

【总结】

Cygwin下用arm-xscale-linux-gnueabi交叉编译log4c出现:

../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_malloc’

../../src/log4c/.libs/liblog4c.so: undefined reference to `rpl_realloc’

的错误时,解决办法是:

log4c-1.2.1\src\config.h.in

中的:

/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc

/* Define to rpl_realloc if the replacement function should be used. */
#undef realloc

改为:

/* Define to rpl_malloc if the replacement function should be used. */
//#undef malloc

/* Define to rpl_realloc if the replacement function should be used. */
//#undef realloc

2.然后:

(1)用make clean全部删除旧的东西;

(2)再去重新配置:

 ./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalelog4c --build=i686-pc-cygwin --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi --with-expat-prefix=$HOME/develop/crosstool-ng/x-tools/armxscaleexpat CC=arm-xscale-linux-gnueabi-gcc

(3)再去make,就可以正常编译了。

转载请注明:在路上 » 【已解决】Cygwin下用arm-xscale-linux-gnueabi交叉编译log4c出错:../../src/log4c/.libs/liblog4c.so: undefined reference to ‘rpl_malloc’

与本文相关的文章

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
81 queries in 0.198 seconds, using 22.43MB memory