Closed Bug 328479 Opened 18 years ago Closed 18 years ago

Building the jsshell on VC++ 6 fails because jsautokw.h is missing

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: someone, Assigned: timeless)

References

Details

Attachments

(1 file, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

I'm trying to build the jsshell with VC++ 6, but it fails because the file jsautokw.h is missing.

Reproducible: Always

Steps to Reproduce:
1. Checking out the sources with WinCVS 2.0.2.4, using the cvsroot ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot" and the module name "mozilla/js/src".
2. running "nmake /f js.mak CFG="jsshell - Win32 Release" clean all" in the src folder.

Actual Results:  
The build fails because it cannot find the jsautokw.h file:

jsscan.c
jsscan.c(114) : fatal error C1083: Cannot open include file: 'jsautokw.h': No su
ch file or directory
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio\VC98\bin\NMAKE
.EXE"' : return code '0x2'
Stop.

Expected Results:  
It should have build jsshell.exe and js32.dll.
Smell like you're not using the right way to build firefox.

Nmake is no more used since year 2000 or so.

So, read this http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites and this http://developer.mozilla.org/en/docs/Build_Documentation

And you will build it without problem.

-> INVALID ?
(In reply to comment #1)
> Smell like you're not using the right way to build firefox.
> 
> Nmake is no more used since year 2000 or so.
> 
> So, read this http://developer.mozilla.org/en/docs/Windows_Build_Prerequisites
> and this http://developer.mozilla.org/en/docs/Build_Documentation
> 
> And you will build it without problem.

I'm not trying to build firefox, Im trying to build the standalone jsshell, especially the js32.dll. And according to the included readme it should even work with MSVC5.

This is a collection of VC6 project files that correctly build the SpiderMonkey engine
(In reply to comment #3)
> Created an attachment (id=213094) [edit]
> A ZIP file with VC6 Project files that builds the SpiderMonkey engine
> 
> This is a collection of VC6 project files that correctly build the SpiderMonkey
> engine

The included readme is empty, but after figuring out where to place the project files it did build. But it does not work right! While linking I'm getting the following message:

   Creating library .\lib\js32.lib and object .\lib\js32.exp
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library

And the application that's using the JS engine crashes upon trying to load and intialize it.

This is an update to my previous post. The linker was reporting a warning when building the non-threading versions of the shared libraries.
Attachment #213094 - Attachment is obsolete: true
working on it this weekend.
Blocks: js1.6rc1
Status: UNCONFIRMED → NEW
Ever confirmed: true
I have added the linker option /OPT:NOICF as highlighted in a recent post to the news group.
Attachment #213118 - Attachment is obsolete: true
Attached patch working patch (obsolete) — Splinter Review
Assignee: general → timeless
Status: NEW → ASSIGNED
Comment on attachment 217140 [details] [diff] [review]
working patch

mozilla/js/src/js.mak 	3.10

i'd claim this is fixed, but i wrote this patch using vc7.0 and don't feel like testing it w/ vc6.0 at 6am.

the project files while interesting aren't actually the subject of this bug. and i don't really feel like maintaining yet another file format. that we actually try to support nmake and gmake clearly causes enough headaches. supporting the project formats for vc4..8 seems to be asking for way too much pain (yes we have one binary project file in cvs for this stuff, but it's clearly not going anywhere).
Attachment #217140 - Attachment is obsolete: true
Blocks: 332689
all targets build for me in vc6 with js.mak 3.11. debug clean leaves vc60.idb and vc60.pdb in the Debug dir though similar to the situation in bug 332689.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: