sparklemotion / nokogiri

Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
https://nokogiri.org/
MIT License
6.15k stars 902 forks source link

OSX 10.10.2 installation problem (1.6.6.2) #1235

Closed ghost closed 9 years ago

ghost commented 9 years ago

I have tried everything I can think of and find to get this installed but no luck!

Command being run is: gem install nokogiri

Error:

Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2... OK`
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary

compile.log makes a lot of complaints about being built for an i386 system for some reasons:

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Homebrew 0.9.5
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
gem 2.4.5

Happy to add any more info

flavorjones commented 9 years ago

Hi,

Thanks for reporting this issue. First, I'd like to make sure you've followed the instructions here:

http://www.nokogiri.org/tutorials/installing_nokogiri.html#mac_os_x

Can you confirm?

If you're still having issues, then please provide complete versions of all your log files. Thanks.

ghost commented 9 years ago

Yes, have followed it

gem_make.out:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150126-17302-19iwlul.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
        - 0001-Revert-Missing-initialization-for-the-catalog-module.patch
        - 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2... OK
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
/Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError)
        from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `chdir'
        from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `execute'
        from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:70:in `compile'
        from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:110:in `cook'
        from extconf.rb:278:in `block in process_recipe'
        from extconf.rb:177:in `tap'
        from extconf.rb:177:in `process_recipe'
        from extconf.rb:475:in `<main>'

extconf failed, exit code 1

and /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2/compile.log:

/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in include
Making all in libxml
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in .
  CC       SAX.lo
  CC       entities.lo
  CC       encoding.lo
encoding.c:491:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:573:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
encoding.c:729:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
encoding.c:491:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:573:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
encoding.c:729:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
  CC       error.lo
  CC       parserInternals.lo
  CC       parser.lo
  CC       tree.lo
  CC       hash.lo
  CC       list.lo
  CC       xmlIO.lo
  CC       xmlmemory.lo
xmlmemory.c:328:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 8 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlmemory.c:436:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 8 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
xmlmemory.c:328:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 4 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlmemory.c:436:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 4 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC       uri.lo
  CC       valid.lo
  CC       xlink.lo
  CC       HTMLparser.lo
HTMLparser.c:4369:41: warning: missing field 'begin_pos' initializer [-Wmissing-field-initializers]
    htmlParserNodeInfo node_info = { 0, };
                                        ^
1 warning generated.
HTMLparser.c:4369:41: warning: missing field 'begin_pos' initializer [-Wmissing-field-initializers]
    htmlParserNodeInfo node_info = { 0, };
                                        ^
1 warning generated.
  CC       HTMLtree.lo
  CC       debugXML.lo
  CC       xpath.lo
xpath.c:4875:73: warning: passing 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') to parameter of type 'void *' converts between void pointer and function pointer [-Wpedantic]
    return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
                                                                        ^
./include/libxml/hash.h:56:29: note: expanded from macro 'XML_CAST_FPTR'
#define XML_CAST_FPTR(fptr) fptr
                            ^
./include/libxml/hash.h:131:34: note: passing argument to parameter 'userdata' here
                                         void *userdata);
                                               ^
xpath.c:4956:24: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
    XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xpath.c:13552:41: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
                    XML_CAST_FPTR(func) = op->cache;
                                        ^ ~~~~~~~~~
xpath.c:13579:31: warning: assigning to 'void *' from 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') converts between void pointer and function pointer [-Wpedantic]
                    op->cache = XML_CAST_FPTR(func);
                              ^               ~~~~
In file included from xpath.c:476:
./trionan.c:194:1: warning: unused function 'trio_is_special_quantity' [-Wunused-function]
trio_is_special_quantity
^
./trionan.c:218:1: warning: unused function 'trio_is_negative' [-Wunused-function]
trio_is_negative
^
6 warnings generated.
xpath.c:4875:73: warning: passing 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') to parameter of type 'void *' converts between void pointer and function pointer [-Wpedantic]
    return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
                                                                        ^
./include/libxml/hash.h:56:29: note: expanded from macro 'XML_CAST_FPTR'
#define XML_CAST_FPTR(fptr) fptr
                            ^
./include/libxml/hash.h:131:34: note: passing argument to parameter 'userdata' here
                                         void *userdata);
                                               ^
xpath.c:4956:24: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
    XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xpath.c:13552:41: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
                    XML_CAST_FPTR(func) = op->cache;
                                        ^ ~~~~~~~~~
xpath.c:13579:31: warning: assigning to 'void *' from 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') converts between void pointer and function pointer [-Wpedantic]
                    op->cache = XML_CAST_FPTR(func);
                              ^               ~~~~
In file included from xpath.c:476:
./trionan.c:194:1: warning: unused function 'trio_is_special_quantity' [-Wunused-function]
trio_is_special_quantity
^
./trionan.c:218:1: warning: unused function 'trio_is_negative' [-Wunused-function]
trio_is_negative
^
6 warnings generated.
  CC       xpointer.lo
  CC       xinclude.lo
  CC       nanohttp.lo
nanohttp.c:1537:38: warning: while loop has empty body [-Wempty-body]
        while ( xmlNanoHTTPRecv(ctxt) > 0 ) ;
                                            ^
nanohttp.c:1537:38: note: put the semicolon on a separate line to silence this warning
1 warning generated.
nanohttp.c:1537:38: warning: while loop has empty body [-Wempty-body]
        while ( xmlNanoHTTPRecv(ctxt) > 0 ) ;
                                            ^
nanohttp.c:1537:38: note: put the semicolon on a separate line to silence this warning
1 warning generated.
  CC       nanoftp.lo
  CC       catalog.lo
  CC       globals.lo
  CC       threads.lo
  CC       c14n.lo
  CC       xmlstring.lo
  CC       buf.lo
  CC       xmlregexp.lo
  CC       xmlschemas.lo
xmlschemas.c:1177:25: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_IS_COMPLEX(WXS_TYPE_CAST item))
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:224:8: note: expanded from macro 'WXS_IS_COMPLEX'
    (((i)->type == XML_SCHEMA_TYPE_COMPLEX) || \
       ^
xmlschemas.c:1177:25: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_IS_COMPLEX(WXS_TYPE_CAST item))
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:225:8: note: expanded from macro 'WXS_IS_COMPLEX'
     ((i)->builtInType == XML_SCHEMAS_ANYTYPE))
       ^
xmlschemas.c:1201:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1203:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1206:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1209:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaWildcardPtr' (aka 'struct _xmlSchemaWildcard *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaWildcardPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1211:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaParticlePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1215:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1217:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1219:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1223:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1225:14: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return(((xmlSchemaQNameRefPtr) item)->node);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1231:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeUsePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1326:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1328:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increase
s required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1330:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1334:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1336:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1340:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1342:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_ATTRUSE_DECL(item) != NULL) {
                ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1344:22: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                    WXS_BASIC_CAST WXS_ATTRUSE_DECL(item)));
                                   ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1348:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaQNameRefPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1350:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaNotationPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1381:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1383:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1385:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1390:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1392:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1396:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1398:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_ATTRUSE_DECL(item) != NULL) {
                ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1400:22: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                    WXS_BASIC_CAST WXS_ATTRUSE_DECL(item)));
                                   ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1405:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaQNameRefPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1407:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaNotationPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1588:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1603:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1626:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1643:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                ause = WXS_ATTR_USE_CAST item;
                       ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1659:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
                attr = (xmlSchemaAttributePtr) item;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1674:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
                elem = (xmlSchemaElementPtr) item;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1691:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            *buf = xmlStrcat(*buf, ((xmlSchemaIDCPtr) item)->name);
                                    ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1697:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaWildcardPtr' (aka 'struct _xmlSchemaWildcard *') increases required alignment from 4 to 8 [-Wcast-align]
                    ((xmlSchemaWildcardPtr) item)->processContents));
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2040:36: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctxt;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2109:37: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt;
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2218:32: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) actxt;
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2410:4: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        (((xmlSchemaValidCtxtPtr) actxt)->inode != NULL))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2411:12: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return ( ((xmlSchemaValidCtxtPtr) actxt)->inode->nodeType);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5057:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret, xmlSchemaTypePtr) == name) &&
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5058:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret, xmlSchemaTypePtr) ==
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:5065:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret,
                         ^~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5067:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret,
                         ^~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:5074:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret,
                         ^~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5076:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret,
                         ^~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:7469:7: warning: cast from 'const xmlChar *' (aka 'const unsigned char *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 1 to 8 [-Wcast-align]
                if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:30: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                             ^
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
xmlschemas.c:11303:13: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
            part = (xmlSchemaParticlePtr) xmlSchemaParseElement(ctxt,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:11356:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
                part = (xmlSchemaTreeItemPtr)
                       ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:14372:9: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
        if ((! WXS_IS_ANYTYPE(baseItem)) &&
               ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:221:10: note: expanded from macro 'WXS_IS_ANYTYPE'
      ( (WXS_TYPE_CAST (i))->builtInType == XML_SCHEMAS_ANYTYPE))
         ^~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:15097:6: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            WXS_MODEL_GROUPDEF_CAST xmlSchemaGetNamedComponent(ctxt->schema,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:18611:35: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return(xmlSchemaFixupComplexType(PCTXT_CAST actxt, type));
                                         ^~~~~~~~~~~~~~~~
xmlschemas.c:133:20: note: expanded from macro 'PCTXT_CAST'
#define PCTXT_CAST (xmlSchemaParserCtxtPtr)
                   ^
xmlschemas.c:18613:42: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return(xmlSchemaFixupSimpleTypeStageTwo(PCTXT_CAST actxt, type));
                                                ^~~~~~~~~~~~~~~~
xmlschemas.c:133:20: note: expanded from macro 'PCTXT_CAST'
#define PCTXT_CAST (xmlSchemaParserCtxtPtr)
                   ^
xmlschemas.c:19056:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            gr = WXS_ATTR_GROUP_CAST ref->item;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:19203:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            gr = WXS_ATTR_GROUP_CAST (WXS_QNAME_CAST use)->item;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20053:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_MODELGROUPDEF_MODEL(refItem) == NULL)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:194:39: note: expanded from macro 'WXS_MODELGROUPDEF_MODEL'
#define WXS_MODELGROUPDEF_MODEL(mgd) (WXS_MODEL_GROUP_CAST (mgd))->children
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:145:30: note: expanded from macro 'WXS_MODEL_GROUP_CAST'
#define WXS_MODEL_GROUP_CAST (xmlSchemaModelGroupPtr)
                             ^
xmlschemas.c:20063:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            if ((WXS_MODELGROUPDEF_MODEL(refItem))->type ==
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:194:39: note: expanded from macro 'WXS_MODELGROUPDEF_MODEL'
#define WXS_MODELGROUPDEF_MODEL(mgd) (WXS_MODEL_GROUP_CAST (mgd))->children
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:145:30: note: expanded from macro 'WXS_MODEL_GROUP_CAST'
#define WXS_MODEL_GROUP_CAST (xmlSchemaModelGroupPtr)
                             ^
xmlschemas.c:20086:27: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
            particle->children = (xmlSchemaTreeItemPtr) refItem;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20092:27: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
            particle->children = (xmlSchemaTreeItemPtr) refItem;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20398:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                ((xmlSchemaIDCPtr) idc->ref->item)->nbFields) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20402:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                refer = (xmlSchemaIDCPtr) idc->ref->item;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20528:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_TYPE_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20535:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_TYPE_CAST prev)->flags |= XML_SCHEMAS_TYPE_REDEFINED;
                 ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20541:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                ((xmlSchemaTypePtr) item)->baseType =
                 ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20542:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                    (xmlSchemaTypePtr) prev;
                    ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20545:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_MODEL_GROUPDEF_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20552:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_MODEL_GROUPDEF_CAST prev)->flags |=
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20559:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_PTC_CAST redef->reference)->children =
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:137:22: note: expanded from macro 'WXS_PTC_CAST'
#define WXS_PTC_CAST (xmlSchemaParticlePtr)
                     ^
xmlschemas.c:20560:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
                        WXS_TREE_CAST prev;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:136:23: note: expanded from macro 'WXS_TREE_CAST'
#define WXS_TREE_CAST (xmlSchemaTreeItemPtr)
                      ^
xmlschemas.c:20565:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_ATTR_GROUP_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20571:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_ATTR_GROUP_CAST prev)->flags |=
                 ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20580:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_QNAME_CAST redef->reference)->item = prev;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:147:24: note: expanded from macro 'WXS_QNAME_CAST'
#define WXS_QNAME_CAST (xmlSchemaQNameRefPtr)
                       ^
xmlschemas.c:20650:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required
 alignment from 4 to 8 [-Wcast-align]
                (WXS_TYPE_CAST redef->target)->name = NULL;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20686:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST item)->attrUses,
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20687:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST redef->target)->attrUses,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20688:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST item)->attributeWildcard,
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20689:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST redef->target)->attributeWildcard);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20742:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_TYPE(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20443:3: note: expanded from macro 'WXS_REDEFINED_TYPE'
(((xmlSchemaTypePtr) item)->flags & XML_SCHEMAS_TYPE_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20744:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_TYPE_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20748:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ELEM_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:139:23: note: expanded from macro 'WXS_ELEM_CAST'
#define WXS_ELEM_CAST (xmlSchemaElementPtr)
                      ^
xmlschemas.c:20752:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ATTR_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
xmlschemas.c:20756:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_MODEL_GROUP_DEF(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20446:3: note: expanded from macro 'WXS_REDEFINED_MODEL_GROUP_DEF'
(((xmlSchemaModelGroupDefPtr) item)->flags & XML_SCHEMA_MODEL_GROUP_DEF_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20758:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_MODEL_GROUPDEF_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20762:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_ATTR_GROUP(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20449:3: note: expanded from macro 'WXS_REDEFINED_ATTR_GROUP'
(((xmlSchemaAttributeGroupPtr) item)->flags & XML_SCHEMAS_ATTRGROUP_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20764:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ATTR_GROUP_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20770:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_IDC_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~
xmlschemas.c:146:22: note: expanded from macro 'WXS_IDC_CAST'
#define WXS_IDC_CAST (xmlSchemaIDCPtr)
                     ^
xmlschemas.c:20774:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
                name = ((xmlSchemaNotationPtr) item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:23206:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            refIdc = (xmlSchemaIDCPtr) idc->ref->item;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:23808:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((xmlSchemaIDCPtr) matcher->aidc->def->ref->item ==
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24554:4: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        (xmlSchemaValidCtxtPtr) actxt,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24555:5: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        ((xmlSchemaValidCtxtPtr) actxt)->schema,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24559:36: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                    ret = xmlSchemaValidateQName((xmlSchemaValidCtxtPtr) actxt,
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24576:5: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        ((xmlSchemaParserCtxtPtr) actxt)->schema, node,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99 warnings generated.
xmlschemas.c:7469:7: warning: cast from 'const xmlChar *' (aka 'const unsigned char *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 1 to 4 [-Wcast-align]
                if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:30: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                             ^
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
1 warning generated.
  CC       xmlschemastypes.lo
  CC       xmlunicode.lo
  CC       xmlreader.lo
  CC       relaxng.lo
  CC       dict.lo
dict.c:252:29: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
        if (pool->end - pool->free > namelen)
            ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~
dict.c:320:29: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
        if (pool->end - pool->free > namelen + plen + 1)
            ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC       SAX2.lo
  CC       xmlwriter.lo
  CC       legacy.lo
  CC       chvalid.lo
  CC       pattern.lo
  CC       xmlsave.lo
  CC       xmlmodule.lo
  CC       schematron.lo
  CC       xzlib.lo
  CCLD     libxml2.la
/Library/Developer/CommandLineTools/usr/bin/ranlib: for architecture: x86_64 file: .libs/libxml2.a(xzlib.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: for architecture: i386 file: .libs/libxml2.a(xzlib.o) has no symbols
  CC       testdso.lo
  CCLD     testdso.la
  CC       xmllint.o
  CCLD     xmllint
ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libz.dylib
ld: warning: ignoring file /opt/local/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/liblzma.dylib
ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libiconv.dylib
Undefined symbols for architecture i386:
  "_crc32", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflate", referenced from:
      _xmlZMemBuffGetContent in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflateEnd", referenced from:
      _xmlFreeZMemBuff in libxml2.a(xmlIO.o)
  "_deflateInit2_", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
  "_gzclose", referenced from:
      _xmlGzfileClose in libxml2.a(xmlIO.o)
  "_gzdirect", referenced from:
      ___xmlParserInputBufferCreateFilename in libxml2.a(xmlIO.o)
  "_gzdopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
      _xmlGzfileOpen_real in libxml2.a(xmlIO.o)
  "_gzopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
  CCLD     xmllint
ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libz.dylib
ld: warning: ignoring file /opt/local/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/liblzma.dylib
ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libiconv.dylib
Undefined symbols for architecture i386:
  "_crc32", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflate", referenced from:
      _xmlZMemBuffGetContent in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflateEnd", referenced from:
      _xmlFreeZMemBuff in libxml2.a(xmlIO.o)
  "_deflateInit2_", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
  "_gzclose", referenced from:
      _xmlGzfileClose in libxml2.a(xmlIO.o)
  "_gzdirect", referenced from:
      ___xmlParserInputBufferCreateFilename in libxml2.a(xmlIO.o)
  "_gzdopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
      _xmlGzfileOpen_real in libxml2.a(xmlIO.o)
  "_gzopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
      _xmlGzfileOpen_real in libxml2.a(xmlIO.o)
  "_gzread", referenced from:
      _xmlGzfileRead in libxml2.a(xmlIO.o)
  "_gzwrite", referenced from:
      _xmlGzfileWrite in libxml2.a(xmlIO.o)
  "_inflate", referenced from:
      _xmlNanoHTTPRead in libxml2.a(nanohttp.o)
  "_inflateEnd", referenced from:
      _xmlNanoHTTPFreeCtxt in libxml2.a(nanohttp.o)
  "_inflateInit2_", referenced from:
      _xmlNanoHTTPScanAnswer in libxml2.a(nanohttp.o)
  "_libiconv", referenced from:
      _xmlIconvWrapper in libxml2.a(encoding.o)
  "_libiconv_close", referenced from:
      _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
      _xmlCharEncCloseFunc in libxml2.a(encoding.o)
  "_libiconv_open", referenced from:
      _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
flavorjones commented 9 years ago

Paging @zenspider -- I don't know what to make out of these architecture mismatches. Do you have any questions or advice for @oliver-whiteman around how his system is configured? This is mystifying.

ghost commented 9 years ago

OK, I have managed to get past that bit now by:

export ARCHFLAGS="-arch x86_64"

but now it's complaining about libxml2 missing:

checking for main() in -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
libxml2 is missing.  Please locate mkmf.log to investigate how it is failing.

even though earlier in the logs it has:

Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... OK
Running 'install' for libxml2 2.9.2... OK
Activating libxml2 2.9.2 (from /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin14/libxml2/2.9.2)...
zenspider commented 9 years ago

Never fear! Some dumbass from Seattle is here!

zenspider commented 9 years ago

Well... I can't test against 10.10.2 as it isn't released yet. :(

zenspider commented 9 years ago

I've upgraded my rubygems to be the same version. Assuming we have the same version of clang (not reported, but mine is below), then this is probably/hopefully just a beta-release OS problem.

Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
zenspider commented 9 years ago

Um... which is to say, everything installs fine on 10.10.1 w/ the same versions of everything.

ghost commented 9 years ago
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

Looks like it. I suppose that is equal parts annoying and good news

thiagomarzagao commented 9 years ago

Similar problem here (ld: symbol(s) not found for architecture i386; see full compile.log below), except that I'm on OS X 10.10.1 (not 10.10.2) and that export ARCHFLAGS="-arch x86_64" didn't change anything. I tried these tips, but no joy.

OS X 10.10.1 ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in include
Making all in libxml
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in .
  CC       SAX.lo
  CC       entities.lo
  CC       encoding.lo
encoding.c:491:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:573:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
encoding.c:729:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
encoding.c:491:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:573:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
encoding.c:729:26: warning: cast from 'const unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* in = (unsigned short*) inb;
                         ^~~~~~~~~~~~~~~~~~~~~
encoding.c:815:27: warning: cast from 'unsigned char *' to 'unsigned short *' increases required alignment from 1 to 2 [-Wcast-align]
    unsigned short* out = (unsigned short*) outb;
                          ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
  CC       error.lo
  CC       parserInternals.lo
  CC       parser.lo
  CC       tree.lo
  CC       hash.lo
  CC       list.lo
  CC       xmlIO.lo
  CC       xmlmemory.lo
xmlmemory.c:328:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 8 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlmemory.c:436:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 8 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
xmlmemory.c:328:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 4 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlmemory.c:436:9: warning: cast from 'char *' to 'MEMHDR *' (aka 'struct memnod *') increases required alignment from 1 to 4 [-Wcast-align]
    p = CLIENT_2_HDR(ptr);
        ^~~~~~~~~~~~~~~~~
xmlmemory.c:113:26: note: expanded from macro 'CLIENT_2_HDR'
#define CLIENT_2_HDR(a) ((MEMHDR *) (((char *) (a)) - RESERVE_SIZE))
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC       uri.lo
  CC       valid.lo
  CC       xlink.lo
  CC       HTMLparser.lo
HTMLparser.c:4369:41: warning: missing field 'begin_pos' initializer [-Wmissing-field-initializers]
    htmlParserNodeInfo node_info = { 0, };
                                        ^
1 warning generated.
HTMLparser.c:4369:41: warning: missing field 'begin_pos' initializer [-Wmissing-field-initializers]
    htmlParserNodeInfo node_info = { 0, };
                                        ^
1 warning generated.
  CC       HTMLtree.lo
  CC       debugXML.lo
  CC       xpath.lo
xpath.c:4875:73: warning: passing 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') to parameter of type 'void *' converts between void pointer and function pointer [-Wpedantic]
    return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
                                                                        ^
./include/libxml/hash.h:56:29: note: expanded from macro 'XML_CAST_FPTR'
#define XML_CAST_FPTR(fptr) fptr
                            ^
./include/libxml/hash.h:131:34: note: passing argument to parameter 'userdata' here
                                         void *userdata);
                                               ^
xpath.c:4956:24: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
    XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xpath.c:13552:41: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
                    XML_CAST_FPTR(func) = op->cache;
                                        ^ ~~~~~~~~~
xpath.c:13579:31: warning: assigning to 'void *' from 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') converts between void pointer and function pointer [-Wpedantic]
                    op->cache = XML_CAST_FPTR(func);
                              ^               ~~~~
In file included from xpath.c:476:
./trionan.c:194:1: warning: unused function 'trio_is_special_quantity' [-Wunused-function]
trio_is_special_quantity
^
./trionan.c:218:1: warning: unused function 'trio_is_negative' [-Wunused-function]
trio_is_negative
^
6 warnings generated.
xpath.c:4875:73: warning: passing 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') to parameter of type 'void *' converts between void pointer and function pointer [-Wpedantic]
    return(xmlHashAddEntry2(ctxt->funcHash, name, ns_uri, XML_CAST_FPTR(f)));
                                                                        ^
./include/libxml/hash.h:56:29: note: expanded from macro 'XML_CAST_FPTR'
#define XML_CAST_FPTR(fptr) fptr
                            ^
./include/libxml/hash.h:131:34: note: passing argument to parameter 'userdata' here
                                         void *userdata);
                                               ^
xpath.c:4956:24: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
    XML_CAST_FPTR(ret) = xmlHashLookup2(ctxt->funcHash, name, ns_uri);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xpath.c:13552:41: warning: assigning to 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') from 'void *' converts between void pointer and function pointer [-Wpedantic]
                    XML_CAST_FPTR(func) = op->cache;
                                        ^ ~~~~~~~~~
xpath.c:13579:31: warning: assigning to 'void *' from 'xmlXPathFunction' (aka 'void (*)(xmlXPathParserContextPtr, int)') converts between void pointer and function pointer [-Wpedantic]
                    op->cache = XML_CAST_FPTR(func);
                              ^               ~~~~
In file included from xpath.c:476:
./trionan.c:194:1: warning: unused function 'trio_is_special_quantity' [-Wunused-function]
trio_is_special_quantity
^
./trionan.c:218:1: warning: unused function 'trio_is_negative' [-Wunused-function]
trio_is_negative
^
6 warnings generated.
  CC       xpointer.lo
  CC       xinclude.lo
  CC       nanohttp.lo
nanohttp.c:1537:38: warning: while loop has empty body [-Wempty-body]
        while ( xmlNanoHTTPRecv(ctxt) > 0 ) ;
                                            ^
nanohttp.c:1537:38: note: put the semicolon on a separate line to silence this warning
1 warning generated.
nanohttp.c:1537:38: warning: while loop has empty body [-Wempty-body]
        while ( xmlNanoHTTPRecv(ctxt) > 0 ) ;
                                            ^
nanohttp.c:1537:38: note: put the semicolon on a separate line to silence this warning
1 warning generated.
  CC       nanoftp.lo
  CC       catalog.lo
  CC       globals.lo
  CC       threads.lo
  CC       c14n.lo
  CC       xmlstring.lo
  CC       buf.lo
  CC       xmlregexp.lo
  CC       xmlschemas.lo
xmlschemas.c:1177:25: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_IS_COMPLEX(WXS_TYPE_CAST item))
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:224:8: note: expanded from macro 'WXS_IS_COMPLEX'
    (((i)->type == XML_SCHEMA_TYPE_COMPLEX) || \
       ^
xmlschemas.c:1177:25: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_IS_COMPLEX(WXS_TYPE_CAST item))
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:225:8: note: expanded from macro 'WXS_IS_COMPLEX'
     ((i)->builtInType == XML_SCHEMAS_ANYTYPE))
       ^
xmlschemas.c:1201:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1203:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1206:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1209:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaWildcardPtr' (aka 'struct _xmlSchemaWildcard *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaWildcardPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1211:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaParticlePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1215:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1217:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1219:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1223:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1225:14: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return(((xmlSchemaQNameRefPtr) item)->node);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1231:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeUsePtr) item)->node);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1326:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1328:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1330:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1334:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1336:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1340:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1342:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_ATTRUSE_DECL(item) != NULL) {
                ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1344:22: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                    WXS_BASIC_CAST WXS_ATTRUSE_DECL(item)));
                                   ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1348:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaQNameRefPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1350:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaNotationPtr) item)->name);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1381:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaElementPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1383:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributePtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1385:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaAttributeGroupPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1390:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaTypePtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1392:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaModelGroupDefPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1396:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaIDCPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1398:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_ATTRUSE_DECL(item) != NULL) {
                ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1400:22: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                    WXS_BASIC_CAST WXS_ATTRUSE_DECL(item)));
                                   ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:45: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                                            ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1405:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaQNameRefPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1407:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
            return (((xmlSchemaNotationPtr) item)->targetNamespace);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1588:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1603:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1626:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaTypePtr type = WXS_TYPE_CAST item;
                                    ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:1643:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeUsePtr' (aka 'struct _xmlSchemaAttributeUse *') increases required alignment from 4 to 8 [-Wcast-align]
                ause = WXS_ATTR_USE_CAST item;
                       ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:142:27: note: expanded from macro 'WXS_ATTR_USE_CAST'
#define WXS_ATTR_USE_CAST (xmlSchemaAttributeUsePtr)
                          ^
xmlschemas.c:1659:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
                attr = (xmlSchemaAttributePtr) item;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1674:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
                elem = (xmlSchemaElementPtr) item;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1691:30: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            *buf = xmlStrcat(*buf, ((xmlSchemaIDCPtr) item)->name);
                                    ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:1697:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaWildcardPtr' (aka 'struct _xmlSchemaWildcard *') increases required alignment from 4 to 8 [-Wcast-align]
                    ((xmlSchemaWildcardPtr) item)->processContents));
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2040:36: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctxt;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2109:37: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
            xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt;
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2218:32: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) actxt;
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2410:4: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        (((xmlSchemaValidCtxtPtr) actxt)->inode != NULL))
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:2411:12: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return ( ((xmlSchemaValidCtxtPtr) actxt)->inode->nodeType);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5057:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret, xmlSchemaTypePtr) == name) &&
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5058:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret, xmlSchemaTypePtr) ==
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:5065:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret,
                         ^~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5067:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret,
                         ^~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:5074:12: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    if ((WXS_COMP_NAME(ret,
                         ^~~~~~~~~~~~~~~~~~
xmlschemas.c:5028:30: note: expanded from macro 'WXS_COMP_NAME'
#define WXS_COMP_NAME(c, t) ((t) (c))->name
                             ^~~~~~~
xmlschemas.c:5076:5: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                        (WXS_COMP_TNS(ret,
                         ^~~~~~~~~~~~~~~~~
xmlschemas.c:5029:29: note: expanded from macro 'WXS_COMP_TNS'
#define WXS_COMP_TNS(c, t) ((t) (c))->targetNamespace
                            ^~~~~~~
xmlschemas.c:7469:7: warning: cast from 'const xmlChar *' (aka 'const unsigned char *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 1 to 8 [-Wcast-align]
                if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:30: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                             ^
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
xmlschemas.c:11303:13: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
            part = (xmlSchemaParticlePtr) xmlSchemaParseElement(ctxt,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:11356:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
                part = (xmlSchemaTreeItemPtr)
                       ^~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:14372:9: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
        if ((! WXS_IS_ANYTYPE(baseItem)) &&
               ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:221:10: note: expanded from macro 'WXS_IS_ANYTYPE'
      ( (WXS_TYPE_CAST (i))->builtInType == XML_SCHEMAS_ANYTYPE))
         ^~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:15097:6: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
            WXS_MODEL_GROUPDEF_CAST xmlSchemaGetNamedComponent(ctxt->schema,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:18611:35: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return(xmlSchemaFixupComplexType(PCTXT_CAST actxt, type));
                                         ^~~~~~~~~~~~~~~~
xmlschemas.c:133:20: note: expanded from macro 'PCTXT_CAST'
#define PCTXT_CAST (xmlSchemaParserCtxtPtr)
                   ^
xmlschemas.c:18613:42: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
        return(xmlSchemaFixupSimpleTypeStageTwo(PCTXT_CAST actxt, type));
                                                ^~~~~~~~~~~~~~~~
xmlschemas.c:133:20: note: expanded from macro 'PCTXT_CAST'
#define PCTXT_CAST (xmlSchemaParserCtxtPtr)
                   ^
xmlschemas.c:19056:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            gr = WXS_ATTR_GROUP_CAST ref->item;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:19203:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            gr = WXS_ATTR_GROUP_CAST (WXS_QNAME_CAST use)->item;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20053:10: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            if (WXS_MODELGROUPDEF_MODEL(refItem) == NULL)
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:194:39: note: expanded from macro 'WXS_MODELGROUPDEF_MODEL'
#define WXS_MODELGROUPDEF_MODEL(mgd) (WXS_MODEL_GROUP_CAST (mgd))->children
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:145:30: note: expanded from macro 'WXS_MODEL_GROUP_CAST'
#define WXS_MODEL_GROUP_CAST (xmlSchemaModelGroupPtr)
                             ^
xmlschemas.c:20063:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupPtr' (aka 'struct _xmlSchemaModelGroup *') increases required alignment from 4 to 8 [-Wcast-align]
            if ((WXS_MODELGROUPDEF_MODEL(refItem))->type ==
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:194:39: note: expanded from macro 'WXS_MODELGROUPDEF_MODEL'
#define WXS_MODELGROUPDEF_MODEL(mgd) (WXS_MODEL_GROUP_CAST (mgd))->children
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:145:30: note: expanded from macro 'WXS_MODEL_GROUP_CAST'
#define WXS_MODEL_GROUP_CAST (xmlSchemaModelGroupPtr)
                             ^
xmlschemas.c:20086:27: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
            particle->children = (xmlSchemaTreeItemPtr) refItem;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20092:27: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
            particle->children = (xmlSchemaTreeItemPtr) refItem;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20398:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                ((xmlSchemaIDCPtr) idc->ref->item)->nbFields) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20402:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                refer = (xmlSchemaIDCPtr) idc->ref->item;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20528:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_TYPE_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20535:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_TYPE_CAST prev)->flags |= XML_SCHEMAS_TYPE_REDEFINED;
                 ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20541:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                ((xmlSchemaTypePtr) item)->baseType =
                 ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20542:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                    (xmlSchemaTypePtr) prev;
                    ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20545:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_MODEL_GROUPDEF_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20552:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_MODEL_GROUPDEF_CAST prev)->flags |=
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20559:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaParticlePtr' (aka 'struct _xmlSchemaParticle *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_PTC_CAST redef->reference)->children =
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:137:22: note: expanded from macro 'WXS_PTC_CAST'
#define WXS_PTC_CAST (xmlSchemaParticlePtr)
                     ^
xmlschemas.c:20560:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTreeItemPtr' (aka 'struct _xmlSchemaTreeItem *') increases required alignment from 4 to 8 [-Wcast-align]
                        WXS_TREE_CAST prev;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:136:23: note: expanded from macro 'WXS_TREE_CAST'
#define WXS_TREE_CAST (xmlSchemaTreeItemPtr)
                      ^
xmlschemas.c:20565:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((WXS_ATTR_GROUP_CAST prev)->flags &
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20571:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_ATTR_GROUP_CAST prev)->flags |=
                 ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20580:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaQNameRefPtr' (aka 'struct _xmlSchemaQNameRef *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_QNAME_CAST redef->reference)->item = prev;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:147:24: note: expanded from macro 'WXS_QNAME_CAST'
#define WXS_QNAME_CAST (xmlSchemaQNameRefPtr)
                       ^
xmlschemas.c:20650:4: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                (WXS_TYPE_CAST redef->target)->name = NULL;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20686:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST item)->attrUses,
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20687:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST redef->target)->attrUses,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20688:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST item)->attributeWildcard,
                     ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20689:8: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                    (WXS_ATTR_GROUP_CAST redef->target)->attributeWildcard);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20742:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_TYPE(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20443:3: note: expanded from macro 'WXS_REDEFINED_TYPE'
(((xmlSchemaTypePtr) item)->flags & XML_SCHEMAS_TYPE_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20744:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaTypePtr' (aka 'struct _xmlSchemaType *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_TYPE_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:138:23: note: expanded from macro 'WXS_TYPE_CAST'
#define WXS_TYPE_CAST (xmlSchemaTypePtr)
                      ^
xmlschemas.c:20748:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaElementPtr' (aka 'struct _xmlSchemaElement *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ELEM_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:139:23: note: expanded from macro 'WXS_ELEM_CAST'
#define WXS_ELEM_CAST (xmlSchemaElementPtr)
                      ^
xmlschemas.c:20752:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ATTR_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
xmlschemas.c:20756:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_MODEL_GROUP_DEF(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20446:3: note: expanded from macro 'WXS_REDEFINED_MODEL_GROUP_DEF'
(((xmlSchemaModelGroupDefPtr) item)->flags & XML_SCHEMA_MODEL_GROUP_DEF_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20758:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaModelGroupDefPtr' (aka 'struct _xmlSchemaModelGroupDef *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_MODEL_GROUPDEF_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:144:33: note: expanded from macro 'WXS_MODEL_GROUPDEF_CAST'
#define WXS_MODEL_GROUPDEF_CAST (xmlSchemaModelGroupDefPtr)
                                ^
xmlschemas.c:20762:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                if (WXS_REDEFINED_ATTR_GROUP(item))
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20449:3: note: expanded from macro 'WXS_REDEFINED_ATTR_GROUP'
(((xmlSchemaAttributeGroupPtr) item)->flags & XML_SCHEMAS_ATTRGROUP_REDEFINED)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:20764:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaAttributeGroupPtr' (aka 'struct _xmlSchemaAttributeGroup *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_ATTR_GROUP_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:140:29: note: expanded from macro 'WXS_ATTR_GROUP_CAST'
#define WXS_ATTR_GROUP_CAST (xmlSchemaAttributeGroupPtr)
                            ^
xmlschemas.c:20770:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                name = (WXS_IDC_CAST item)->name;
                        ^~~~~~~~~~~~~~~~~
xmlschemas.c:146:22: note: expanded from macro 'WXS_IDC_CAST'
#define WXS_IDC_CAST (xmlSchemaIDCPtr)
                     ^
xmlschemas.c:20774:11: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaNotationPtr' (aka 'struct _xmlSchemaNotation *') increases required alignment from 4 to 8 [-Wcast-align]
                name = ((xmlSchemaNotationPtr) item)->name;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:23206:15: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
            refIdc = (xmlSchemaIDCPtr) idc->ref->item;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:23808:7: warning: cast from 'xmlSchemaBasicItemPtr' (aka 'struct _xmlSchemaBasicItem *') to 'xmlSchemaIDCPtr' (aka 'struct _xmlSchemaIDC *') increases required alignment from 4 to 8 [-Wcast-align]
                if ((xmlSchemaIDCPtr) matcher->aidc->def->ref->item ==
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24554:4: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        (xmlSchemaValidCtxtPtr) actxt,
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24555:5: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        ((xmlSchemaValidCtxtPtr) actxt)->schema,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24559:36: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaValidCtxtPtr' (aka 'struct _xmlSchemaValidCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                    ret = xmlSchemaValidateQName((xmlSchemaValidCtxtPtr) actxt,
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:24576:5: warning: cast from 'xmlSchemaAbstractCtxtPtr' (aka 'struct _xmlSchemaAbstractCtxt *') to 'xmlSchemaParserCtxtPtr' (aka 'struct _xmlSchemaParserCtxt *') increases required alignment from 4 to 8 [-Wcast-align]
                        ((xmlSchemaParserCtxtPtr) actxt)->schema, node,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99 warnings generated.
xmlschemas.c:7469:7: warning: cast from 'const xmlChar *' (aka 'const unsigned char *') to 'xmlSchemaAttributePtr' (aka 'struct _xmlSchemaAttribute *') increases required alignment from 1 to 4 [-Wcast-align]
                if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmlschemas.c:169:30: note: expanded from macro 'WXS_ATTRUSE_DECL'
#define WXS_ATTRUSE_DECL(au) WXS_ATTR_CAST (WXS_ATTR_USE_CAST (au))->attrDecl
                             ^
xmlschemas.c:141:23: note: expanded from macro 'WXS_ATTR_CAST'
#define WXS_ATTR_CAST (xmlSchemaAttributePtr)
                      ^
1 warning generated.
  CC       xmlschemastypes.lo
  CC       xmlunicode.lo
  CC       xmlreader.lo
  CC       relaxng.lo
  CC       dict.lo
dict.c:252:29: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
        if (pool->end - pool->free > namelen)
            ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~
dict.c:320:29: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
        if (pool->end - pool->free > namelen + plen + 1)
            ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
2 warnings generated.
  CC       SAX2.lo
  CC       xmlwriter.lo
  CC       legacy.lo
  CC       chvalid.lo
  CC       pattern.lo
  CC       xmlsave.lo
  CC       xmlmodule.lo
  CC       schematron.lo
  CC       xzlib.lo
  CCLD     libxml2.la
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: x86_64 file: .libs/libxml2.a(xzlib.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: .libs/libxml2.a(xzlib.o) has no symbols
  CC       testdso.lo
  CCLD     testdso.la
  CC       xmllint.o
  CCLD     xmllint
ld: warning: ignoring file /opt/local/lib/libz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libz.dylib
ld: warning: ignoring file /opt/local/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/liblzma.dylib
ld: warning: ignoring file /opt/local/lib/libiconv.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libiconv.dylib
Undefined symbols for architecture i386:
  "_crc32", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflate", referenced from:
      _xmlZMemBuffGetContent in libxml2.a(xmlIO.o)
      _xmlZMemBuffAppend in libxml2.a(xmlIO.o)
  "_deflateEnd", referenced from:
      _xmlFreeZMemBuff in libxml2.a(xmlIO.o)
  "_deflateInit2_", referenced from:
      _xmlCreateZMemBuff in libxml2.a(xmlIO.o)
  "_gzclose", referenced from:
      _xmlGzfileClose in libxml2.a(xmlIO.o)
  "_gzdirect", referenced from:
      ___xmlParserInputBufferCreateFilename in libxml2.a(xmlIO.o)
  "_gzdopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
      _xmlGzfileOpen_real in libxml2.a(xmlIO.o)
  "_gzopen", referenced from:
      _xmlGzfileOpenW in libxml2.a(xmlIO.o)
      _xmlGzfileOpen_real in libxml2.a(xmlIO.o)
  "_gzread", referenced from:
      _xmlGzfileRead in libxml2.a(xmlIO.o)
  "_gzwrite", referenced from:
      _xmlGzfileWrite in libxml2.a(xmlIO.o)
  "_inflate", referenced from:
      _xmlNanoHTTPRead in libxml2.a(nanohttp.o)
  "_inflateEnd", referenced from:
      _xmlNanoHTTPFreeCtxt in libxml2.a(nanohttp.o)
  "_inflateInit2_", referenced from:
      _xmlNanoHTTPScanAnswer in libxml2.a(nanohttp.o)
  "_libiconv", referenced from:
      _xmlIconvWrapper in libxml2.a(encoding.o)
  "_libiconv_close", referenced from:
      _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
      _xmlCharEncCloseFunc in libxml2.a(encoding.o)
  "_libiconv_open", referenced from:
      _xmlFindCharEncodingHandler in libxml2.a(encoding.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
thiagomarzagao commented 9 years ago

gem_make.out

Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150127-47689-jwdy5w.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.2
with the following patches applied:
    - 0001-Revert-Missing-initialization-for-the-catalog-module.patch
    - 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2... OK
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...
Running 'patch' for libxml2 2.9.2... OK
Running patch with /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...
Running 'patch' for libxml2 2.9.2... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... ERROR, review '/Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-apple-darwin14/ports/libxml2/2.9.2/compile.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build
/Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:279:in `block in execute': Failed to complete compile task (RuntimeError)
    from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:271:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:70:in `compile'
    from /Library/Ruby/Gems/2.0.0/gems/mini_portile-0.6.2/lib/mini_portile.rb:110:in `cook'
    from extconf.rb:278:in `block in process_recipe'
    from extconf.rb:177:in `tap'
    from extconf.rb:177:in `process_recipe'
    from extconf.rb:475:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/nokogiri-1.6.6.2/gem_make.out
thiagomarzagao commented 9 years ago

Well, I gave up on trying to install the vendored xml2 and decided to use the system version instead. $ sudo gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib worked.

ghost commented 9 years ago

^^^^this

Works perfectly for me too. Thanks @thiagomarzagao

flavorjones commented 9 years ago

Looks like 10.10.2 dropped today. @zenspider is going to try to reproduce with the final (the above was with the beta).

zenspider commented 9 years ago

I just confirmed that nokogiri installed fine with stock ruby on 10.10.2 (final) for me.

If there are still problems for you, we need to compare notes and see what variables are different.

thiagomarzagao commented 9 years ago

I must have messed up something on my environment then (though I followed all the steps). Sorry about that. The system xml2 worked for me.

flavorjones commented 9 years ago

Great, thanks for letting us know! Closing.

rsanchezsaez commented 9 years ago

I'm experiencing the exact same problem on OS X 10.10.5 (14F27). By looking at the paths on the logs, this seem to affect users that have the libz.dylib, liblzma.dylib, lliblzma.dylib and libiconv.dylib libraries installed through Macports (they're in /opt/local/lib/).

Using the system libraries also fixed it for me, but I'm reporting the Macports bit in case it allows you to fix the root cause of the problem.

72apps commented 9 years ago

Thanks @rsanchezsaez. I'm using Macports and your analysis fixed the issue for me. I simply renamed /opt/local, installed the gem, then move /opt/local back.

equivalent commented 9 years ago

I know this is OSX question but I actually googled it when searching for Ubuntu solution

...so:

after upgrading to Rails 4.2.4 (which includes Nokogiri 1.6.6.2) on Ubuntu 14.04 (I'm using RVM) I needed to do this:

sudo apt-get install libgmp-dev

or

sudo apt-get install libgmp3-dev
mwlang commented 7 years ago

For others coming into this...I encountered the same on OSX Sierra and Ruby 2.4.0.

I don't know where the libxml2 I already had installed came from, but brew warned me another version was already linked to opt. I choose to force homebrew's version and nokogiri installed thereafter as follows...

>> brew install libxml2
Warning: libxml2 is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version

>> brew install --force libxml2
Warning: libxml2-2.9.4_2 already installed, it's just not linked.

>> brew link --force libxml2
Linking /usr/local/Cellar/libxml2/2.9.4_2... 17 symlinks created

>> gem install nokogiri -v '1.7.0.1'  -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib
Building native extensions with: '--use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib'
This could take a while...
Successfully installed nokogiri-1.7.0.1
1 gem installed