Re: [xml] built libxml and libxslt, possible bugs



Hi William

[...]
  On your original posting, you stated that you had done the following:

tobi ~/del/compile_libxml/libxml2-2.6.2 $ ./configure \
 --prefix=$HOME/bulk/run/libxml
[...]
[...] libxslt-1.1.0 $ make
[generated many warnings like this one:]
[...]
tobi ~/del/compile_libxml/libxml2-2.6.2 $ make install
[...]

You did not specify what you had done on the configuration of
libxslt, but the fact that you got the warnings means ***the
compilation of the libxslt library was not getting the include files
from the preceding setup of the libxml2 library***.  If you have not
re-done the configuration of libxslt, look in the libxslt-1.1.0
directory at the file config.status, and it will show *exactly* what
was done.

  Again, I am not intending to criticize you in any way.  I'm only
telling you that this is a fact.  If you now have the missing zlib
stuff, you can re-do it.  The steps you have in today's mail
should work,

Those are the same steps (commands) I originally carried out, the same
ones I posted (the ones you quoted above), just with less lines
replaced with "[...]".

but just in case there is any further trouble, it
would be helpful to make a copy of the configuration run, i.e.
  ./configure --prefix= ......  2>&1 | tee tobiconfig.log
and when you do the make after the configuration, save the errors
and warnings with
  make 2>tobierrors.log

  Good luck to you, and please let us know the results.

I ran the below script [sh] (it definitely is not optimal but should
work for installing new releases easily). I don't know if everything
went perfect.

The tools are there:

tobi ~/del $ xmllint2.6.2 --version
/home/tobi/bulk/run/libxml/2.6.2/bin/xmllint: using libxml version 20602
   compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata 
Schemas
tobi ~/del $ xsltproc1.1.0 --version
Using libxml 20602, libxslt 10100 and libexslt 800
xsltproc was compiled against libxml 20602, libxslt 10100 and libexslt 800
libxslt 10100 was compiled against libxml 20602
libexslt 800 was compiled against libxml 20602

... and this might be good news:

tobi ~ $ grep -i "error" del/compile_libxml/libxslt-1.1.0/my_make.log
tobi ~ $ grep -i "warning" del/compile_libxml/libxslt-1.1.0/my_make.log
tobi ~ $

This one might not be a problem:

make[2]: Entering directory `/home/tobi/del/compile_libxml/libxslt-1.1.0/tests/documents'
diff: ./test_bad.result: No such file or directory
diff: ./test_bad.err: No such file or directory
diff: ./fragment.result: No such file or directory

... I also don't know if these are of any relevance:

tobi ~ $ grep -i "warning" del/compile_libxml/libxml2-2.6.2/config.log
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:13144: warning: conflicting types for built-in function `printf'
configure:13145: warning: conflicting types for built-in function `sprintf'
configure:13146: warning: conflicting types for built-in function `fprintf'
configure:13147: warning: conflicting types for built-in function `snprintf'
configure:13149: warning: conflicting types for built-in function `vsprintf'
configure:13150: warning: conflicting types for built-in function `vsnprintf'
configure:13151: warning: conflicting types for built-in function `sscanf'
tobi ~ $ grep -i "error" del/compile_libxml/libxml2-2.6.2/config.log
conftest.c:2: error: parse error before "me"
[...]
tobi ~ $ grep -i "error" del/compile_libxml/libxslt-1.1.0/config.log
conftest.c:2: error: parse error before "me"
[...]

If you want I can send you any of the logs (eg attached, off-list),
or the output of any command (eg gcc --version etc).

Tobi

[sh]

#!/usr/bin/env bash

# install_libxml
# based on
# http://xmlstar.sourceforge.net/doc/run-xmlstarlet-build
# (any errors are mine :)

MY_HOME=/home/tobi
if [ $HOME != $MY_HOME ]; then
  exit
fi
if [ `whoami` != 'tobi' ]; then
  exit
fi

uname -a
gcc --version
make --version
automake --version
install --version
/lib/ld-linux.so.2 /lib/libc.so.6 | head -1

VER_LIBXML=2.6.2
VER_LIBXSLT=1.1.0
COMPILE=${HOME}/del/compile_libxml
RUN_LIBXML_TOP=${HOME}/bulk/run/libxml
RUN_LIBXML=${RUN_LIBXML_TOP}/${VER_LIBXML}
RUN_LIBXSLT_TOP=${HOME}/bulk/run/libxslt
RUN_LIBXSLT=${RUN_LIBXSLT_TOP}/${VER_LIBXSLT}
COMMAND_XMLLINT=${HOME}/data/commands/xmllint${VER_LIBXML}
COMMAND_XSLTPROC=${HOME}/data/commands/xsltproc${VER_LIBXSLT}

if [ ! -d $COMPILE ]; then
  mkdir $COMPILE
fi

if [ -d $RUN_LIBXML ]; then
  echo ${RUN_LIBXML}' exists, exiting'
  exit
else
  if [ ! -d $RUN_LIBXML_TOP ]; then
    mkdir $RUN_LIBXML_TOP
  fi
  if [ ! -d $RUN_LIBXML ]; then
    mkdir $RUN_LIBXML
  fi
fi

if [ -d $RUN_LIBXSLT ]; then
  echo ${RUN_LIBXSLT}' exists, exiting'
  exit
else
  if [ ! -d $RUN_LIBXSLT_TOP ]; then
    mkdir $RUN_LIBXSLT_TOP
  fi
  if [ ! -d $RUN_LIBXSLT ]; then
    mkdir $RUN_LIBXSLT
  fi
fi

cd $COMPILE
wget -q ftp://xmlsoft.org/libxml2-${VER_LIBXML}.tar.gz
wget -q ftp://xmlsoft.org/libxslt-${VER_LIBXSLT}.tar.gz
tar xzf libxml2-${VER_LIBXML}.tar.gz
tar xzf libxslt-${VER_LIBXSLT}.tar.gz

cd ${COMPILE}/libxml2-${VER_LIBXML}
./configure --prefix=${RUN_LIBXML}
make >my_make.log 2>my_make_errors.log
make tests
make install

cd ${COMPILE}/libxslt-${VER_LIBXSLT}
./configure --prefix=${RUN_LIBXSLT} \
 --with-libxml-src=${COMPILE}/libxml2-${VER_LIBXML} \
  2>&1 | tee my_config.log
make >my_make.log 2>my_make_errors.log
make tests
make install

 #sudo rm -r $COMPILE

if [ ! -f $COMMAND_XMLLINT ]; then
  cat > $COMMAND_XMLLINT << EOF
${RUN_LIBXML}/bin/xmllint "\$@"
EOF
  chmod 0700 $COMMAND_XMLLINT
  ${COMMAND_XMLLINT} --version
fi

if [ ! -f $COMMAND_XSLTPROC ]; then
  cat > $COMMAND_XSLTPROC << EOF
${RUN_LIBXSLT}/bin/xsltproc "\$@"
EOF
  chmod 0700 $COMMAND_XSLTPROC
  ${COMMAND_XSLTPROC} --version
fi

-- 
Vim as XML Editor
http://www.vim.org/tips/tip.php?tip_id=583



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