Last Comment Bug 665402 - Dehydra fails to build with gcc 4.6
: Dehydra fails to build with gcc 4.6
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Rewriting and Analysis (show other bugs)
: Trunk
: All Linux
: -- normal (vote)
: ---
Assigned To: Mike Hommey [:glandium]
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-19 18:52 PDT by Mike Hommey [:glandium]
Modified: 2011-06-20 18:26 PDT (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Patch (1.24 KB, patch)
2011-06-19 18:53 PDT, Mike Hommey [:glandium]
taras.mozilla: review+
Details | Diff | Splinter Review

Description Mike Hommey [:glandium] 2011-06-19 18:52:40 PDT
The error messages are:
dehydra_builtins.c: In function 'ReadFile':
dehydra_builtins.c:351:30: error: attempt to use poisoned "strerror"
dehydra_builtins.c: In function 'WriteFile':
dehydra_builtins.c:376:30: error: attempt to use poisoned "strerror"
dehydra_builtins.c: In function 'dehydra_loadScript':
dehydra_builtins.c: In function 'ResolvePath':
dehydra_builtins.c:571:26: error: attempt to use poisoned "strerror"

This comes from http://gcc.gnu.org/ml/gcc-patches/2010-05/msg02226.html and http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02184.html.

Replacing with xstrerror solves the problem.
Comment 1 Mike Hommey [:glandium] 2011-06-19 18:53:33 PDT
Created attachment 540374 [details] [diff] [review]
Patch

Note You need to log in before you can comment on or make changes to this bug.