【问题】
折腾:
【记录】Cygwin下用arm-xscale-linux-gnueabi交叉编译xmlrpc
期间,去编译,然后出错:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' echo "#define XMLRPC_HAVE_WCHAR 1" >xmlrpc-c/config.h make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. cmdline_parser.c mkdir .libs arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. cmdline_parser.c -fPIC -DPIC -o .libs/cmdline_parser.lo arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. cmdline_parser.c -o cmdline_parser.o >/dev/null 2>&1 mv -f .libs/cmdline_parser.lo cmdline_parser.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. getoptx.c rm -f .libs/getoptx.lo arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. getoptx.c -fPIC -DPIC -o .libs/getoptx.lo arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. getoptx.c -o getoptx.o >/dev/null 2>&1 mv -f .libs/getoptx.lo getoptx.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. casprintf.c rm -f .libs/casprintf.lo arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. casprintf.c -fPIC -DPIC -o .libs/casprintf.lo arm-xscale-linux-gnueabi-gcc -c -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -Iinclude -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util/../.. casprintf.c -o casprintf.o >/dev/null 2>&1 mv -f .libs/casprintf.lo casprintf.lo make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' ln -s /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. srcdir ln -s ../.. blddir /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 casprintf.c mkdir .libs arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 casprintf.c -fPIC -DPIC -o .libs/casprintf.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 casprintf.c -o casprintf.o >/dev/null 2>&1 mv -f .libs/casprintf.lo casprintf.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 error.c rm -f .libs/error.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 error.c -fPIC -DPIC -o .libs/error.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 error.c -o error.o >/dev/null 2>&1 mv -f .libs/error.lo error.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 make_printable.c rm -f .libs/make_printable.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 make_printable.c -fPIC -DPIC -o .libs/make_printable.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 make_printable.c -o make_printable.o >/dev/null 2>&1 mv -f .libs/make_printable.lo make_printable.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 memblock.c rm -f .libs/memblock.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 memblock.c -fPIC -DPIC -o .libs/memblock.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 memblock.c -o memblock.o >/dev/null 2>&1 mv -f .libs/memblock.lo memblock.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 resource.c rm -f .libs/resource.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 resource.c -fPIC -DPIC -o .libs/resource.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 resource.c -o resource.o >/dev/null 2>&1 mv -f .libs/resource.lo resource.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 sleep.c rm -f .libs/sleep.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 sleep.c -fPIC -DPIC -o .libs/sleep.lo arm-xscale-linux-gnueabi-gcc -c -Iblddir -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../.. -Isrcdir/include -Isrcdir/lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 sleep.c -o sleep.o >/dev/null 2>&1 mv -f .libs/sleep.lo sleep.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil/../../libtool --mode=link arm-xscale-linux-gnueabi-gcc -o libxmlrpc_util.la -version-info 9:15:6 -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalexmlrpc/lib casprintf.lo error.lo make_printable.lo memblock.lo resource.lo sleep.lo rm -fr .libs/libxmlrpc_util.la .libs/libxmlrpc_util.* .libs/libxmlrpc_util.* *** Warning: This library needs some functionality provided by -lc. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. arm-xscale-linux-gnueabi-gcc -shared casprintf.lo error.lo make_printable.lo memblock.lo resource.lo sleep.lo -Wl,-soname -Wl,libxmlrpc_util.so.3 -o .libs/libxmlrpc_util.so.3.6.15 (cd .libs && rm -f libxmlrpc_util.so.3 && ln -s libxmlrpc_util.so.3.6.15 libxmlrpc_util.so.3) (cd .libs && rm -f libxmlrpc_util.so && ln -s libxmlrpc_util.so.3.6.15 libxmlrpc_util.so) ar cru .libs/libxmlrpc_util.a casprintf.o error.o make_printable.o memblock.o resource.o sleep.o ranlib .libs/libxmlrpc_util.a creating libxmlrpc_util.la (cd .libs && rm -f libxmlrpc_util.la && ln -s ../libxmlrpc_util.la libxmlrpc_util.la) make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conf.c mkdir .libs arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conf.c -fPIC -DPIC -o .libs/conf.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conf.c -o conf.o >/dev/null 2>&1 mv -f .libs/conf.lo conf.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conn.c rm -f .libs/conn.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conn.c -fPIC -DPIC -o .libs/conn.lo conn.c: In function 'ConnRead': conn.c:340:25: warning: pointer targets in passing argument 2 of 'SocketRead' differ in signedness [-Wpointer-sign] socket.h:106:1: note: expected 'unsigned char * const' but argument is of type 'char *' arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX conn.c -o conn.o >/dev/null 2>&1 mv -f .libs/conn.lo conn.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX data.c rm -f .libs/data.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX data.c -fPIC -DPIC -o .libs/data.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX data.c -o data.o >/dev/null 2>&1 mv -f .libs/data.lo data.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX date.c rm -f .libs/date.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX date.c -fPIC -DPIC -o .libs/date.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX date.c -o date.o >/dev/null 2>&1 mv -f .libs/date.lo date.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX file.c rm -f .libs/file.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX file.c -fPIC -DPIC -o .libs/file.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX file.c -o file.o >/dev/null 2>&1 mv -f .libs/file.lo file.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX http.c rm -f .libs/http.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX http.c -fPIC -DPIC -o .libs/http.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX http.c -o http.o >/dev/null 2>&1 mv -f .libs/http.lo http.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX response.c rm -f .libs/response.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX response.c -fPIC -DPIC -o .libs/response.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX response.c -o response.o >/dev/null 2>&1 mv -f .libs/response.lo response.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX server.c rm -f .libs/server.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX server.c -fPIC -DPIC -o .libs/server.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX server.c -o server.o >/dev/null 2>&1 mv -f .libs/server.lo server.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX session.c rm -f .libs/session.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX session.c -fPIC -DPIC -o .libs/session.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX session.c -o session.o >/dev/null 2>&1 mv -f .libs/session.lo session.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket.c rm -f .libs/socket.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket.c -fPIC -DPIC -o .libs/socket.lo socket.c: In function 'SocketRead': socket.c:146:5: warning: pointer targets in passing argument 2 of 'socketP->vtbl.read' differ in signedness [-Wpointer-sign] socket.c:146:5: note: expected 'char * const' but argument is of type 'unsigned char * const' arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket.c -o socket.o >/dev/null 2>&1 mv -f .libs/socket.lo socket.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket_unix.c rm -f .libs/socket_unix.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket_unix.c -fPIC -DPIC -o .libs/socket_unix.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX socket_unix.c -o socket_unix.o >/dev/null 2>&1 mv -f .libs/socket_unix.lo socket_unix.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX token.c rm -f .libs/token.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX token.c -fPIC -DPIC -o .libs/token.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX token.c -o token.o >/dev/null 2>&1 mv -f .libs/token.lo token.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX thread_pthread.c rm -f .libs/thread_pthread.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX thread_pthread.c -fPIC -DPIC -o .libs/thread_pthread.lo thread_pthread.c: In function 'pthreadStart': thread_pthread.c:49:5: warning: suggest braces around empty body in 'do' statement [-Wempty-body] arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX thread_pthread.c -o thread_pthread.o >/dev/null 2>&1 mv -f .libs/thread_pthread.lo thread_pthread.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include \ -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX trace.c rm -f .libs/trace.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX trace.c -fPIC -DPIC -o .libs/trace.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 -D_UNIX trace.c -o trace.o >/dev/null 2>&1 mv -f .libs/trace.lo trace.lo /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src/../../../libtool --mode=link arm-xscale-linux-gnueabi-gcc -o libxmlrpc_abyss.la -version-info 9:15:6 -rpath /home/CLi/develop/crosstool-ng/x-tools/armxscalexmlrpc/lib conf.lo conn.lo data.lo date.lo file.lo http.lo response.lo server.lo session.lo socket.lo socket_unix.lo token.lo thread_pthread.lo trace.lo rm -fr .libs/libxmlrpc_abyss.la .libs/libxmlrpc_abyss.* .libs/libxmlrpc_abyss.* *** Warning: This library needs some functionality provided by -lc. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. arm-xscale-linux-gnueabi-gcc -shared conf.lo conn.lo data.lo date.lo file.lo http.lo response.lo server.lo session.lo socket.lo socket_unix.lo token.lo thread_pthread.lo trace.lo -Wl,-soname -Wl,libxmlrpc_abyss.so.3 -o .libs/libxmlrpc_abyss.so.3.6.15 (cd .libs && rm -f libxmlrpc_abyss.so.3 && ln -s libxmlrpc_abyss.so.3.6.15 libxmlrpc_abyss.so.3) (cd .libs && rm -f libxmlrpc_abyss.so && ln -s libxmlrpc_abyss.so.3.6.15 libxmlrpc_abyss.so) ar cru .libs/libxmlrpc_abyss.a conf.o conn.o data.o date.o file.o http.o response.o server.o session.o socket.o socket_unix.o token.o thread_pthread.o trace.o ranlib .libs/libxmlrpc_abyss.a creating libxmlrpc_abyss.la (cd .libs && rm -f libxmlrpc_abyss.la && ln -s ../libxmlrpc_abyss.la libxmlrpc_abyss.la) make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' make -C ../../ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../GNUmakefile version.h make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31' rm -f version.h echo '/* This file was generated by a make rule */' >>version.h echo '#define XMLRPC_C_VERSION "1.06.31"' >>version.h make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31' ln -s ../../version.h version.h /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c mkdir .libs arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2 CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
【解决过程】
1.之前是看到:
中,提到说是xmlrpc需要curl库的支持,所以,需要去添加上对应的路径,让其能找到curl。
2.先去看看,configure支持哪些参数:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ ./configure --help `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-wininet-client Don't build the Wininet client transport --disable-curl-client Don't build the Curl client transport --disable-libwww-client Don't build the Libwww client transport --disable-abyss-server Don't build the Abyss server module --disable-cgi-server Don't build the CGI server module --disable-cplusplus Don't build the C++ wrapper classes or tools --disable-abyss-threads Use fork in Abyss instead of pthreads --enable-libxml2-backend Use libxml2 instead of built-in expat --enable-shared=PKGS build shared libraries default=yes --enable-static=PKGS build static libraries default=yes --enable-fast-install=PKGS optimize for fast installation default=yes --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libwww-ssl Include libwww SSL capability. --with-gnu-ld assume the C compiler uses GNU ld default=no Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
3.其中,此处之前是已经通过:
【记录】Cygwin下用arm-xscale-linux-gnueabi-gcc交叉编译curl(libcurl)
去编译并安装好了curl的:
此处的路径是:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ ls /home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl/ -l total 153 -rw-r--r-- 1 CLi Domänen-Benutzer 67188 Aug 2 11:04 curl.h -rw-r--r-- 1 CLi Domänen-Benutzer 5868 Aug 2 11:04 curlbuild.h -rw-r--r-- 1 CLi Domänen-Benutzer 7484 Aug 2 11:04 curlrules.h -rw-r--r-- 1 CLi Domänen-Benutzer 2805 Aug 2 11:04 curlver.h -rw-r--r-- 1 CLi Domänen-Benutzer 3532 Aug 2 11:04 easy.h -rw-r--r-- 1 CLi Domänen-Benutzer 2854 Aug 2 11:04 mprintf.h -rw-r--r-- 1 CLi Domänen-Benutzer 13043 Aug 2 11:04 multi.h -rw-r--r-- 1 CLi Domänen-Benutzer 1390 Aug 2 11:04 stdcheaders.h -rw-r--r-- 1 CLi Domänen-Benutzer 33343 Aug 2 11:04 typecheck-gcc.h -rw-r--r-- 1 CLi Domänen-Benutzer 15 Aug 2 11:04 types.h
4.所以,去试试,能否把include文件夹,通过CPPFLAGS添加进去:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make CPPFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2
结果错误依旧。
5.再去试试:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make CPPFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2
还是错误依旧。
6.很明显,此处添加的include,没有传递进去。
所以,重新去:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ CPPFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2
结果还是不行。
7.参考:
https://github.com/ensc/xmlrpc-c/blob/master/doc/configure_doc
去:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ CPPFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include ./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalexmlrpc --host=arm-linux CC=arm-xscale-linux-gnueabi-gcc configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking build system type... i686-pc-cygwin checking host system type... arm-unknown-linux-gnu checking for wininet-config... no configure: You don't appear to have Wininet installed (no working wininet-config in your command search path), so we will not build the Wininet client XML transport checking whether to build Wininet client XML transport module... no checking for curl-config... yes checking whether to build Curl client XML transport module... yes checking for libwww-config... no configure: You don't appear to have Libwww installed (no working libwww-config in your command search path), so we will not build the Libwww client XML transport checking whether to build Libwww client XML transport module... no checking whether to build Abyss server module... yes checking whether to build CGI server module... yes checking whether to build C++ wrappers and tools... yes checking for arm-linux-gcc... arm-xscale-linux-gnueabi-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-xscale-linux-gnueabi-gcc accepts -g... yes checking for arm-xscale-linux-gnueabi-gcc option to accept ANSI C... none needed checking for arm-linux-g++... no checking for arm-linux-c++... no checking for arm-linux-gpp... no checking for arm-linux-aCC... no checking for arm-linux-CC... no checking for arm-linux-cxx... no checking for arm-linux-cc++... no checking for arm-linux-cl... no checking for arm-linux-FCC... no checking for arm-linux-KCC... no checking for arm-linux-RCC... no checking for arm-linux-xlC_r... no checking for arm-linux-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for socket... yes checking how to run the C preprocessor... arm-xscale-linux-gnueabi-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for size_t... yes checking whether va_list is an array... no checking whether compiler has __attribute__... yes checking for vsnprintf... yes checking for wcsncmp... yes checking for setgroups... yes checking for asprintf... yes checking for setenv... yes checking whether to use Abyss pthread function... yes checking for curl-xmlrpc-config... no checking for curl-config... /usr/bin/curl-config checking for curl library directory... /usr/lib checking whether to use SSL with libwww... no checking whether to build the libxml2 backend... no checking for arm-linux-ranlib... no checking for ranlib... ranlib checking for ld used by GCC... /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking for object suffix... o checking for executable suffix... no checking for arm-xscale-linux-gnueabi-gcc option to produce PIC... -fPIC checking if arm-xscale-linux-gnueabi-gcc PIC flag -fPIC works... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.lo... yes checking if arm-xscale-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions ... no checking if arm-xscale-linux-gnueabi-gcc static flag -static works... -static checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking whether the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes *** Warning: the command libtool uses to detect shared libraries, *** /usr/bin/file, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** [email protected] checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool configure: creating ./config.status config.status: creating xmlrpc-c-config config.status: creating xmlrpc-c-config.test config.status: creating Makefile.config config.status: creating xmlrpc_config.h config.status: creating xmlrpc_amconfig.h config.status: xmlrpc_amconfig.h is unchanged config.status: executing default-1 commands CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
再去编译试试,结果问题依旧:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2 CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
8.后来注意到,或许是应该修改CFLAGS,结果也不对:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2
9.另外的先设置变量再make,也不对:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include/curl CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2 CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
10.另外include地址不带curl,也不对:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2 CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31
11.去找找makefile中,看看其include用的是哪些变量。
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\xmlrpc\xmlrpc-c-1.06.31\Makefile.common
但是没看出来。
12.再去试试:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ env CPPFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CFLAGS=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include ./configure --prefix=$HOME/develop/crosstool-ng/x-tools/armxscalexmlrpc --host=arm-linux CC=arm-xscale-linux-gnueabi-gcc configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking build system type... i686-pc-cygwin checking host system type... arm-unknown-linux-gnu checking for wininet-config... no configure: You don't appear to have Wininet installed (no working wininet-config in your command search path), so we will not build the Wininet client XML transport checking whether to build Wininet client XML transport module... no checking for curl-config... yes checking whether to build Curl client XML transport module... yes checking for libwww-config... no configure: You don't appear to have Libwww installed (no working libwww-config in your command search path), so we will not build the Libwww client XML transport checking whether to build Libwww client XML transport module... no checking whether to build Abyss server module... yes checking whether to build CGI server module... yes checking whether to build C++ wrappers and tools... yes checking for arm-linux-gcc... arm-xscale-linux-gnueabi-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-xscale-linux-gnueabi-gcc accepts -g... yes checking for arm-xscale-linux-gnueabi-gcc option to accept ANSI C... none needed checking for arm-linux-g++... no checking for arm-linux-c++... no checking for arm-linux-gpp... no checking for arm-linux-aCC... no checking for arm-linux-CC... no checking for arm-linux-cxx... no checking for arm-linux-cc++... no checking for arm-linux-cl... no checking for arm-linux-FCC... no checking for arm-linux-KCC... no checking for arm-linux-RCC... no checking for arm-linux-xlC_r... no checking for arm-linux-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for socket... yes checking how to run the C preprocessor... arm-xscale-linux-gnueabi-gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for size_t... yes checking whether va_list is an array... no checking whether compiler has __attribute__... yes checking for vsnprintf... yes checking for wcsncmp... yes checking for setgroups... yes checking for asprintf... yes checking for setenv... yes checking whether to use Abyss pthread function... yes checking for curl-xmlrpc-config... no checking for curl-config... /usr/bin/curl-config checking for curl library directory... /usr/lib checking whether to use SSL with libwww... no checking whether to build the libxml2 backend... no checking for arm-linux-ranlib... no checking for ranlib... ranlib checking for ld used by GCC... /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking for object suffix... o checking for executable suffix... no checking for arm-xscale-linux-gnueabi-gcc option to produce PIC... -fPIC checking if arm-xscale-linux-gnueabi-gcc PIC flag -fPIC works... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... yes checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.lo... yes checking if arm-xscale-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions ... no checking if arm-xscale-linux-gnueabi-gcc static flag -static works... -static checking if the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) is GNU ld... yes checking whether the linker (/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/arm-xscale-linux-gnueabi/bin/ld.exe option to reload object files... -r checking dynamic linker characteristics... Linux ld.so checking if libtool supports shared libraries... yes *** Warning: the command libtool uses to detect shared libraries, *** /usr/bin/file, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** [email protected] checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool configure: creating ./config.status config.status: creating xmlrpc-c-config config.status: creating xmlrpc-c-config.test config.status: creating Makefile.config config.status: creating xmlrpc_config.h config.status: creating xmlrpc_amconfig.h config.status: xmlrpc_amconfig.h is unchanged config.status: executing default-1 commands CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
再继续试试make clean && make:
结果还是错误。
13.后来去找到错误的文件所在的makefile:
xmlrpc-c-1.06.31\lib\curl_transport\Makefile
对应的看到了相关的include的处理了:
ifeq ($(SRCDIR)x,x) SRCDIR = $(CURDIR)/../.. BUILDDIR = ../.. endif include $(SRCDIR)/Makefile.config CURL_INCLUDES := $(shell curl-config --cflags) # We expect that curl-config --cflags just gives us -I options, because # we need just the -I options for 'make dep'. Plus, it's scary to think # of what any other compiler flag would do to our compile. CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) LDFLAGS = $(LADD) INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include \ $(CURL_INCLUDES)
所以,此处去试试CURL_INCLUDES,结果为空:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --cflags
就说明,我们之前的安装的curl后,没有把curl和curl-config的路径,添加到PATH中。
此处再去看看curl-config的路径,果然是可以看到的:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ cd /home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin/ CLi@PC-CLI-1 ~/develop/crosstool-ng/x-tools/armxscalecurl/bin $ ls curl curl-config CLi@PC-CLI-1 ~/develop/crosstool-ng/x-tools/armxscalecurl/bin $ ./curl-config Usage: curl-config [OPTION] Available values for OPTION include: --ca ca bundle install path --cc compiler --cflags pre-processor and compiler flags --checkfor [version] check for (lib)curl of the specified version --features newline separated list of enabled features --help display this help and exit --libs library linking information --prefix curl install prefix --protocols newline separated list of enabled protocols --static-libs static libcurl library linking information --version output version information --vernum output the version information as a number (hexadecimal) CLi@PC-CLI-1 ~/develop/crosstool-ng/x-tools/armxscalecurl/bin $ ./curl-config --flags unknown option: --flags Usage: curl-config [OPTION] Available values for OPTION include: --ca ca bundle install path --cc compiler --cflags pre-processor and compiler flags --checkfor [version] check for (lib)curl of the specified version --features newline separated list of enabled features --help display this help and exit --libs library linking information --prefix curl install prefix --protocols newline separated list of enabled protocols --static-libs static libcurl library linking information --version output version information --vernum output the version information as a number (hexadecimal) CLi@PC-CLI-1 ~/develop/crosstool-ng/x-tools/armxscalecurl/bin $ ./curl-config --cflags -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/crosstool-ng/x-tools/armxscalecurl/bin $
和我之前设置的,是一样的。
此处,暂时不去把curl路径加到PATH中了,先去直接设置对应的CURL_INCLUDES试试,结果错误依旧:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ CURL_INCLUDES=-I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ echo $CURL_INCLUDES -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory compilation terminated. /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile:47: recipe for target `xmlrpc_curl_transport.lo' failed make[2]: *** [xmlrpc_curl_transport.lo] Error 1 make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../Makefile.common:147: recipe for target `curl_transport/all' failed make[1]: *** [curl_transport/all] Error 2 make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/Makefile.common:147: recipe for target `lib/all' failed make: *** [lib/all] Error 2 CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
14.关闭cygwin,修改.bashrc,加curl的路径加上:
PATH=$PATH:$HOME/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin
对应的,curl的bin下面,包含curl和curl-config:
启动cygwin,再去确认curl-config可以运行,结果发现,此时,得到的curl-config,是之前旧的cygwin里面的,不是我刚安装的:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --cflags CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --help Usage: curl-config [OPTION] Available values for OPTION include: --built-shared says 'yes' if libcurl was built shared --ca ca bundle install path --cc compiler --cflags pre-processor and compiler flags --checkfor [version] check for (lib)curl of the specified version --configure the arguments given to configure when building curl --features newline separated list of enabled features --help display this help and exit --libs library linking information --prefix curl install prefix --protocols newline separated list of enabled protocols --static-libs static libcurl library linking information --version output version information --vernum output the version information as a number (hexadecimal) CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --prefix /usr CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ which curl-config /usr/bin/curl-config CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
所以,需要,重新修改刚才的PATH环境变量,把我的路径,放在前面:
#PATH=$PATH:$HOME/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin PATH=$HOME/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin:$PATH
然后重新启动cygwin,再去试试,就是我自己的curl-config了:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --cflags -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ which curl-config /home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin/curl-config CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ curl-config --prefix /home/CLi/develop/crosstool-ng/x-tools/armxscalecurl CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $
然后,再去执行make,就可以正常执行了:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 $ make make -C include/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./include/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/include' make -C lib/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/./lib/Makefile \ all make[1]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib' make -C util/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/util/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/util' make -C libutil/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/libutil/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/libutil' make -C abyss/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/abyss/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C src/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/../../lib/abyss/src/Makefile \ all make[3]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss/src' make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/abyss' make -C curl_transport/ -f /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/../lib/curl_transport/Makefile \ all make[2]: Entering directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport' /home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../libtool --mode=compile arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c rm -f .libs/xmlrpc_curl_transport.lo arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -fPIC -DPIC -o .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.c: In function 'finishAsynch': xmlrpc_curl_transport.c:1703:20: warning: 'waitTimeoutTime.tv_usec' may be used uninitialized in this function [-Wuninitialized] xmlrpc_curl_transport.c:1741:20: note: 'waitTimeoutTime.tv_usec' was declared here xmlrpc_curl_transport.c:1703:20: warning: 'waitTimeoutTime.tv_sec' may be used uninitialized in this function [-Wuninitialized] xmlrpc_curl_transport.c:1741:20: note: 'waitTimeoutTime.tv_sec' was declared here In function 'finishCurlTransaction', inlined from 'processCurlMessages' at xmlrpc_curl_transport.c:1595:38, inlined from 'doCurlWork' at xmlrpc_curl_transport.c:1682:28, inlined from 'finishCurlSessions' at xmlrpc_curl_transport.c:1708:23, inlined from 'finishAsynch' at xmlrpc_curl_transport.c:1752:23: xmlrpc_curl_transport.c:1508:5: warning: call to '_curl_easy_getinfo_err_string' declared with attribute warning: curl_easy_getinfo expects a pointer to char * for this info [enabled by default] arm-xscale-linux-gnueabi-gcc -c -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../.. -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../include -I/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport/../../lib/util/include -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -o xmlrpc_curl_transport.o >/dev/null 2>&1 mv -f .libs/xmlrpc_curl_transport.lo xmlrpc_curl_transport.lo make[2]: Leaving directory `/home/CLi/develop/xmlrpc/xmlrpc-c-1.06.31/lib/curl_transport'
【总结】
当编译xmlrpc时,出现错误:
xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory |
的原因是:
xmlrpc,依赖于curl库。
所以,你需要先编译安装curl
(安装curl后,会有对应的curl的头文件:include/curl/curl.h)
安装后,记得把curl的bin路径,比如我此处的:
$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin
即:
/home/CLidevelop/crosstool-ng/x-tools/armxscalecurl/bin
添加到(.bashrc的)path中
(其中,确保是路径是加在PATH前面,而不是PATH后面:
#PATH=$PATH:$HOME/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin PATH=$HOME/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:$HOME/develop/crosstool-ng/x-tools/armxscalecurl/bin:$PATH |
以避免出现我此处的:
cygwin中本身已经在
/usr/bin/
下面安装了curl-config了
所以,当添加的自己的curl的bin的路径是在PATH后面的话,则到时候找到的只是cygwin中旧的curl-config,而不是你自己的)
然后,到时候,去编译xmlrpc_curl_transport.c所用的makefile中,会通过:
CURL_INCLUDES := $(shell curl-config –cflags) # we need just the -I options for ‘make dep’. Plus, it’s scary to think # of what any other compiler flag would do to our compile. …… INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include -I$(SRCDIR)/lib/util/include \ |
而调用
curl-config –cflags
得到当前的curl的cflags的路径,比如此处的:
CLi@PC-CLI-1 ~/develop/xmlrpc/xmlrpc-c-1.06.31 -I/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/include |
然后,添加到INCLUDES后面,然后gcc(此处是交叉编译:arm-xscale-linux-gnueabi-gcc)最后就可以找到对应的
curl/curl.h
了,就可以正常编译了。
转载请注明:在路上 » 【已解决】cygwin下交叉编译xmlrpc出错:xmlrpc_curl_transport.c:78:23: fatal error: curl/curl.h: No such file or directory