Hi everybody. I used to be around for awhile, but it has certainly been a few years since my adventures in transient life
took down my system.
Trying to get things back up again, and I'd love to start on some different JS development, but I'm having some issues
getting things to compile properly on Ubuntu 18.04.1. I believe I have all of the required dependencies installed, along with all
of the optional and 3rd party software that's listed on the *NIX install page, as well. So I don't _think_ I'm missing anything.
Anyhoo, here's what make is telling me (I'm doing the cvs install with the tag sbbs316c):
jsutil.h:120:43: warning: typedef ‘js_static_assert70’ locally defined JSObject::setArrayLength(uint32)’: jsobjinlines.h:316:24: warning: cast to ./assembler/assembler/MacroAssemblerX86_64.h:127:22: warning: variable ./assembler/assembler/MacroAssemblerX86_64.h:135:22: warning: variable ./assembler/assembler/MacroAssemblerX86_64.h:144:22: warning: variable
return false;
^~~~~
config/rules.mk:1475: recipe for target 'jsapi.o' failed
Digital Man wrote to Sprite <=-
jsutil.h:120:43: warning: typedef ª€˜js_static_assert70ª€™ locally defined JSObject::setArrayLength(uint32)ª€™: jsobjinlines.h:316:24: warning: cast to ./assembler/assembler/MacroAssemblerX86_64.h:127:22: warning: variable ./assembler/assembler/MacroAssemblerX86_64.h:135:22: warning: variable ./assembler/assembler/MacroAssemblerX86_64.h:144:22: warning: variable
The JS-related warnings should be ignored.
return false;
^~~~~
config/rules.mk:1475: recipe for target 'jsapi.o' failed
Sounds like your version of GCC isn't compatible with the libmozjs
1.8.5 source. See if you have a libmozjs-dev package for your distro/version and install/use that instead (by specifying JSLIB and JSINCLUDE definitions on the make command-line).
Thank you much, DM. As always (though I'm under a new handle and probably not well remembered anyway), it is much appreciated! :)
I'm doing the cvs install with the tag sbbs316c
Digital Man wrote to Sprite <=-
No problem. A couple of things though:
I'm doing the cvs install with the tag sbbs316c
1. I recommend building/installing the latest from CVS instead of
v3.16c
2. If you really want v3.16c, you can get pre-built binaries from Vertrauen
(for Linux-x64, built on Debian 9.1 with the libmozjs185-dev
package):
ftp://vert.synchro.net/Synchronet/sbbs316c.tgz
Digital Man wrote to Sprite <=-
No problem. A couple of things though:
I'm doing the cvs install with the tag sbbs316c
1. I recommend building/installing the latest from CVS instead of v3.16c
Ah, roger that. I thought that 316c was more stable due to the development process.
2. If you really want v3.16c, you can get pre-built binaries from Vertrauen
(for Linux-x64, built on Debian 9.1 with the libmozjs185-dev package):
ftp://vert.synchro.net/Synchronet/sbbs316c.tgz
Nah, I'm not hooked on any one version. I'll just be happy to get Synchronet running again so that I can burn a few days putting together some ANSIs again and then a few months trying to build a shell in JS. ;)
That being said, I have tried the compilation process, and things are still hanging up on some JS issues, this time in the build of ansiterm.o. I've
tried the process from scratch both with mozjs-52-dev and mozjs-38-dev, and it's dying at the same point each time.
The ansiterm.o section of the build reports the following:
-=-=-=-
make[2]: Leaving directory '/home/sbbs/sbbs/3rdp/build'
Compiling ansiterm.cpp
In file included from /usr/include/wchar.h:35:0,
from /usr/include/mozjs-38/mozilla/TypeTraits.h:20,
from /usr/include/mozjs-38/mozilla/Assertions.h:312,
from /usr/include/mozjs-38/mozilla/FloatingPoint.h:12,
from /usr/include/mozjs-38/jsapi.h:12,
from sbbs.h:114,
from ansiterm.cpp:38: /usr/include/mozjs-38/jspubtd.h:459:60: warning: offsetof within non-standard-layout type ¨js::PerThreadDataFriendFields::RuntimeDummy¨ is undefined [-Winvalid-offsetof]
static const size_t RuntimeMainThreadOffset = offsetof(RuntimeDummy, mainThread);
^
In file included from ansiterm.cpp:38:0:
sbbs.h:1230:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_DescribeSyncObject(JSContext* cx, JSObject* obj, const char*, int ver);
^~~~~~
JS_Now
sbbs.h:1231:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_DescribeSyncConstructor(JSContext* cx, JSObject* obj, const char*);
^~~~~~
JS_Now
sbbs.h:1232:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_DefineSyncMethods(JSContext* cx, JSObject* obj, jsSyncMethodSpec*);
^~~~~~
JS_Now
sbbs.h:1233:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_DefineSyncProperties(JSContext* cx, JSObject* obj, jsSyncPropertySpec*);
^~~~~~
JS_Now
sbbs.h:1234:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_SyncResolve(JSContext* cx, JSObject* obj, char *name, jsSyncPropertySpec* props, jsSyncMethodSpec* funcs, jsConstIntSpec* consts, int flags);
^~~~~~
JS_Now
sbbs.h:1235:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_DefineConstIntegers(JSContext* cx, JSObject* obj, jsConstIntSpec*, int flags);
^~~~~~
JS_Now
sbbs.h:1236:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent
^~~~~~
JS_Now
sbbs.h:1276:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_CommonOperationCallback(JSContext*, js_callback_t*);
^~~~~~
JS_Now
sbbs.h:1296:12: error: ¨JSBool¨ does not name a type; did you mean ¨JS_Now¨?
DLLEXPORT JSBool DLLCALL js_CreateUserObjects(JSContext* cx, JSObject* parent, scfg_t* cfg
^~~~~~
JS_Now
/home/sbbs/sbbs/src/sbbs3/../build/Common.gmake:451: recipe for target 'gcc.linux.x64.obj.release-mt/ansiterm.o' failed
-=-=-=-
Any suggestions for getting beyond this point?
Any suggestions for getting beyond this point?
Synchronet comes with its own supported version of libmozjs-185 (in 3rdp). Use that (don't pass JSLIB or JSINCLUDE on the make command-line).
Digital Man wrote to Sprite <=-
Re: Re: long time no see-- is
By: Sprite to Sprite on Wed Nov 21 2018 03:51 pm
Synchronet comes with its own supported version of libmozjs-185 (in
3rdp). Use that (don't pass JSLIB or JSINCLUDE on the make
command-line).
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 333 |
Nodes: | 10 (0 / 10) |
Uptime: | 35:18:42 |
Calls: | 576 |
Messages: | 236643 |