Script BASIC

Support => General Discussions => Topic started by: RONB on April 27, 2014, 06:08:56 PM

Title: sbhttpd fault
Post by: RONB on April 27, 2014, 06:08:56 PM
Updated to Debian 7.5 today. sbhttpd stopped working, using sb2.2 Debian64 beta
error notice
segmentation fault

It has been working fine up till now.

ScriptBasic v2.2
Variation >>Debian64<< build 2
Magic value 859009844
Node size is 24
Extension interface version is 11
Compilation: Oct 14 2013 07:49:58

Title: Re: sbhttpd fault
Post by: support on April 27, 2014, 06:26:07 PM
Is scriba having any problems? I assume you did a reboot after the upgrade and there were no changes to proxy SBHTTPD in the httpd.conf file?

I can't remember what version of Debian 64 I compiled SB 2.2 for. I'm having doubts that this is a Script BASIC SBHTTPD issue when it worked fine before. Is the GD module or MySQL having issues?



Title: Re: sbhttpd fault
Post by: support on April 28, 2014, 08:28:04 AM
Are/were you using sbhttpd as a proxy server behind Apache or using sbhttpd directly?

sbhttpd should be started with sudo (root) privileges as it is a OS service.

 
Title: Re: sbhttpd fault
Post by: support on April 28, 2014, 10:04:59 AM
What do the sbhttpd logs say the problem is?
Title: Re: sbhttpd fault
Post by: support on April 28, 2014, 10:21:37 AM
I just apt-get update/upgrade my Debian 64 bit 7.1 system. As it was going through the upgrade part I noticed about 12 of these warning messages being displayed.

Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: warning: script 'sbhttpd' missing LSB tags and overrides
insserv: warning: script 'sbhttpd' missing LSB tags and overrides

Known Bug (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629102)

Attached is Script BASIC 2.2 Debian 7.5 64 bit. (Build 3) Let me know if this works better for you.
Title: Re: sbhttpd fault
Post by: support on April 29, 2014, 12:24:46 PM
Quote
I wonder if gd needs supporting libraries to work?

Wonder no further as the Script BASIC GD extension module is an interface to the libpng.so, libgd.so and libz.so libraries.
Title: Re: sbhttpd fault
Post by: support on April 30, 2014, 08:33:48 AM
Curious. Did you ever get the GFX (SDL_gfx) extension module working on your box?
Title: Re: sbhttpd fault
Post by: support on April 30, 2014, 08:09:23 PM
Sitting on the edge of my chair with fingers crossed.  ;)
Title: Re: sbhttpd fault
Post by: support on April 30, 2014, 10:02:41 PM
Quote
Where do libSDL.so and libSDL_gfx.so go?

On my system, /usr/lib.

gfx.so goes in the SB modules directory and gfx.inc goes in the SB include directory.

Title: Re: sbhttpd fault
Post by: support on May 01, 2014, 08:14:03 AM
I wish you would have went with your original plans and gone the Ubuntu route.  :-\

I'll see if I can recompile a Debian version of this for you. I have no way to test it though.
Title: Re: sbhttpd fault
Post by: support on May 01, 2014, 07:03:21 PM
Attached is the Script BASIC GFX extension module, libSDL.so and libSDL_gfx.so for Debian 7.5 64 bit.

You will not be able to use the GFX frame rate control functions as Debian throws one of its classic no info errors.

Code: [Select]
gcc -w -fPIC -static -m64 -c -I/usr/include/SDL -o ../../bin/mod/obj/gfx/s_interface.o interface.c
interface.c: In function ‘gfx_SDL_framerateDelay’:
interface.c:2241:15: error: void value not ignored as it ought to be
make: *** [../../bin/mod/obj/gfx/s_interface.o] Error 1
admin@ip-10-168-133-91:~/sb22/source/extensions/gfx$

You may need to remark the gfx_SDL_framerateDelay reference in your gfx.inc file.