[xml] Building libxml on Darwin 1.3.1

Title: Building libxml on Darwin 1.3.1
Hi All,

I am trying to install 2.3.7 on Darwin but having some troubles. Daniel kindly pointed out for me that before I install 2.3.7, I need to have libiconv installed. I then downloaded libiconv-1.6 and have in built & installed, went back to libxml2 and try to build it. (I configured it with ./configure --host=powerpc-apple option) However ld still thinks that something is missing:

[chanwe:web/bin/libxml2-2.3.7] wenyu% make
make  all-recursive
Making all in .
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include       -g -O2 -Wall -c SAX.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -c SAX.c -o SAX.o
echo timestamp > SAX.lo
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include       -g -O2 -Wall -c entities.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -c entities.c -o entities.o
ar cru .libs/libxml2.a  SAX.o entities.o encoding.o error.o parserInternals.o parser.o tree.o hash.o list.o xmlIO.o xmlmemory.o uri.o valid.o xlink.o HTMLparser.o HTMLtree.o debugXML.o xpath.o xpointer.o xinclude.o nanohttp.o nanoftp.o strio.o trio.o
ranlib .libs/libxml2.a
creating libxml2.la
(cd .libs && rm -f libxml2.la && ln -s ../libxml2.la libxml2.la)
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include       -g -O2 -Wall -c xmllint.c
/bin/sh ./libtool --mode=link gcc  -g -O2 -Wall  -o xmllint  xmllint.o ./libxml2.la -lz -lm
gcc -g -O2 -Wall -o xmllint xmllint.o ./.libs/libxml2.a -lz -lm -lz -lm
/usr/bin/ld: Undefined symbols:
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Here are lists of files I have in the /usr/local/lib & include directory:

[chanwe:bin/libiconv-1.6/include] wenyu% ls /usr/local/lib
charset.alias  libexpat.la    libiconv.a     libsablot.a    libxmlparse.la lynx.cfg       php
libcharset.a   libfreetype.a  libiconv.la    libsablot.la   libxmltok.a    lynx.oldcfg    php.ini
libcharset.la  libfreetype.la libjpeg.a      libw3c         libxmltok.la   lynx_doc
libexpat.a     libgd.a        libpng.a       libxmlparse.a  libz.a         lynx_help

[chanwe:bin/libiconv-1.6/include] wenyu% ls /usr/local/include/
cderror.h            gdfontl.h            jchuff.h             jpegint.h            transupp.h
cdjpeg.h             gdfontmb.h           jconfig.h            jpeglib.h            w3c-libwww
expat.h              gdfonts.h            jdct.h               jversion.h           wwwconf.h
freetype2            gdfontt.h            jdhuff.h             libcharset.h         zconf.h
gd.h                 iconv.h              jerror.h             png.h                zlib.h
gd_io.h              iconv.h.in           jinclude.h           pngconf.h
gdcache.h            iconv.h.msvc-shared  jmemsys.h            sablot.h
gdfontg.h            iconv.h.msvc-static  jmorecfg.h           shandler.h

Any suggestions?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]