From: Rodolfo M. <rod...@gm...> - 2006-09-16 16:14:45
|
Rodolfo Medina <rod...@gm...> writes: >>> when I do `make' to install wbxml2-0.9.0-src.tar.gz, >>> it stops giving the following error message: >>> >>> [...] >>> >>> . Can anyone suggest how to fix that? >>> Both libexpat1-dev and libexpat1 are installed. "Alberto Saez" <alb...@gm...> writes: > Ok. Edit the src/Makefile > > The libs declaration should be like this: > > LIBS = -lexpat -lz -lpopt -lnsl > > (if no, plese, add) > > If this doesn't work, change the line to: > > LIBS = -lexpat -lz -lpopt -lnsl /usr/lib/libexpat.so > > and try again. this should work Thanks: it seems that it works. In wbxml2-0.9.0/src/Makefile, I changed the line LIBS = -lnsl into: LIBS = -lexpat -lz -lpopt -lnsl /usr/lib/libexpat.so , then run ./configure and make again and this time it went all right. But now, a similar problem arose with the building of libsyncml: the `make' step gave the same problem as before: $ make make all-recursive make[1]: Entering directory `/home/rodolfo/tmp/libsyncml' Making all in libsyncml make[2]: Entering directory `/home/rodolfo/tmp/libsyncml/libsyncml' Making all in parser make[3]: Entering directory `/home/rodolfo/tmp/libsyncml/libsyncml/parser' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/rodolfo/tmp/libsyncml/libsyncml/parser' Making all in transports make[3]: Entering directory `/home/rodolfo/tmp/libsyncml/libsyncml/transports' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/rodolfo/tmp/libsyncml/libsyncml/transports' Making all in objects make[3]: Entering directory `/home/rodolfo/tmp/libsyncml/libsyncml/objects' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/rodolfo/tmp/libsyncml/libsyncml/objects' make[3]: Entering directory `/home/rodolfo/tmp/libsyncml/libsyncml' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/rodolfo/tmp/libsyncml/libsyncml' make[2]: Leaving directory `/home/rodolfo/tmp/libsyncml/libsyncml' Making all in tests make[2]: Entering directory `/home/rodolfo/tmp/libsyncml/tests' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/rodolfo/tmp/libsyncml/tests' Making all in tools make[2]: Entering directory `/home/rodolfo/tmp/libsyncml/tools' /bin/sh ../libtool --mode=link gcc -Wall -Werror -g -O2 -o syncml-http-server -pthread -lgthread-2.0 -lglib-2.0 -lxml2 -R /usr/local/lib syncml-http-server.o ../libsyncml/libsyncml.la gcc -Wall -Werror -g -O2 -o .libs/syncml-http-server -pthread syncml-http-server.o /usr/lib/libgthread-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libxml2.so ../libsyncml/.libs/libsyncml.so -Wl,--rpath -Wl,/usr/local/lib /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_GetCurrentByteIndex' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetElementHandler' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_Parse' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_ParserFree' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetCharacterDataHandler' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_ParserCreate' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetCdataSectionHandler' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetStartDoctypeDeclHandler' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetUserData' /usr/local/lib/libwbxml2.so.0: undefined reference to `XML_SetProcessingInstructionHandler' collect2: ld returned 1 exit status make[2]: *** [syncml-http-server] Error 1 make[2]: Leaving directory `/home/rodolfo/tmp/libsyncml/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/rodolfo/tmp/libsyncml' make: *** [all] Error 2 I tried to do apply the same remedy as above with the libsyncml/libsyncml/Makefile, but this time the problem remained: please any other suggestion? Thanks, cheers, Rodolfo |