Re: [xml] Issue building libxml2 with mingw 64bit gcc
When attempting to build the 64 bit I get reference errors as such int.mingw/c14n.o:c14n.c:(.text+0xb69): undefined reference to `xmlStrcmp' int.mingw/c14n.o:c14n.c:(.text+0xbd9): undefined reference to `xmlStrEqual' int.mingw/c14n.o:c14n.c:(.text+0xbfc): undefined reference to `xmlStrEqual' int.mingw/c14n.o:c14n.c:(.text+0xc4d): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1069): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x108a): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x109e): undefined reference to `xmlStrcasecmp' int.mingw/c14n.o:c14n.c:(.text+0x10b2): undefined reference to `xmlStrcasecmp' int.mingw/c14n.o:c14n.c:(.text+0x10c0): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1335): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1364): undefined reference to `xmlStrEqual' int.mingw/c14n.o:c14n.c:(.text+0x137b): undefined reference to `xmlStrEqual' int.mingw/c14n.o:c14n.c:(.text+0x13d0): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x15f2): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x16a9): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x16e5): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x16f6): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1824): undefined reference to `xmlStrEqual' int.mingw/c14n.o:c14n.c:(.text+0x189e): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1922): undefined reference to `xmlStrlen' int.mingw/c14n.o:c14n.c:(.text+0x1fa6): undefined reference to `xmlStrndup' int.mingw/c14n.o:c14n.c:(.text+0xaf8): undefined reference to `xmlStrcmp' int.mingw/c14n.o:c14n.c:(.text+0xb9f): undefined reference to `xmlStrcmp' c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: int.mingw/c14n.o: bad reloc address 0x0 in section `.pda ta' collect2.exe: error: ld returned 1 exit status Makefile:313: recipe for target 'bin.mingw/libxml2.dll' failed make: *** [bin.mingw/libxml2.dll] Error 1 On Mon, Mar 2, 2015 at 12:20 PM, James Franco mjfranc...@gmail.com wrote: I tried doing that as a result when attempting to use the library in my 64 bit project ... 1_57 -lboost_thread-mgw48-mt-d-1_57 -lboost_filesystem-mgw48-mt-d-1_57 -lboost_date_time-mgw48-mt-d-1_57 -lboost_serialization-mgw48-mt-d-1_57 -lwinmm -lws2_32 -liconv -lace -lz -lxml -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\libxml\win32\Lib\/libxml2.a when searching for -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\libxml\win32\Lib\/libxml2.dll when searching for -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\libxml\win32\Lib\\libxml2.a when searching for -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\libxml\win32\Lib\/libxml2.a when searching for -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\libxml\win32\Lib\/libxml2.dll when searching for -lxml2 C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lxml2 This pretty much means its looking for a 64 bit version of libxml2 but finds the 32 bit and ignores it. On Mon, Mar 2, 2015 at 11:22 AM, Eric S. Eberhard e...@vicsmba.com wrote: Actually that was a bit convoluted -- I meant use the 64 bit program linked with 32 bit libxml2.a -- it really should be fine. Eric I'll make a silly suggestion -- why not just use the 64 bit? I link 32 bit with 64 bit programs and it always seems to work fine. You will never need the addressing of 64 bit for an XML file! I would give that a try and if it works, call it done. Eric On 3/2/2015 10:51 AM, James Franco wrote: so after further exploring I managed to build libxml on my 32 version of Mingw compiler. However when I attempt to build it on the 64 bit compiler I am still not having any success. Here is what I am doing. The two commands that I am using are as follows. The outputs of these commands are given below. 1) cscript configure.js threads:no static:yes compiler:mingw iconv:no prefix=c:\\tester include=c:\\tester\\mingw64\ lib=c:\\tester\\mingw64\ debug=yes 2) make64 MAKE=make64 -f Makefile.mingw Here is the output from these commands 1st Step : admin@US01W3044 /c/libxml2-2.6.30/win32 $* cscript configure.js threads:no static:yes compiler:mingw iconv:no prefix=c:\\tester include=c:\\tester\\mingw64\ lib=c:\\tester\\mingw64\ debug=y* *es* Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. libxml2 version:
Re: [xml] Issue building libxml2 with mingw 64bit gcc
so after further exploring I managed to build libxml on my 32 version of Mingw compiler. However when I attempt to build it on the 64 bit compiler I am still not having any success. Here is what I am doing. The two commands that I am using are as follows. The outputs of these commands are given below. 1) cscript configure.js threads:no static:yes compiler:mingw iconv:no prefix=c:\\tester include=c:\\tester\\mingw64\ lib=c:\\tester\\mingw64\ debug=yes 2) make64 MAKE=make64 -f Makefile.mingw Here is the output from these commands 1st Step : admin@US01W3044 /c/libxml2-2.6.30/win32 $* cscript configure.js threads:no static:yes compiler:mingw iconv:no prefix=c:\\tester include=c:\\tester\\mingw64\ lib=c:\\tester\\mingw64\ debug=y* *es* Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. libxml2 version: 2.6.30 Created Makefile. Created config.h. XML processor configuration --- Trio: no Thread safety: no FTP client: yes HTTP client: yes HTML processor: yes C14N support: yes Catalog support: yes DocBook support: yes XPath support: yes XPointer support: yes XInclude support: yes iconv support: no iso8859x support: no zlib support: no Debugging module: yes Memory debugging: no Runtime debugging: no Regexp support: yes Module support: yes Tree support: yes Reader support: yes Writer support: yes Walker support: yes Pattern support: yes Push support: yes Validation support: yes SAX1 support: yes Legacy support: yes Output support: yes XML Schema support: yes Schematron support: yes Python bindings: no Win32 build configuration - Compiler: mingw Debug symbols: no Static xmllint: yes Install prefix: c:\tester Put tools in: $(PREFIX)\bin Put headers in: $(PREFIX)\include Put static libs in: $(PREFIX)\lib Put shared libs in: $(PREFIX)\lib Include path: c:\tester\mingw64 lib=c:\tester\mingw64 debug=yes Lib path: . 2nd Step: * make64 MAKE=make64 -f Makefile.mingw* ... ... In file included from ../xmlschemas.c:55:0: ../include/libxml/parserInternals.h:270:25: warning: array 'xmlStringText' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringText[]; ^ ../include/libxml/parserInternals.h:271:25: warning: array 'xmlStringTextNoenc' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringTextNoenc[]; ^ ../include/libxml/parserInternals.h:272:25: warning: array 'xmlStringComment' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringComment[]; ^ gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -Ic:\tester\include -D_WINSOCKAPI_ -D_WINSOCKAPI_ -DNDEBUG -O2 -o int.mingw/xmlschemastypes.o -c ../xmlschemastypes.c In file included from ../xmlschemastypes.c:18:0: ../include/libxml/parserInternals.h:270:25: warning: array 'xmlStringText' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringText[]; ^ ../include/libxml/parserInternals.h:271:25: warning: array 'xmlStringTextNoenc' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringTextNoenc[]; ^ ../include/libxml/parserInternals.h:272:25: warning: array 'xmlStringComment' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringComment[]; ^ gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -Ic:\tester\include -D_WINSOCKAPI_ -D_WINSOCKAPI_ -DNDEBUG -O2 -o int.mingw/xmlunicode.o -c ../x mlunicode.c gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -Ic:\tester\include -D_WINSOCKAPI_ -D_WINSOCKAPI_ -DNDEBUG -O2 -o int.mingw/xmlwriter.o -c ../xm lwriter.c gcc.exe -DWIN32 -D_WINDOWS -D_MBCS -I.. -I../include -Ic:\tester\include -D_WINSOCKAPI_ -D_WINSOCKAPI_ -DNDEBUG -O2 -o int.mingw/xpointer.o -c ../xpo inter.c In file included from ../xpointer.c:31:0: ../include/libxml/parserInternals.h:270:25: warning: array 'xmlStringText' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringText[]; ^ ../include/libxml/parserInternals.h:271:25: warning: array 'xmlStringTextNoenc' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringTextNoenc[]; ^ ../include/libxml/parserInternals.h:272:25: warning: array 'xmlStringComment' assumed to have one element [enabled by default] XMLPUBVAR const xmlChar xmlStringComment[]; ' gcc.exe -Wl,--major-image-version,2 -Wl,--minor-image-version,6 -Wl,-L,bin.mingw -Wl,-L,c:\tester\lib -shared -Wl,--dll -Wl,--out-implib,bin.mingw/li bxml2.lib -o bin.mingw/libxml2.dll int.mingw/c14n.o int.mingw/catalog.o int.mingw/chvalid.o
Re: [xml] Issue building libxml2 with mingw 64bit gcc
James Franco wrote: I am attempting to build libxml using the following way on windows 7 with Mingw GCC 64 bit ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local This is what I get after executing that command. It says the system cannot find the specified file. $ ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 may be build or host is not expected [SNIP] checking whether make sets $(MAKE)... no Why ? Broken make? checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes Fine but is not clear target : 32 or 64 bit [SNIP] $ make64 make all-recursive process_begin: CreateProcess(NULL, make all-recursive, ...) failed. make (e=2): The system cannot find the file specified. Makefile:560: recipe for target 'all' failed make64: *** [all] Error 2 Try following command: make64 MAKE=make64 Regards, Roumen Petrov ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] Issue building libxml2 with mingw 64bit gcc
So Now I am going across this thread http://stackoverflow.com/questions/3429101/building-the-latest-iconv-and-libxml2-binaries-in-win32 and this is what I do: It looks like i am getting socket based issues and that it should be using -lws2_32 however its not. Any suggestions on how I can fix this would be appreciated. c:\libxml2-2.6.30\win32cscript.exe configure.js compiler=mingw prefix=c:/tester debug=yes static=yes Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. libxml2 version: 2.6.30 Created Makefile. Created config.h. XML processor configuration --- Trio: no Thread safety: native FTP client: yes HTTP client: yes HTML processor: yes C14N support: yes Catalog support: yes DocBook support: yes XPath support: yes XPointer support: yes XInclude support: yes iconv support: yes iso8859x support: no zlib support: no Debugging module: yes Memory debugging: no Runtime debugging: no Regexp support: yes Module support: yes Tree support: yes Reader support: yes Writer support: yes Walker support: yes Pattern support: yes Push support: yes Validation support: yes SAX1 support: yes Legacy support: yes Output support: yes XML Schema support: yes Schematron support: yes Python bindings: no Win32 build configuration - Compiler: mingw Debug symbols: yes Static xmllint: yes Install prefix: c:/tester Put tools in: $(PREFIX)\bin Put headers in: $(PREFIX)\include Put static libs in: $(PREFIX)\lib Put shared libs in: $(PREFIX)\lib Include path: . Lib path: . c:\libxml2-2.6.30\win32make64 ... ... gcc.exe -Wl,--major-image-version,2 -Wl,--minor-image-version,6 -Wl,-L,bin.mingw -Wl,-L,c:/tester\lib -shared -Wl,--dll -Wl,--out-implib,bin.mingw/li bxml2.lib -o bin.mingw/libxml2.dll int.mingw/c14n.o int.mingw/catalog.o int.mingw/chvalid.o int.mingw/debugXML.o int.mingw/dict.o int.mingw/DOCBparser .o int.mingw/encoding.o int.mingw/entities.o int.mingw/error.o int.mingw/globals.o int.mingw/hash.o int.mingw/HTMLparser.o int.mingw/HTMLtree.o int.mi ngw/legacy.o int.mingw/list.o int.mingw/nanoftp.o int.mingw/nanohttp.o int.mingw/parser.o int.mingw/parserInternals.o int.mingw/pattern.o int.mingw/re laxng.o int.mingw/SAX.o int.mingw/SAX2.o int.mingw/schematron.o int.mingw/threads.o int.mingw/tree.o int.mingw/uri.o int.mingw/valid.o int.mingw/xincl ude.o int.mingw/xlink.o int.mingw/xmlIO.o int.mingw/xmlmemory.o int.mingw/xmlreader.o int.mingw/xmlregexp.o int.mingw/xmlmodule.o int.mingw/xmlsave.o int.mingw/xmlschemas.o int.mingw/xmlschemastypes.o int.mingw/xmlunicode.o int.mingw/xmlwriter.o int.mingw/xpath.o int.mingw/xpointer.o int.mingw/xmlst ring.o -lwsock32 -lwsock32 -liconv -lkernel32 int.mingw/nanohttp.o: In function `xmlNanoHTTPConnectHost': c:\libxml2-2.6.30\win32/../nanohttp.c:1003: undefined reference to `__imp_getaddrinfo' c:\libxml2-2.6.30\win32/../nanohttp.c:1013: undefined reference to `__imp_freeaddrinfo' c:\libxml2-2.6.30\win32/../nanohttp.c:1035: undefined reference to `__imp_freeaddrinfo' c:\libxml2-2.6.30\win32/../nanohttp.c:1041: undefined reference to `__imp_freeaddrinfo' collect2.exe: error: ld returned 1 exit status Makefile:313: recipe for target 'bin.mingw/libxml2.dll' failed make64: *** [bin.mingw/libxml2.dll] Error 1 How can I fix this error. ? On Thu, Feb 26, 2015 at 4:49 PM, Bjoern Hoehrmann derhoe...@gmx.net wrote: * James Franco wrote: admin@US01WKS03044 /c/libxml2-2.6.30 $ make64 make all-recursive process_begin: CreateProcess(NULL, make all-recursive, ...) failed. make (e=2): The system cannot find the file specified. Makefile:560: recipe for target 'all' failed make64: *** [all] Error 2 any suggestions on how I could resolve this issue ? You should probably find out which file it is trying to find. It might be `make`. What happens if you just run `make`? Tools like Process Monitor (available on the Microsoft Technet site) help in that regard. -- Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de Available for hire in Berlin (early 2015) · http://www.websitedev.de/ ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] Issue building libxml2 with mingw 64bit gcc
Sorry the first command used was cscript.exe configure.js compiler=mingw prefix=c:/tester debug=yes static=yes On Thu, Feb 26, 2015 at 3:50 PM, James Franco mjfranc...@gmail.com wrote: I am attempting to build libxml using the following way on windows 7 with Mingw GCC 64 bit ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local This is what I get after executing that command. It says the system cannot find the specified file. $ ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... no checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... none checking dependency style of gcc... none checking for a BSD-compatible install... /bin/install -c checking how to run the C preprocessor... gcc -E checking for rm... /bin/rm checking for mv... /bin/mv checking for tar... /bin/tar checking for perl... /bin/perl checking for wget... /usr/bin/wget checking for xmllint... /usr/bin/xmllint checking for xsltproc... /usr/bin/xsltproc checking for function prototypes... yes Enabled Schemas/Relax-NG support configure: creating ./config.status config.status: creating libxml2.spec config.status: creating Makefile config.status: creating include/Makefile config.status: creating include/libxml/Makefile config.status: creating doc/Makefile config.status: creating doc/examples/Makefile config.status: creating doc/devhelp/Makefile config.status: creating example/Makefile config.status: creating python/Makefile config.status: creating python/tests/Makefile config.status: creating xstc/Makefile config.status: creating include/libxml/xmlversion.h config.status: creating xml2-config config.status: creating libxml-2.0.pc config.status: creating libxml-2.0-uninstalled.pc config.status: creating python/setup.py config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands Done configuring admin@US01WKS03044 /c/libxml2-2.6.30 $ make64 make all-recursive process_begin: CreateProcess(NULL, make all-recursive, ...) failed. make (e=2): The system cannot find the file specified. Makefile:560: recipe for target 'all' failed make64: *** [all] Error 2 any suggestions on how I could resolve this issue ? ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] Issue building libxml2 with mingw 64bit gcc
* James Franco wrote: admin@US01WKS03044 /c/libxml2-2.6.30 $ make64 make all-recursive process_begin: CreateProcess(NULL, make all-recursive, ...) failed. make (e=2): The system cannot find the file specified. Makefile:560: recipe for target 'all' failed make64: *** [all] Error 2 any suggestions on how I could resolve this issue ? You should probably find out which file it is trying to find. It might be `make`. What happens if you just run `make`? Tools like Process Monitor (available on the Microsoft Technet site) help in that regard. -- Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de Available for hire in Berlin (early 2015) · http://www.websitedev.de/ ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
[xml] Issue building libxml2 with mingw 64bit gcc
I am attempting to build libxml using the following way on windows 7 with Mingw GCC 64 bit ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local This is what I get after executing that command. It says the system cannot find the specified file. $ ./configure --without-python --with-zlib=/usr/local --with-lzma=/usr/local checking build system type... i686-pc-mingw32 checking host system type... i686-pc-mingw32 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... no checking for gcc... gcc checking for C compiler default output file name... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... .exe checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... none checking dependency style of gcc... none checking for a BSD-compatible install... /bin/install -c checking how to run the C preprocessor... gcc -E checking for rm... /bin/rm checking for mv... /bin/mv checking for tar... /bin/tar checking for perl... /bin/perl checking for wget... /usr/bin/wget checking for xmllint... /usr/bin/xmllint checking for xsltproc... /usr/bin/xsltproc checking for function prototypes... yes Enabled Schemas/Relax-NG support configure: creating ./config.status config.status: creating libxml2.spec config.status: creating Makefile config.status: creating include/Makefile config.status: creating include/libxml/Makefile config.status: creating doc/Makefile config.status: creating doc/examples/Makefile config.status: creating doc/devhelp/Makefile config.status: creating example/Makefile config.status: creating python/Makefile config.status: creating python/tests/Makefile config.status: creating xstc/Makefile config.status: creating include/libxml/xmlversion.h config.status: creating xml2-config config.status: creating libxml-2.0.pc config.status: creating libxml-2.0-uninstalled.pc config.status: creating python/setup.py config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands Done configuring admin@US01WKS03044 /c/libxml2-2.6.30 $ make64 make all-recursive process_begin: CreateProcess(NULL, make all-recursive, ...) failed. make (e=2): The system cannot find the file specified. Makefile:560: recipe for target 'all' failed make64: *** [all] Error 2 any suggestions on how I could resolve this issue ? ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml