[Expat-bugs] [ expat-Bugs-1785430 ] expat build fails on linux-amd64 with gcc version>=4.1 -O3

SourceForge.net noreply at sourceforge.net
Fri Aug 31 10:50:06 CEST 2007


Bugs item #1785430, was opened at 2007-08-31 01:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1785430&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Platform Specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: expat build fails on linux-amd64 with gcc version>=4.1 -O3

Initial Comment:
Hi,

xmlparse.c contains a cast from const XML_Char* to XML_Char* which newer versions of gcc don't like at all.

cc1: warnings being treated as errors                                                           
src/external/expat-2.0.0/lib/xmlparse.c: In function 'doProlog':                                
src/external/expat-2.0.0/lib/xmlparse.c:3771: warning: passing                                  
argument 1 of 'normalizePublicId' discards qualifiers from pointer target type                  
make: *** [obj/src/external/expat-2.0.0/lib/xmlparse.o] Error 1                                 
 
Thus I devised the attached work-around.

Regards, Thomas Jahns

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1785430&group_id=10127


More information about the Expat-bugs mailing list