RE: [xml] libxml2 compile error on Solaris SPARC


why do you intent to include 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], it is likely to be found at executiontime ;)


-----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

ld is complaining about an undefined symbol.  I don't know what to do
about that.


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.


Daniel Carrera wrote:


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/ -lm
-lsocket -lnsl -R/data/local/lib
Undefined                       first referenced
symbol                             in file
gzdopen                             ./.libs/
gzread                              ./.libs/
deflateInit2_                       ./.libs/
gzopen                              ./.libs/
gzwrite                             ./.libs/
deflate                             ./.libs/
deflateEnd                          ./.libs/
crc32                               ./.libs/
gzclose                             ./.libs/
ld: fatal: Symbol referencing errors. No output written to 
collect2: ld returned 1 exit status

Does anyone have a suggestion?  Your help would be much 

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__|
                                                        |       |
                                                          _| |

xml mailing list, project page
xml gnome org

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