I am now trying it on the other Raspberry Pi with and old OS build... I had just re-compiled on it a few days ago without any issue.
I know there are not many of us Synchronet running on Raspberry Pi, but I was doing some testing on my second Pi which is running the latest Raspbian Wheezy build (just downloaded yesterday). Installed all pre-requisites and downloaded latest source and compiled... I didn't notice any errors and it appeared everything compiled correctly but when I run scfg, the entire screen goes blank and nothing happens. I actually freezes the whole system and I cannot get into the other consoles (Alt-F1, Alt-F2, etc). I have to power off the system and start it up again. Just out of curisoity, I compared the executuable files from a working scfg and the bad scfg and the file size of the bad one is approximatly doubled.
First I thought it was a complile issue so I deleted the sbbs folder (including source) and started over... same issue. Next step, I started the whole system over from scratch (reinstalled Raspbian Wheezy, latest build) but still had the problem.
I am now trying it on the other Raspberry Pi with and old OS build... I had just re-compiled on it a few days ago without any issue.
Now unfortunatly, it takes about 2.5 hours to complile on the PI, so I will know in an hour or so if it works...
Is it possible to recompile just the scfg file by itself?
Is there a compile log (or a switch to turn on the log) that I can examine later?
Release builds are smaller than debug builds. 32-bit builds are smaller than 64-bit builds. Could either of those explain the file size change?
SCFG can be run with different user interfaces. Try "scfg -id" for example for the simplest of user interfaces and see if that works.
Yes. Running 'make' in the src/sbbs3/scfg director will just remake SCFG. Just the scroll-back of your console.
SCFG can be run with different user interfaces. Try "scfg -id" for example for the simplest of user interfaces and see if that works.
Will give that a try. :)
Is there a compile log (or a switch to turn on the log) that I can examine later?
we use the following script when we update sbbs... we start it like this...
Re: Compile Issue (Raspberry Pi)
By: High Spirit to Digital Man on Mon May 25 2015 07:56 am
SCFG can be run with different user interfaces. Try "scfg -id" for example for the simplest of user interfaces and see if that works.
Will give that a try. :)
I have confirmed, "scfg -id" does work. I get the basic menu and can work around in scfg.
Now I just noticed something, previous attempts running the executable blanked the screen and locked up the system. I just ran the executable in a SSH session from another system and I got the scfg copyright message in my terminal and the screen that is plugged into the Raspberry Pi went blank and is locked up. So it is getting to a certain point and then crashing...
Crashing (e.g. segfaulting) or just hanging? There is a difference.
There are other inteface/output modes SCFG supports as well. Experiment with the differnet "-i" options and find out what might be the problematic mode.
we use the following script when we update sbbs... we start it like
this...
I have a script on the current BBS which I can do exactly that. I
am upgrading my host OS and it is causing compile issues for some reason. The executables work fine if I copy them over from the
old OS, but once I am running on the new OS, I will not be able
to re-compile unless I do it on the old OS.
It's challenging me and I like it. ;)
Re: Compile Issue (Raspberry Pi)
By: Digital Man to High Spirit on Mon May 25 2015 03:58 pm
Crashing (e.g. segfaulting) or just hanging? There is a difference.
It is taking out the whole system as I cannot do a Alt-F1, Alt-F2, etc to get into the other consoles in linux and it kills my SSH connections into it.
There are other inteface/output modes SCFG supports as well. Experiment with the differnet "-i" options and find out what might be the problematic mode.
I will give that a shot tomorrow and see what modes work. Hopfully it will point me in the right direction... any thoughts on why the scfg executable would compile twice it's normal size on the new OS?
Does it respond to a 'ping'?
Debug builds are larger than release builds, as I already mentioned. Could that be it?
Debug builds are larger than release builds, as I already mentioned. Could that be it?
There are other inteface/output modes SCFG supports as well. Experiment with the differnet "-i" options and find out what might be the problematic mode.
Re: Compile Issue (Raspberry Pi)
By: Digital Man to High Spirit on Mon May 25 2015 09:56 pm
Debug builds are larger than release builds, as I already mentioned. Could that be it?
Just confirmed that I am compiling a release and not a debug build...
Here is what I got when I compiled the SCFG executabe on the NEW OS:
make DEBUG=1 : 1957891 bytes.
make RELEASE=1: 1070920 bytes.
For the hell of it, I did the same on the old OS/working executables:
make DEBUG=1 : 1432083 bytes.
make RELEASE=1: 697026 bytes.
Re: Compile Issue (Raspberry Pi)
By: Digital Man to High Spirit on Mon May 25 2015 03:58 pm
There are other inteface/output modes SCFG supports as well. Experiment with the differnet "-i" options and find out what might be the problematic mode.
Got strange results on this...
Command Result
./scfg Crash system
./scfg -iD Works
./scfg -iC Works
./scfg -af Works
./scfg -aA Works but seems sluggish.
So would that be something in the auto detect if '-i' is not provided?
There are other inteface/output modes SCFG supports as well. Experiment with the differnet "-i" options and find out what might be the problematic mode.
Got strange results on this...
Command Result
./scfg Crash system
Does 'scfg -ix' work? That mode uses X11 which I believe is the auto-detected default when running under X.
My bet is that the system is not actually crashing, but that SDL is taking over the console and failing to display anything.
Try a clean build specifying WITHOUT_SDL=1 on the make command-line to completely disable SDL support.
If this "fixes" the problem, look into how SDL is configured and built, since the problem lies there.
My bet is that the system is not actually crashing, but that SDL is taking over the console and failing to display anything.
Try a clean build specifying WITHOUT_SDL=1 on the make command-line to completely disable SDL support.
If this "fixes" the problem, look into how SDL is configured and built, since the problem lies there.
In the mean time, is there any draw backs to compiling without SDL? My BBS runs on a dedicated Pi with no display, audio or input devices.
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 10:51:06 |
Calls: | 510 |
Messages: | 220575 |