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)

All
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta5

People

(Reporter: wasti.redl, Assigned: brendan)

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch Trivial patch (obsolete) — Splinter Review
This patch adds the missing include to jslock.cpp.
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
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?
Sorry, that's what hg generates. Will use straight diff in the future.
Comment on attachment 308222 [details] [diff] [review] patch-ready version a=shaver
Attachment #308222 - Flags: approval1.9? → approval1.9+
hg extdiff is a bit better, but yeah, we fight hg too.
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
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: