Git Product home page Git Product logo

Comments (13)

InterLinked1 avatar InterLinked1 commented on June 11, 2024

Does running apt-get install -y libreadline-dev resolve this issue?

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024

Now I'm getting a new error.
make: *** [Makefile:59: nets] Error 2

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

Can you post the full output from compilation, including all the commands you ran?

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024

There's too much output for my screen reader to view, even with the Windows command prompt maximized (I'm ssh'd into my Ubuntu server)

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

These isn't all that much output from running the commands to compile, it's not a huge source tree. You'll need to overcome that issue somehow. Command Prompt is probably best avoided for SSH. In PuTTY/KiTTY, you can increase your scrollback buffer (but the default of 10,000 should be plenty for this).

Alternately, just redirect the compilation process to a file and post that here:

make > makelog.txt 2>&1

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024
/bin/sh: 1: valgrind: not found
/bin/sh: 1: valgrind: not found
/bin/sh: 1: test: -ge: unexpected operator
 +--------- make bbs ---------+
make --no-builtin-rules -C bbs all
make[1]: Entering directory '/usr/src/lbbs/bbs'
== Linking all
gcc -Wall -Werror -Wunused -Wextra -Wmaybe-uninitialized -Wstrict-prototypes -Wm
issing-prototypes -Wdangling-else -Wdeclaration-after-statement -Wmissing-declar
ations -Wno-deprecated-declarations -Wmissing-format-attribute -Wnull-dereferenc
e -Wformat=2 -Wshadow -Wsizeof-pointer-memaccess -std=gnu99 -pthread -O0 -g -Wst
ack-protector -fno-omit-frame-pointer -fwrapv -D_FORTIFY_SOURCE=2 -Wl,--export-d
ynamic -o lbbs *.o -lrt -lm -ldl -lbfd -lcap -lcrypt -lssl -lcrypto -lcurl -lrea
dline -luuid -rdynamic
make[1]: Leaving directory '/usr/src/lbbs/bbs'
 +--------- make doors ---------+
make --no-builtin-rules -C doors all
make[1]: Entering directory '/usr/src/lbbs/doors'
== Linking door_irc.so
gcc -shared -fPIC -o door_irc.so door_irc.o irc.o -lssl -lcrypto
== Compiling doors
make[1]: Leaving directory '/usr/src/lbbs/doors'
 +--------- make modules ---------+
make --no-builtin-rules -C modules all
make[1]: Entering directory '/usr/src/lbbs/modules'
== Compiling modules
make[1]: Leaving directory '/usr/src/lbbs/modules'
 +--------- make nets ---------+
make --no-builtin-rules -C nets all
make[1]: Entering directory '/usr/src/lbbs/nets'
objdump: '/lib/x86_64-linux-gnu/libssh.so': No such file
== Compiling net_sftp.o
gcc -Wall -Werror -Wunused -Wextra -Wmaybe-uninitialized -Wstrict-prototypes -Wm
issing-prototypes -Wdangling-else -Wdeclaration-after-statement -Wmissing-declar
ations -Wno-deprecated-declarations -Wmissing-format-attribute -Wnull-dereferenc
e -Wformat=2 -Wshadow -Wsizeof-pointer-memaccess -std=gnu99 -pthread -O0 -g -Wst
ack-protector -fno-omit-frame-pointer -fwrapv -D_FORTIFY_SOURCE=2 -fPIC -DBBS_MO
DULE=\"net_sftp\" -DBBS_MODULE_SELF_SYM=__internal_net_sftp_self -I.. -c net_sft
p.c
net_sftp.c:597:13: error: static declaration of 'sftp_server_free' follows non-s
tatic declaration
  597 | static void sftp_server_free(sftp_session sftp)
      |             ^~~~~~~~~~~~~~~~
In file included from net_sftp.c:40:
/usr/include/libssh/sftp.h:870:17: note: previous declaration of 'sftp_server_fr
ee' was here
  870 | LIBSSH_API void sftp_server_free(sftp_session sftp);
      |                 ^~~~~~~~~~~~~~~~
make[1]: *** [Makefile:24: net_sftp.o] Error 1
make[1]: Leaving directory '/usr/src/lbbs/nets'
make: *** [Makefile:59: nets] Error 2

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

The auto detection of libssh's version seems to not be working for you. libssh has incompatible changes between their library versions and (AFAIK) no easy way to detect what functions exist in their library, annoyingly, so if they aren't present they need to be shimmed.

You could manually add -DHAVE_SFTP_SERVER_FREE to your CFLAGS and that should fix this, but I'm curious what you get when you run:

shell objdump -T /lib/x86_64-linux-gnu/libssh.so | grep "sftp_server_free"

The results of that are being used to determine whether to pass that flag to the compiler or not.

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024

objdump: '/lib/x86_64-linux-gnu/libssh.so': No such file

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

I'm presuming libssh is installed, correct?

apt-get install -y libssh-dev

I wonder if it may be located elsewhere on your system. Can you check similar directories, e.g. /usr/lib/ instead of /lib, etc. and see if it might be there?

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024

Replacing /lib with /usr/lib in the command produces this output.
0000000000041710 g DF .text 0000000000000099 LIBSSH_4_8_0 sftp_server_free

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

Ah, okay, so good, it's installed, just for some reason on your system it only works with /usr/lib, and on others either /lib or /usr/lib seem to work.

I've pushed a small update (e035ce3) that should make it work for you - feel free to give the latest source a try.

from lbbs.

SeedyThreeSixty avatar SeedyThreeSixty commented on June 11, 2024

The compilation and installation worked fine after the update, but now I'm having trouble getting HTTP(s) and SSH to work. I'm pretty sure I configured my conf files in /etc/lbbs correctly. Also it says that no auth provider is registered, though I ran the sql script to create the mysql database and dable values. I can access the BBS via telnet, but it says connection refused when I try to access it via SSH, even on localhost. I've allowed my desired SSH port through UFW.
For your convenience, here's my most recent BBS log.
bbs.log

from lbbs.

InterLinked1 avatar InterLinked1 commented on June 11, 2024

Thanks for uploading a log; in the future if you can include debug as well, that is always best.

Most of the secure services require that tls.conf also be set up, although the SSH module uses its own certificates that must be specified in net_ssh.conf. The log tells you why it didn't load, it didn't find any acceptable keys to use:

[2023-03-21 08:26:50.183] VERBOSE[106617]: config.c:432 config_parse: Parsed config /etc/lbbs/net_ssh.conf
[2023-03-21 08:26:50.183] WARNING[106617]: net_ssh.c:70 bind_key: Can't access key /etc/ssh/ssh_host_rsa_key - missing or not readable?
[2023-03-21 08:26:50.183] WARNING[106617]: net_ssh.c:70 bind_key: Can't access key /etc/ssh/ssh_host_ecdsa_key - missing or not readable?
[2023-03-21 08:26:50.183]  ERROR[106617]: net_ssh.c:99 start_ssh: Failed to configure listener, unable to bind any SSH keys
[2023-03-21 08:26:50.183]  ERROR[106617]: module.c:469 load_resource: Module 'net_ssh.so' could not be loaded.

You can try tweaking the key settings in the config file and see if that works, I've had to do that on different systems.

What does your modules.conf look like? It seems that perhaps you may have disabled autoload. I see you're loading mod_mysql, but you also need mod_auth_mysql as that is what actually provides the database-backed authentication. If autoload is disabled, you'll want to explicitly load that module, load = mod_auth_mysql.so

from lbbs.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.