Closed
Bug 421738
Opened 17 years ago
Closed 17 years ago
Spidermonkey fails to build with GCC 4.2 (jslock.cpp uses memset() without including string.h)
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta5
People
(Reporter: wasti.redl, Assigned: brendan)
Details
Attachments
(1 file, 1 obsolete file)
|
655 bytes,
patch
|
brendan
:
review+
shaver
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b4pre) Gecko/2008022119 Firefox/3.0b4pre
Build Identifier:
In the mozilla-central hg branch, the Spidermonkey sources have been changed to C++ from C. The new jslock.cpp file uses the memset() function, but fails to include the required <string.h> header; nor does it include it indirectly. Thus, compilation fails under GCC 4.2.
Reproducible: Always
Steps to Reproduce:
1. Check out latest hg mozilla-central.
2. Run python client.py checkout
3. Build
Actual Results:
Fails with error message: "memset not declared".
Expected Results:
Should compile.
| Reporter | ||
Comment 1•17 years ago
|
||
This patch adds the missing include to jslock.cpp.
| Assignee | ||
Comment 2•17 years ago
|
||
Comment on attachment 308221 [details] [diff] [review]
Trivial patch
Thanks, attaching cvs diff output readable by patch(1) (this is essential) using -pu8 options (this is preferred, FYI). Will r+ that and ask for approval.
/be
| Assignee | ||
Comment 3•17 years ago
|
||
Trivial porting patch, need rubber-stamp a+.
/be
Assignee: general → brendan
Attachment #308221 -
Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #308222 -
Flags: review+
Attachment #308222 -
Flags: approval1.9?
| Reporter | ||
Comment 4•17 years ago
|
||
Sorry, that's what hg generates. Will use straight diff in the future.
Comment 5•17 years ago
|
||
Comment on attachment 308222 [details] [diff] [review]
patch-ready version
a=shaver
Attachment #308222 -
Flags: approval1.9? → approval1.9+
Comment 6•17 years ago
|
||
hg extdiff is a bit better, but yeah, we fight hg too.
| Assignee | ||
Comment 7•17 years ago
|
||
Fixed:
js/src/jslock.c 3.83
/be
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Priority: -- → P3
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta5
Updated•17 years ago
|
Flags: in-testsuite-
Flags: in-litmus-
You need to log in
before you can comment on or make changes to this bug.
Description
•