[xml] misc warnings compiling libxml2-2.6.22 (cvs snapshot dloaded 2005/12/09) with HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005]



Out of curiousity I downloaded the cvs snapshot on 2005-12-09 which expanded to 2.6.22, and tried compiling it on an HP-UX 11.23 Itanium (ia64) system with HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005].

A few pseudo-random observations/questions...

This one may have been overly picky on the part of the compiler:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c parserInternals.c +Z -DPIC -o .libs/parserInternals.lo "parserInternals.c", line 1883: warning #2068-D: integer conversion resulted in a change of sign
          return (-1);
                 ^

(I'm not sure if the -Wp,-H30000 stuff is required on the ia64 platform, I have a question in to a compiler contact on that one)

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c HTMLparser.c +Z -DPIC -o .libs/HTMLparser.lo "HTMLparser.c", line 4782: warning #2550-D: variable "oldname" was set but never used
                const xmlChar *name, *oldname;
                                      ^

Some stuff that probably wants a cast and some unreachable code:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c xpath.c +Z -
DPIC -o .libs/xpath.lo
"xpath.c", line 2915: warning #2513-D: a value of type "void *" cannot be assigned to an entity of
type "xmlXPathFunction"
      XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                         ^

"xpath.c", line 10483: warning #2513-D: a value of type "void *" cannot be assigned to an entity of
 type "xmlXPathFunction"
                      XML_CAST_FPTR(func) = op->cache;
                                          ^

"xpath.c", line 11095: warning #2128-D: loop is not reachable from preceding code
      do {
      ^


next:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c xmlschemas.c +Z -DPIC -o .libs/xmlschemas.lo
"xmlschemas.c", line 2500: warning #2550-D: variable "is_not" was set but never used
      int i, is_not;
             ^

"xmlschemas.c", line 7992: warning #2550-D: variable "ns" was set but never used
            xmlNsPtr ns;
                     ^

"xmlschemas.c", line 13235: warning #2111-D: statement is unreachable
      return (0);
      ^

"xmlschemas.c", line 13279: warning #2111-D: statement is unreachable
      return (NULL);
      ^

"xmlschemas.c", line 17781: warning #2111-D: statement is unreachable
      return (0);
      ^


This one caught my eye:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c xmlschemastypes.c +Z -DPIC -o .libs/xmlschemastypes.lo "xmlschemastypes.c", line 1699: warning #2186-D: pointless comparison of unsigned integer with zero
      if ((ret != 0) || (*cur != 0) || !VALID_DATETIME((&(dt->value.date))))
                                        ^

"xmlschemastypes.c", line 1699: warning #2186-D: pointless comparison of unsigned integer with zero
      if ((ret != 0) || (*cur != 0) || !VALID_DATETIME((&(dt->value.date))))
                                        ^

This one brings-up another point:

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c xmlmodule.c+Z -DPIC -o .libs/xmlmodule.lo "xmlmodule.c", line 284: warning #2167-D: argument of type "void **" is incompatible with parameter
 of type "shl_t *"
      rc = shl_findsym(&handle, name, TYPE_UNDEFINED, symbol);
                       ^

With PA2.0W (64-bit PA) and with IPF/ia64, (either 32 bit or 64) there is support for dlopen et al. In fact, the shl_findsym manpage has this to say:

      Future HP-UX environments may not support these routines and flags or
      may only support a subset of them.  Instead, they will use the SVR4
      dynamic loading API.  Users are encouraged to migrate to the dl*
      family of dynamic linking routines.  See the dlclose(3C), dlerror(3C),
      dlget(3C), dlgetname(3C), dlmodinfo(3C), dlopen(3C), and dlsym(3C) man
      pages for more information.


for some reason while I'm typing the above I am getting a feeling of deja vu. anyway...

cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c schematron.c +Z -DPIC -o .libs/schematron.lo "schematron.c", line 1000: warning #2177-D: function "xmlSchematronLoadInclude" was declared but ne
ver referenced
  xmlSchematronLoadInclude(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr cur)
  ^

next:

        source='testapi.c' object='testapi.o' libtool=no \
        depfile='.deps/testapi.Po' tmpdepfile='.deps/testapi.TPo' \
        depmode=none /bin/sh ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c `test -f 'testapi.c' || echo './'`testapi.c "testapi.c", line 286: warning #2068-D: integer conversion resulted in a change of sign
      if (no == 2) return('ø');
                         ^

"testapi.c", line 299: warning #2068-D: integer conversion resulted in a change of sign
      return(-1);
            ^

"testapi.c", line 311: warning #2068-D: integer conversion resulted in a change of sign
      return(-1);
            ^

"testapi.c", line 2141: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = htmlNodeStatus((const htmlNodePtr)node, legacy);
                                    ^

"testapi.c", line 2144: warning #2191-D: type qualifier is meaningless on cast type
          des_const_htmlNodePtr(n_node, (const htmlNodePtr)node, 0);
                                         ^

"testapi.c", line 6516: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlCharInRange(val, (const xmlChRangeGroupPtr)rptr);
                                         ^

"testapi.c", line 6520: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlChRangeGroupPtr(n_rptr, (const xmlChRangeGroupPtr)rptr, 1);
                                                ^

"testapi.c", line 10628: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlListCopy(cur, (const xmlListPtr)old);
                                      ^

"testapi.c", line 10632: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlListPtr(n_old, (const xmlListPtr)old, 1);

                                       ^

"testapi.c", line 14057: warning #2191-D: type qualifier is meaningless on cast type
          xmlParserAddNodeInfo(ctxt, (const xmlParserNodeInfoPtr)info);
                                      ^

"testapi.c", line 14060: warning #2191-D: type qualifier is meaningless on cast type
des_const_xmlParserNodeInfoPtr(n_info, (const xmlParserNodeInfoPtr)info, 1);
                                                  ^

"testapi.c", line 14109: warning #2191-D: type qualifier is meaningless on cast type
ret_val = xmlParserFindNodeInfo((const xmlParserCtxtPtr)ctx, (const xmlNodePtr)node);
                                           ^

"testapi.c", line 14109: warning #2191-D: type qualifier is meaningless on cast type
ret_val = xmlParserFindNodeInfo((const xmlParserCtxtPtr)ctx, (const xmlNodePtr)node);
                                                                        ^

"testapi.c", line 14112: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlParserCtxtPtr(n_ctx, (const xmlParserCtxtPtr)ctx, 0);
                                             ^

"testapi.c", line 14113: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1);
                                        ^

"testapi.c", line 14155: warning #2191-D: type qualifier is meaningless on cast type
ret_val = xmlParserFindNodeInfoIndex((const xmlParserNodeInfoSeqPtr)seq, (const xmlNodePt
r)node);
                                                ^

"testapi.c", line 14155: warning #2191-D: type qualifier is meaningless on cast type
ret_val = xmlParserFindNodeInfoIndex((const xmlParserNodeInfoSeqPtr)seq, (const xmlNodePt
r)node);

     ^

"testapi.c", line 14158: warning #2191-D: type qualifier is meaningless on cast type
des_const_xmlParserNodeInfoSeqPtr(n_seq, (const xmlParserNodeInfoSeqPtr)seq, 0);
                                                    ^

"testapi.c", line 14159: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1);
                                        ^

"testapi.c", line 18338: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlBufferContent((const xmlBufferPtr)buf);
                                      ^

"testapi.c", line 18341: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0);
                                         ^

"testapi.c", line 18484: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlBufferLength((const xmlBufferPtr)buf);
                                     ^

"testapi.c", line 18487: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlBufferPtr(n_buf, (const xmlBufferPtr)buf, 0);
                                         ^

"testapi.c", line 18944: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlCopyNode((const xmlNodePtr)node, extended);
                                 ^

"testapi.c", line 18947: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0);
                                        ^

"testapi.c", line 18979: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlCopyNodeList((const xmlNodePtr)node);
                                     ^

"testapi.c", line 18982: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0);
                                        ^

"testapi.c", line 19334: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlDocCopyNode((const xmlNodePtr)node, doc, extended);
                                    ^

"testapi.c", line 19337: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 0);
                                        ^

"testapi.c", line 19376: warning #2191-D: type qualifier is meaningless on cast type
          ret_val = xmlDocCopyNodeList(doc, (const xmlNodePtr)node);
                                             ^

"testapi.c", line 19380: warning #2191-D: type qualifier is meaningless on cast type
          des_const_xmlNodePtr(n_node, (const xmlNodePtr)node, 1);
                                        ^

"testapi.c", line 17786: warning #2177-D: function "gen_xmlSchematronPtr" was declared but never referenced static xmlSchematronPtr gen_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
                          ^

"testapi.c", line 17789: warning #2177-D: function "des_xmlSchematronPtr" was declared but never referenced static void des_xmlSchematronPtr(int no ATTRIBUTE_UNUSED, xmlSchematronPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {
              ^

