After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590302 - exports don't work with mingw gcc 4.4.0
exports don't work with mingw gcc 4.4.0
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-30 19:05 UTC by Sam Thursfield
Modified: 2009-08-10 08:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for gcc 4.4.0 exports problem (999 bytes, patch)
2009-07-30 19:07 UTC, Sam Thursfield
none Details | Review

Description Sam Thursfield 2009-07-30 19:05:45 UTC
Hello!
libxml2 builds fine for me on mingw/MSYS with gcc 3.4.5, but with gcc 4.4.0 I get the following:

libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/xmllint.exe xmllint.o -Lc:/build/lib ./.libs/libxml2.a -lz -liconv -lws2_32
xmllint.o: In function 'processNode':
c:\build\src\libxml2/xmllint.c:1800: undefined reference to '__imp__xmlFree'
xmllint.o: In function 'streamFile':
c:\build\src\libxml2/xmllint.c:1832: undefined reference to '__imp__xmlGenericErrorContext'
c:\build\src\libxml2/xmllint.c:1832: undefined reference to '__imp__xmlGenericError'
...

and you get the picture.

I found a discussion here:
http://mail.gnome.org/archives/xml/2004-February/msg00004.html

Both suggestions fix the error. I made a patch for the second one.
Comment 1 Sam Thursfield 2009-07-30 19:07:07 UTC
Created attachment 139583 [details] [review]
patch for gcc 4.4.0 exports problem
Comment 2 Daniel Veillard 2009-08-03 13:57:44 UTC
This patch definitely need to be sent to the list for review as
I'm unable to assert its value, I don't have any Windows licence.
http://mail.gnome.org/mailman/listinfo/xml

Daniel
Comment 3 Daniel Veillard 2009-08-10 08:12:38 UTC
Okay rereading various threads about this on the list and on the net,
I'm tempted to actually apply only the minimalist change where
if defined(IN_LIBXML) is removed from the test. Based on your comment
and Igor's one this sounds like a working solution. I commited this
instead.

  thanks !

Daniel