Another Synchronet BBS compile question - Raspberry Pi Forums


hi,

still having issues compiling sbbs on pi. have installed dependencies, , gone through wiki several times. can't seem clean build..

running command
[code]

pi@raspberrypi ~/sbbs $ sudo make install jsinclude=/usr/include/js jslib=mozjs symlink=1


...
...
compiling dstsedit.c
linking gcc.linux.armv6l.exe.release/dstsedit
compiling sbbscon.c
compiling websrvr.c
linking gcc.linux.armv6l.lib.release/libwebsrvr.so
linking gcc.linux.armv6l.exe.release/sbbs
gcc.linux.armv6l.lib.release/libsbbs.so: undefined reference `js_getscopechain'
gcc.linux.armv6l.lib.release/libsbbs.so: undefined reference `js_getscriptfromobject'
collect2: ld returned 1 exit status
make[1]: *** [gcc.linux.armv6l.exe.release/sbbs] error 1
make[1]: leaving directory `/home/pi/sbbs/src/sbbs3'
make: *** [sbbs3] error 2
pi@raspberrypi ~/sbbs $
[/code]

closest can come build...

have tried
[code]
pi@raspberrypi ~/sbbs $ sudo make install jsinclude=/usr/include/js jslib=mozjs185 symlink=1
...
...
linking gcc.linux.armv6l.exe.release/sbbs
compiling jsexec.c
compiling js_uifc.c
compiling js_conio.c
linking gcc.linux.armv6l.exe.release/jsexec
/usr/bin/ld: gcc.linux.armv6l.obj.release-mt/jsexec.o: undefined reference symbol 'js_endrequest'
/usr/bin/ld: note: 'js_endrequest' defined in dso /usr/lib/libmozjs185.so.1.0 try adding linker command line
/usr/lib/libmozjs185.so.1.0: not read symbols: invalid operation
collect2: ld returned 1 exit status
make[1]: *** [gcc.linux.armv6l.exe.release/jsexec] error 1
make[1]: leaving directory `/home/pi/sbbs/src/sbbs3'
make: *** [sbbs3] error 2
pi@raspberrypi ~/sbbs $


[/code]

if take @ libs folder here...

[code]

pi@raspberrypi /usr/include $ ls
aio.h containers.h error.h grp.h jsclone.h jsinttypes.h jspropertytree.h jsval.h lxpanel net obstack.h regalloc.h stdio.h tic.h writer.h
aliases.h cpio.h eti.h gshadow.h jscntxt.h jsiter.h jsproto.tbl jsvalue.h malloc.h netash panel.h regex.h stdlib.h time.h x11
alloca.h crypt.h etip.h iconv.h jscompartment.h jslock.h jsproxy.h jsvector.h math.h netatalk paths.h regexp.h string.h ttyent.h xapian
allocator.h ctype.h execinfo.h ifaddrs.h jscompat.h jslong.h jsprvtd.h jsversion.h mcheck.h netax25 poll.h resolv.h strings.h ucontext.h xapian.h
apt-pkg cursesapp.h fcntl.h initreq.h js-config.h jsmath.h jspubtd.h jswrapper.h memory.h netdb.h printf.h rpc stropts.h ulimit.h xen
argp.h cursesf.h features.h inttypes.h jsdate.h js.msg jsreflect.h jsxdrapi.h menu.h neteconet prmjtime.h rpcsvc sudo_plugin.h unctrl.h xlocale.h
argz.h curses.h fenv.h js jsdbgapi.h jsobj.h jsregexp.h jsxml.h midori-0.4 netinet protocols sched.h sys unistd.h zconf.h
ar.h cursesm.h fmtmsg.h jsanalyze.h jsdhash.h jsobjinlines.h jsscan.h langinfo.h mntent.h netipx pthread.h scsi syscall.h ustat.h zlib.h
arm-linux-gnueabihf cursesp.h fnmatch.h jsapi.h jsdtoa.h json.h jsscope.h lastlog.h monetary.h netiucv pty.h search.h sysexits.h utime.h
arpa cursesw.h form.h jsarena.h jsemit.h jsopcode.h jsscript.h libgen.h mozjs netpacket pwd.h semaphore.h syslog.h utmp.h
asm-generic cursslk.h fragmento.h jsarray.h jsfriendapi.h jsopcodeinlines.h jsscriptinlines.h libintl.h mqueue.h netrom python2.6 setjmp.h tagcoll-2.0.13 utmpx.h
assembler.h dirent.h fstab.h jsatom.h jsfun.h jsopcode.tbl jsstaticcheck.h libio.h mtd netrose python2.6_d sgtty.h tar.h values.h
assert.h dlfcn.h fts.h jsautocfg.h jsgcchunk.h jsotypes.h jsstdint.h limits.h nanojit.h nfs python2.7 shadow.h termcap.h video
avmplus.h elf.h ftw.h jsautokw.h jsgc.h jsparse.h jsstr.h link.h nativearm.h njconfig.h python2.7_d signal.h term_entry.h vmpi.h
byteswap.h endian.h _g_config.h jsbit.h jsgcstats.h jsperf.h jstl.h linux nativecommon.h njcpudetect.h python3.2 sound term.h wait.h
c++ envz.h gconv.h jsbool.h jshash.h jsprf.h jstracer.h lir.h native.h nl_types.h python3.2_d spawn.h termio.h wchar.h
clif.h ept getopt.h jsbuiltins.h jshashtable.h jsprobes.h jstypedarray.h liropcode.tbl nc_tparm.h nspr python3.2mu stab.h termios.h wctype.h
codealloc.h err.h glob.h jscell.h jshotloop.h jspropertycache.h jstypes.h locale.h ncurses_dll.h nss.h rdma stdint.h tgmath.h wibble
complex.h errno.h gnu-versions.h jsclist.h jsinterp.h jspropertycacheinlines.h jsutil.h lxappearance ncurses.h numpy re_comp.h stdio_ext.h thread_db.h wordexp.h
pi@raspberrypi /usr/include $ cd js/
pi@raspberrypi /usr/include/js $ ls
allocator.h jsapi.h jsbool.h jscompat.h jsfriendapi.h jshotloop.h js.msg jsotypes.h jspropertytree.h jsscan.h jstl.h jsvector.h nanojit.h regalloc.h
assembler.h jsarena.h jsbuiltins.h js-config.h jsfun.h jsinterp.h jsobj.h jsparse.h jsproto.tbl jsscope.h jstracer.h jsversion.h nativearm.h vmpi.h
avmplus.h jsarray.h jscell.h jsdate.h jsgcchunk.h jsinttypes.h jsobjinlines.h jsperf.h jsproxy.h jsscript.h jstypedarray.h jswrapper.h nativecommon.h writer.h
codealloc.h jsatom.h jsclist.h jsdbgapi.h jsgc.h jsiter.h json.h jsprf.h jsprvtd.h jsscriptinlines.h jstypes.h jsxdrapi.h native.h
containers.h jsautocfg.h jsclone.h jsdhash.h jsgcstats.h jslock.h jsopcode.h jsprobes.h jspubtd.h jsstaticcheck.h jsutil.h jsxml.h njconfig.h
fragmento.h jsautokw.h jscntxt.h jsdtoa.h jshash.h jslong.h jsopcodeinlines.h jspropertycache.h jsreflect.h jsstdint.h jsval.h lir.h njcpudetect.h
jsanalyze.h jsbit.h jscompartment.h jsemit.h jshashtable.h jsmath.h jsopcode.tbl jspropertycacheinlines.h jsregexp.h jsstr.h jsvalue.h liropcode.tbl prmjtime.h
pi@raspberrypi /usr/include/js $

[/code]

1 suggests:

[quote]alter make file in /sbbs/src/sbbs3 addint -lmozjs linking instructions jsexec[/quote]

if in make file path can find jsexec here...

[code]

# jsexec
$(jsexec): $(jsexec_objs) $(sbbs)
@echo linking $@
$(quiet)$(cc) $(mt_ldflags) -e$@ $(ldflags) $(jsexec_objs) \
$(uifc-mt_libs) $(ciolib-mt_libs) $(xpdev-mt_libs) \
$(libodir)\$(ul_pre)sbbs$(ul_suf)

[/code]

how add flag section of code? solve problem. 1 figuring out, way not going happen out help.

i have no idea bbs (bulletin board) , less
synchronet version , error reported indicates level
of libmozjs (libmozjs,.so) either not being found (and there likely
more 2 errors if case . quick google turns the
idea libmozjs185.so have missing 2 items.

referenced seems .

dont have updatedb/locate on pi , 'find' tool

sudo find / -name '*mozjs*so*'

should turn lives - if on system - if isnt
find , download (i'm not au fait debian way of doing
things ) .you can check symbols exports using

nm -d<fullpath2libmozjs> | grep js_getscriptfromobject

, when have lib symbols can mangle cmd
line make file showed , add

-l<path dir containing libmozjs> -l<name of libmozjs - lib prefix>
eg
-l/usr/lib/firefox-3.6.15 -lmozjs.so

libmozjs.so points latest version.

tis little while since compiling etc, might bit rusty
.
pick say


raspberrypi



Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums