[xml] Problems compiling libxml2 on Sun Solaris 2.8 UNIX system with iconv



Hi,

I'm trying to compile libxml2-2.6.10 on a Sun Solaris 2.8 UNIX system.  I
have tried the following configuration command:

/configure --prefix=/public/data/asddgate --with-iconv=/usr/local

Because iconv is in /usr/local/bin/.

The make command gives the following errors:

...
(cd .libs && rm -f libxml2.so.2 && ln -s libxml2.so.2.6.10 libxml2.so.2)
(cd .libs && rm -f libxml2.so && ln -s libxml2.so.2.6.10 libxml2.so)
ar cru .libs/libxml2.a  SAX.o entities.o encoding.o error.o parserInternals.o
pa
rser.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
DOCB
parser.o catalog.o globals.o threads.o c14n.o xmlstring.o xmlregexp.o
xmlschemas
.o xmlschemastypes.o xmlunicode.o xmlreader.o relaxng.o dict.o SAX2.o
xmlwriter.
o legacy.o chvalid.o pattern.o xmlsave.o
ranlib .libs/libxml2.a
creating libxml2.la
(cd .libs && rm -f libxml2.la && ln -s ../libxml2.la libxml2.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include  -D_REENTRANT
-I/u
sr/local/include  -g -O2 -Wall -MT xmllint.o -MD -MP -MF ".deps/xmllint.Tpo"
-c
-o xmllint.o xmllint.c; \
then mv -f ".deps/xmllint.Tpo" ".deps/xmllint.Po"; else rm -f
".deps/xmllint.Tpo
"; exit 1; fi
/bin/bash ./libtool --mode=link gcc  -g -O2 -Wall   -o xmllint  xmllint.o
./libx
ml2.la -lpthread -lz -L/usr/local/lib -liconv -lm  -lsocket -lnsl
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o  ./.libs/libxml2.so
-L/usr/local/lib
 -L/usr/lib -L/usr/openwin/lib -L/usr/local/ssl/lib -lpthread -lz
/usr/local/lib
/libiconv.so -lm -lsocket -lnsl -Wl,--rpath -Wl,/public/data/asddgate/lib
-Wl,--
rpath -Wl,/usr/local/lib
./.libs/libxml2.so: undefined reference to `gzwrite SUNW_1 1'
./.libs/libxml2.so: undefined reference to `deflateEnd SUNW_1 1'
./.libs/libxml2.so: undefined reference to `gzopen SUNW_1 1'
./.libs/libxml2.so: undefined reference to `gzrewind SUNW_1 1'
./.libs/libxml2.so: undefined reference to `crc32 SUNW_1 1'
./.libs/libxml2.so: undefined reference to `deflate SUNW_1 1'
./.libs/libxml2.so: undefined reference to `deflateInit2_ SUNW_1 1'
./.libs/libxml2.so: undefined reference to `gzread SUNW_1 1'
./.libs/libxml2.so: undefined reference to `gzclose SUNW_1 1'
./.libs/libxml2.so: undefined reference to `gzdopen SUNW_1 1'
collect2: ld returned 1 exit status
make[2]: *** [xmllint] Error 1
make[2]: Leaving directory `/web/apps/asdd/libxml2-2.6.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/web/apps/asdd/libxml2-2.6.10'
make: *** [all] Error 2


Is this some sort of basic UNIX stuff that the make can't find?

Thanks.


John Hockaday
Geoscience Australia
GPO Box 378
Canberra ACT 2601
(02) 6249 9735
http://www.ga.gov.au/ 
john hockaday ga gov au



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