RE: [xml] libxml2 compile error on Solaris SPARC
- From: "Labib Iskander, Marcus" <ml cm4all com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] libxml2 compile error on Solaris SPARC
- Date: Tue, 12 Nov 2002 13:05:42 +0100
hi,
why do you intent to include libxml2.so into the executable wouldn't it be
better to try:
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o -L./.libs -lxml2 -lm -lsocket
-lnsl -R/data/local/lib
thus the references to zlib would only be resolved at executiontime. (since
you managed to compile libxml with zlib support [otherwise it would not be
referenced in libxml2.so], it is likely to be found at executiontime ;)
Cheers,
marcus
-----Original Message-----
From: Daniel Carrera [mailto:dcarrera math umd edu]
Sent: Tuesday, November 12, 2002 1:37 AM
To: xml gnome org
Subject: Re: [xml] libxml2 compile error on Solaris SPARC
This isn't the ZLIB problem. I saw that problem under the registered
bugs. Notice that ld is giving a different error here. It is not
complaining about zlib (I tried your suggestions anyways, but
they didn't
work).
ld is complaining about an undefined symbol. I don't know what to do
about that.
Daniel.
Looks like ZLIB is missed. You may try to use
--with-zlib=<PATH> (specify
the zlib path) or --without-zlib (to disable it) options for the
./configure script.
Aleksey.
Daniel Carrera wrote:
Hello,
I'm trying to compile libxml2-2.4.26 on a SPARC station
(sparc-sun-solaris2.8). I have already read the FAQ, the
mail archives
and the registered bugs.
"./compile" works fine.
"make" produces the following error:
gcc -g -O2 -Wall -o .libs/xmllint xmllint.o ./.libs/libxml2.so -lm
-lsocket -lnsl -R/data/local/lib
Undefined first referenced
symbol in file
gzdopen ./.libs/libxml2.so
gzread ./.libs/libxml2.so
deflateInit2_ ./.libs/libxml2.so
gzopen ./.libs/libxml2.so
gzwrite ./.libs/libxml2.so
deflate ./.libs/libxml2.so
deflateEnd ./.libs/libxml2.so
crc32 ./.libs/libxml2.so
gzclose ./.libs/libxml2.so
ld: fatal: Symbol referencing errors. No output written to
.libs/xmllint
collect2: ld returned 1 exit status
Does anyone have a suggestion? Your help would be much
appreciated.
Daniel Carrera ________________________________
Graduate Teaching Assistant | ____________________________ |
University of Maryland | | ____ | |
| | oo k (___ \ | |
Life is good for only two things, | | x __ x ( (..) ) | |
discovering mathematics and | | e = \ --- \\\' |( < ,) )| |
teaching mathematics. | | /_ k! `|_\_\)--( )| |
| | k=1 \ ,"""(___)| |
--Siméon Poisson | | `'\_ __ \| |
| | | , ) |
| |___________________ / _/ /| |
|____________________ I ///\./I__|
| |
'-.._..-'
_| |
.'_.´_/7
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]