"testapi.c", line 17806: warning #2177-D: function "gen_xmlSchematronParserCtxtPtr" was declared but never referenced static xmlSchematronParserCtxtPtr gen_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, int nr
ATTRIBUTE_UNUSED) {
                                    ^

"testapi.c", line 17809: warning #2177-D: function "des_xmlSchematronParserCtxtPtr" was declared but never referenced static void des_xmlSchematronParserCtxtPtr(int no ATTRIBUTE_UNUSED, xmlSchematronParserCtxtPtr va
l ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUSED) {
              ^

"testapi.c", line 33412: warning #2177-D: function "gen_xmlSAXHandlerPtr_ptr" was declared but never referenced static xmlSAXHandlerPtr * gen_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, int nr ATTRIBUTE_UNUS
ED) {
                            ^

"testapi.c", line 33415: warning #2177-D: function "des_xmlSAXHandlerPtr_ptr" was declared but neve
r referenced
static void des_xmlSAXHandlerPtr_ptr(int no ATTRIBUTE_UNUSED, xmlSAXHandlerPtr * val ATTRIBUTE_UN
USED, int nr ATTRIBUTE_UNUSED) {
              ^

and some additional picky stuff:

creating testModule
        source='runtest.c' object='runtest.o' libtool=no \
        depfile='.deps/runtest.Po' tmpdepfile='.deps/runtest.TPo' \
        depmode=none /bin/sh ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c `test -f 'runtest.c' || echo './'`runtest.c
"runtest.c", line 3142: warning #2550-D: variable "ret" was set but never used
      int res = 0, len, ret;
                        ^

"runtest.c", line 212: warning #2550-D: variable "libxmlMemoryAllocatedBase" was set but never used
  static long libxmlMemoryAllocatedBase = 0;
              ^

"runtest.c", line 3859: warning #2177-D: function "thread_specific_data" was declared but never referenced
  thread_specific_data(void *private_data)
  ^

moving on:

creating runtest
        source='runsuite.c' object='runsuite.o' libtool=no \
        depfile='.deps/runsuite.Po' tmpdepfile='.deps/runsuite.TPo' \
        depmode=none /bin/sh ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -Wp,-H30000 -c `test -f 'runsuite.c' || echo './'`runsuite.c
"runsuite.c", line 1054: warning #2550-D: variable "res" was set but never used
      int res, ret = 0;
          ^

"runsuite.c", line 96: warning #2550-D: variable "libxmlMemoryAllocatedBase" was set but never used
  static long libxmlMemoryAllocatedBase = 0;
              ^


then:

creating parse3
        source='tree2.c' object='tree2.o' libtool=no \
        depfile='.deps/tree2.Po' tmpdepfile='.deps/tree2.TPo' \
        depmode=none /bin/sh ../../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include -I./include -D_REENTRANT -g -Wp,-H30000 -c `test -f 'tree2.c' || echo './'`tree2.c
"tree2.c", line 30: warning #2550-D: variable "dtd" was set but never used
      xmlDtdPtr dtd = NULL;       /* DTD pointer */
                ^


and then finally, an outright build error:

creating parse2
No suffix list.
sh: /usr/bin/xsltproc:  not found.
*** Error exit code 127 (ignored)
sh: /usr/bin/xsltproc:  not found.
*** Error exit code 127 (ignored)
sh: /usr/bin/xsltproc:  not found.
*** Error exit code 127 (ignored)
sh: /usr/bin/xsltproc:  not found.
*** Error exit code 127 (ignored)
Making all in example

there is no xsltproc on the system:

# find / -name xsltproc
#

However, it does have a previous libxml2 installed on it:

# swlist
...
#
# Product(s) not contained in a Bundle:
#

VSAR B.11.23.02.08A VSAR: Visual System Information Tool
  gettext                       0.14.5         gettext
  libiconv                      1.10           libiconv
  liblzf                        1.51           liblzf
  libxml2                       2.6.18         libxml2
  zlib                          1.2.3          zlib

which came from http://hpux.connect.org.uk/

I notice some xsltproc stuff in config.log:

# grep xslt config.log
configure:3470: checking for xsltproc
configure:3501: result: /usr/bin/xsltproc
ac_cv_path_XSLTPROC=/usr/bin/xsltproc
XSLTPROC='/usr/bin/xsltproc'

and this seems to be the relevant bit of configure:

# Extract the first word of "xsltproc", so it can be a program name with args.
set dummy xsltproc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XSLTPROC+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  case $XSLTPROC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
done

  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
  ;;
esac
fi
XSLTPROC=$ac_cv_path_XSLTPROC

if test -n "$XSLTPROC"; then
  echo "$as_me:$LINENO: result: $XSLTPROC" >&5
echo "${ECHO_T}$XSLTPROC" >&6
else
  echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi

though I must admit my ability to quickly parse shell stuff is pretty weak.



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