#447 expat build fails on linux-amd64 with gcc version>=4.1 -O3

Platform Specific
closed-fixed
None
5
2012-03-03
2007-08-31
Anonymous
No

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

Discussion

  • Karl Waclawek

    Karl Waclawek - 2007-09-03
    • assigned_to: nobody --> kwaclaw
    • status: open --> open-fixed
     
  • Karl Waclawek

    Karl Waclawek - 2007-09-03

    Logged In: YES
    user_id=290026
    Originator: NO

    Fixed in xmlparse.c 1.1.62. Please check out from CVS and test!

     
  • Karl Waclawek

    Karl Waclawek - 2009-01-17

    Is anyone testing this? I'd like to close this issue.

     
  • Karl Waclawek

    Karl Waclawek - 2012-03-03
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks