BTW, this is probably an old version of libxml (2.4.14). A newer version is available from http://www.zlatkovic.com/libxml.en.html. With Mingw-GCC one can link directly to the dll. Alternatively, you can create an import library with pexports, which is part of the Mingw Utilities (http://sourceforge.net/project/shownotes.php?release_id=158860).
Kees Zeelenberg
----- Original Message ----- From: "Jason Clouse" <[EMAIL PROTECTED]>
To: <gnuwin32-users@lists.sourceforge.net>
Sent: Saturday, February 12, 2005 6:13 PM
Subject: [GnuWin32-Users] Trouble linking with libxml
I'm trying to build the GNUstep -base library in Msys and am using several packages from gnuwin32 including libxml. The compilation finishes but the linker complains about not being able to auto-import these symbols. I'm not terribly familiar with what's going on under the hood but the description in the ld manpage makes it sound like there's a limitation on the win32 binary format that prevents more than one memory offset being combined to reference a variable (which seems odd to me).
I think this was working just fine a few months ago.
cat ./Additions/subproject.def libgnustep-base.def >
derived_src/libgnustep-base.inp
Linking library libgnustep-base ...
Info: resolving _htmlDefaultSAXHandler by linking to __imp__htmlDefaultSAXHandler (auto-import)
Info: resolving _xmlFree by linking to __imp__xmlFree (auto-import)
Info: resolving _xmlDefaultSAXHandler by linking to __imp__xmlDefaultSAXHandler (auto-import)
Info: resolving _xmlGetWarningsDefaultValue by linking to __imp__xmlGetWarningsDefaultValue (auto-import)
../Additions/shared_obj/subproject.o(.text+0x1d731):GSXML.m: variable 'htmlDefaultSAXHandler' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
../Additions/shared_obj/subproject.o(.text+0x1d871):GSXML.m: variable 'htmlDefaultSAXHandler' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
../Additions/shared_obj/subproject.o(.text+0x1d722):GSXML.m: variable 'xmlDefaultSAXHandler' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
../Additions/shared_obj/subproject.o(.text+0x1d862):GSXML.m: variable 'xmlDefaultSAXHandler' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
fu000001.o(.idata$3+0xc): undefined reference to `libxml2_dll_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libxml2_dll_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libxml2_dll_a_iname'
fu000006.o(.idata$3+0xc): undefined reference to `libxml2_dll_a_iname'
fu000008.o(.idata$3+0xc): undefined reference to `libxml2_dll_a_iname'
fu000009.o(.idata$3+0xc): more undefined references to `libxml2_dll_a_iname' follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__htmlDefaultSAXHandler'
nmth000002.o(.idata$4+0x0): undefined reference to `_nm__xmlFree'
nmth000004.o(.idata$4+0x0): undefined reference to `_nm__xmlDefaultSAXHandler'
nmth000007.o(.idata$4+0x0): undefined reference to `_nm__xmlGetWarningsDefaultValue'
c:\GNUstep\Development\msys\1.0\mingw\bin\dllwrap.exe: gcc exited with status 1
make[2]: *** [shared_obj/gnustep-base.dll] Error 1
make[1]: *** [libgnustep-base.all.library.variables] Error 2
make[1]: Leaving directory `/home/clouseja/core/base/Source'
make: *** [internal-all] Error 2
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users