[xml] Link errors in pc-cgwin build.

Date view Thread view Subject view Author view

From: Tom Maxwell (maxwell@cbl.umces.edu)
Date: Mon Feb 19 2001 - 12:27:34 EST


 I am attempting to build libxml2-2.3.1 under Win98 in a cgwin bash
shell. I executed:

./configure --with-iconv=no --with-gnu-ld=yes --enable-shared=no
make

At the link stage I get a lot of "undefined references" (shown below).
These errors occurred for either choice of the --with-gnu-ld and
--enable-shared options. Any suggestions?

.
.
.
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -c
nanoftp.c -o nanoftp.o
echo timestamp > nanoftp.lo
/bin/sh ./libtool --mode=link gcc -g -O2 -o libxml2.la -rpath
/usr/local/lib -version-info 5:1:3 SAX.lo entities.lo encoding.lo
error.lo parserInternals.lo parser.lo tree.lo hash.lo xmlIO.lo
xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo
debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo -lz
libtool: link: warning: undefined symbols not allowed in i586-pc-cygwin
shared libraries
mkdir .libs
ar cru .libs/libxml2.a SAX.o entities.o encoding.o error.o
parserInternals.o parser.o tree.o hash.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
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 -c
xmllint.c
/bin/sh ./libtool --mode=link gcc -g -O2 -o xmllint xmllint.o
-lreadline -lhistory -lncurses ./libxml2.la -lz
gcc -g -O2 -o xmllint xmllint.o -lreadline -lhistory -lncurses
./.libs/libxml2.a -lz -lz
./.libs/libxml2.a(tree.o)(.text+0x59): undefined reference to
`_imp__xmlMalloc'
./.libs/libxml2.a(tree.o)(.text+0x71): undefined reference to
`_imp__xmlGenericError'
./.libs/libxml2.a(tree.o)(.text+0x7e): undefined reference to
`_imp__xmlGenericErrorContext'
./.libs/libxml2.a(tree.o)(.text+0x17e): undefined reference to
`_imp__xmlFree'
./.libs/libxml2.a(tree.o)(.text+0x195): undefined reference to
`_imp__xmlFree'
./.libs/libxml2.a(tree.o)(.text+0x1b2): undefined reference to
`_imp__xmlFree'
./.libs/libxml2.a(tree.o)(.text+0x231): undefined reference to
`_imp__xmlMalloc'
.
.
.

-- 
Thomas P Maxwell, Ph.D.          Spatial Systems Research
University of Maryland Institute for Ecological Economics
voice: 410-326-7388                     FAX: 410-326-7354
URL:                http://iee.umces.edu/Tom/Maxwell.html
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 19 2001 - 12:43:50 EST