Closed
Bug 335652
Opened 19 years ago
Closed 10 years ago
spidermonkey JS_HAS_FILE_OBJECT=1 Makefile.ref no prio.h prerror.h
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: w.langdon, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Running JavaScript under spidermonkey fails if JS calls readFile()
Under SunOS tried gmake -f Makefile.ref JS_HAS_FILE_OBJECT=1
it fails giving:
"jsfile.c", line 94: cannot find include file: "prio.h"
"jsfile.c", line 95: cannot find include file: "prerror.h"
"jsfile.c", line 240: syntax error before or at: PRFileDesc
http://ftp.mozilla.org/pub/mozilla.org/js/js-1.5.tar.gz
22-Oct-2005 13:49 936K
js-1.5.tar.gz down loaded at 2006-04-24 18:24 does not contain prio.h or prerror.h
cf also bug 213257
A general comment; the documentation on spidermonkey seems poor
Reproducible: Always
Expected Results:
The tar file should contain the files needed to support file I/O
The documentation should make it clear how to build the executable "js" so
that js supports file I/O.
The doucmentation should describe the environment array
Generally javascript under rhino and spidermonkey behaves the same (spidermonkey is sometimes more than three times faster). However these are crucial cases where they behave differently. For political rather than efficiency reasons, it looks like I will not be able to use java (and so cant use rhino).
As always any help or guidence would be most welcome
Thank you
Bill
W. B. Langdon, Phone +44-1206-873291
Computer Science, Fax: +44-1206-872788
Essex Institute of Technology
University of Essex
Wivenhoe Park,
Colchester CO4 3SQ, UK
http://www.cs.essex.ac.uk/staff/W.Langdon/
Spam blocking gmail
Foundations of Genetic Programming
http://www.cs.ucl.ac.uk/staff/W.Langdon/FOGP
Some progress...
I can get js built under Linux (but not SUN solaris) with
gmake -f Makefile.ref JS_HAS_FILE_OBJECT=1
however the resulting executable still gives an error when asked to provide readFile(). Eg:
js ~/t.js x
/ufs/servh06/users/wlangdon/t.js:1795: ReferenceError: readFile is not defined
Discussion at http://alioth.debian.org/tracker/index.php?func=detail&aid=301798&group_id=30402&atid=411005
suggests this problem has been out there since at least
2005-06-18
Summary of additional files needed to get gmake to produce js:
prerr.h
prerror.h
prio.h
prtypes.h
prlong.h
prtime.h
prinrval.h
prinet.h
prcpucfg.h
obsolete/protypes.h
BTW when I try this on SUNs, firstly I need I different prcpucfg.h,
then gmake fails with
ild: (undefined symbol) PR_RmDir -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Open -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Rename -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_GetOpenFileInfo -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Write -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_MkDir -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_ReadDir -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_GetFileInfo -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Read -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Delete -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_LocalTimeParameters -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_ExplodeTime -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Access -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Close -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_OpenDir -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Seek -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_CloseDir -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
ild: (undefined symbol) PR_Sync -- referenced in the text segment of SunOS5.9_DBG.OBJ/libjs.a(jsfile.o)
gmake[1]: *** [SunOS5.9_DBG.OBJ/js] Error 5
gmake[1]: Leaving directory `/tmp/spidermonkey3/js/src'
gmake: *** [all] Error 2
I tried to apply bugzilla_213257/diff.charles2
and bugzilla_213257/jsfile.c.diff.charles2b (the later by hand) to js-1.5.tar.gz
gmake -f Makefile.ref JS_HAS_FILE_OBJECT=1 then fails saying i486-suse-linux/bin/ld: cannot find -lnspr4
Bill
Comment 3•10 years ago
|
||
JS_HAS_FILE_OBJECT is now long dead. Closing old bug. (Note that the shell has grown a few file-related APIs since removing File.)
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•