• HELP: compiling synchro bbs on Raspberry Pi4 (ubuntu 20.04)

    From Zakhooi@1:103/705 to All on Thu Jan 21 06:43:58 2021
    Hi,

    I've tried and tried to get Synchronet BBS running on my Raspberry PI 4 (ubuntu-server 20.04). I tried the 64bit and 32bit versions of Ubuntu.
    No matter what, it keeps failing on an error jsversion.h.

    I tried these instructions: http://wiki.synchro.net/howto:raspbian_install
    I also tried these instructions (both the git and tarball methods): http://wiki.synchro.net/install:nix

    The package libmozjs185-dev as mentions in the instructions above is not existing in Ubuntu (libmozjs-68-dev and libmozjs-52-dev do exist and I have them installed).

    It just won't get pass this error (See the error below).

    Could someone help me please? I'm stuck!

    THanks in advance!!

    sbbs@ubuntu:~/sbbs$ make install SYMLINK=1 JSINCLUDE=/usr/include/js JSLIB=mozjs185
    echo MAKEFLAGS= os=linux RELEASE=1 JSLIB=mozjs185 | tr ' ' '\n' > /home/sbbs/sbbs/repo/src/build/localdefs.mk
    make -C /home/sbbs/sbbs/repo/src/sbbs3 MAKEFLAGS= os=linux RELEASE=1 JSLIB=mozjs185
    make[1]: Entering directory '/home/sbbs/sbbs/repo/src/sbbs3'
    make -C /home/sbbs/sbbs/repo/src/sbbs3/../smblib lib
    make[2]: Entering directory '/home/sbbs/sbbs/repo/src/smblib'
    make[2]: Nothing to be done for 'lib'.
    make[2]: Leaving directory '/home/sbbs/sbbs/repo/src/smblib'
    make -C /home/sbbs/sbbs/repo/src/sbbs3/../xpdev mtlib
    make[2]: Entering directory '/home/sbbs/sbbs/repo/src/xpdev'
    make[2]: Nothing to be done for 'mtlib'.
    make[2]: Leaving directory '/home/sbbs/sbbs/repo/src/xpdev'
    make -C /home/sbbs/sbbs/repo/src/sbbs3/../../3rdp/build cryptlib
    make[2]: Entering directory '/home/sbbs/sbbs/repo/3rdp/build'
    make[2]: Nothing to be done for 'cryptlib'.
    make[2]: Leaving directory '/home/sbbs/sbbs/repo/3rdp/build'
    Compiling ansiterm.cpp
    In file included from ansiterm.cpp:38:
    sbbs.h:99:10: fatal error: jsversion.h: No such file or directory
    99 | #include <jsversion.h>
    | ^~~~~~~~~~~~~
    compilation terminated.
    make[1]: *** [/home/sbbs/sbbs/repo/src/sbbs3/../build/Common.gmake:461: gcc.linux.armv7l.obj.release-mt/ansiterm.o] Error 1
    make[1]: Leaving directory '/home/sbbs/sbbs/repo/src/sbbs3'
    make: *** [GNUmakefile:152: sbbs3] Error 2
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Zakhooi on Thu Jan 21 12:08:00 2021
    Re: HELP: compiling synchro bbs on Raspberry Pi4 (ubuntu 20.04)
    By: Zakhooi to All on Thu Jan 21 2021 06:43 am

    Hi,

    I've tried and tried to get Synchronet BBS running on my Raspberry PI 4 (ubuntu-server 20.04). I tried the 64bit and 32bit versions of Ubuntu.
    No matter what, it keeps failing on an error jsversion.h.

    I tried these instructions: http://wiki.synchro.net/howto:raspbian_install

    Those instructions are for Raspian, not Ubuntu.

    I also tried these instructions (both the git and tarball methods): http://wiki.synchro.net/install:nix

    The package libmozjs185-dev as mentions in the instructions above is not existing in Ubuntu (libmozjs-68-dev and libmozjs-52-dev do exist and I have them installed).

    If you want to go down the known-working path, use Raspian, not Ubuntu. I think we already talked about this in #synchronet?
    --
    digital man

    Synchronet/BBS Terminology Definition #76:
    SyncTERM = The Synchronet Terminal Emulator/BBS-client program
    Norco, CA WX: 67.3øF, 44.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Blackdiamond@1:103/705 to Zakhooi on Thu Jan 21 20:21:48 2021
    Re: HELP: compiling synchro bbs on Raspberry Pi4 (ubuntu 20.04)
    By: Zakhooi to All on Thu Jan 21 2021 06:43:58

    In file included from ansiterm.cpp:38:
    sbbs.h:99:10: fatal error: jsversion.h: No such file or directory
    99 | #include <jsversion.h>
    | ^~~~~~~~~~~~~
    compilation terminated.

    Here's your real problem. You're missing that jsversion.h file, or it's somewhere the compiler can't find it; when C++ uses an #include, it essentially copies and pastes the file requested into position.

    There's a good forum thread about this problem here: web.synchro.net/?page=001-forum.ssjs&sub=syncprog&thread=36519

    I took a cursory look and I think if you run "cvs update -d" in your sbbs "src" directory before building, that should bring down the rest of the files you should need, but if this doesn't work I'd look in that thread and have a read.

    Good luck!

    ---
    þ Synchronet þ Auntie Bodies BBS - auntibodiesbbs.themuldoons.co.uk
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)