RE: [xml] libxml2 compile error on Solaris SPARC



Sorry, just IGNORE my previous post!

But you should really try to 
./configure --with-zlib=....
or
./configure --without-zlib

the error should at least be different than that one you posted. Since the
makefile.am says:

LDADDS = $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm
...
xmllint_LDADD=  @RDL_LIBS@ $(LDADDS)

and following configure.in @Z_LIBS@ will be replaced by a nonzero string if
the directory given is correct at least otherwise zlib will not be
referenced at all. (you should try a 'make clean' before retrying without
zlib)
AC_ARG_WITH(zlib,
[  --with-zlib[=DIR]       use libz in DIR],[
  if test "$withval" != "no" -a "$withval" != "yes"; then
    Z_DIR=$withval
    CPPFLAGS="${CPPFLAGS} -I$withval/include"
    LDFLAGS="${LDFLAGS} -L$withval/lib"
  fi
])
if test "$with_zlib" = "no"; then
    echo "Disabling compression support"
else
    AC_CHECK_HEADERS(zlib.h,
        AC_CHECK_LIB(z, gzread,[
            AC_DEFINE(HAVE_LIBZ)
            if test "x${Z_DIR}" != "x"; then
                Z_CFLAGS="-I${Z_DIR}/include"
                Z_LIBS="-L${Z_DIR}/lib -lz"
                [case ${host} in
                    *-*-solaris*)
                        Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
                        ;;
                esac]
            else
                Z_LIBS="-lz"
            fi]))
fi
...
AC_SUBST(Z_LIBS)

-----Original Message-----
From: Labib Iskander, Marcus [mailto:ml cm4all com]
Sent: Tuesday, November 12, 2002 1:06 PM
To: 'xml gnome org'
Subject: RE: [xml] libxml2 compile error on Solaris SPARC


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





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