Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

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

Platform Specific
closed-fixed
Karl Waclawek
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