Author Topic: Compiling the scriptbasic source package  (Read 89902 times)

markhobley

  • Guest
Compiling the scriptbasic source package
« on: June 18, 2007, 08:33:45 AM »
Does anyone know how to get the scriptbasic source package to compile
correctly?

I am trying to compile on my Debian based system, and am getting a series of
errors during build:

# ./setup
This is unix cwd=/home/mark/scriba/
creating configure.jim
creating subdirectories for compilation output files
compiling Makefile using the Jamal preprocessor
running syntaxer.pl to generate the syntax defintion C language tables from
syntax.def
running generrh.pl to generate the error messages from errors.def
running lmt_make.pl for all lmt*.def files
scanning all subdirectories to find all C source files
there are 1575 files in the source tree
there are 104 C source files in the source tree

configuring module bdb
ld: cannot find -lbdb
make: *** [/home/mark/scriba/bin/mod/dll/bdb.so] Error 1
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile
ERROR: SO was not created for some reason.

configuring module cgi
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
 extracting header from cgi.c
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile
Module was compiled fine

configuring module cio
This is unix cwd=/home/mark/scriba/
The module cio is not for unix.
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile

configuring module curl
interface.c:26:23: error: curl/curl.h: No such file or directory
interface.c:132: error: expected specifier-qualifier-list before 'CURL'
interface.c: In function 'bootmodu':
interface.c:191: error: 'CURL_GLOBAL_ALL' undeclared (first use in this
function)

<snip>

make: *** [/home/mark/scriba/bin/mod/obj/curl/s_interface.o] Error 1
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile
ERROR: The module did not compile

configuring module curses
interface.c:27:20: error: curses.h: No such file or directory
In file included from ../../basext.h:11,
                 from interface.c:113:
../../lexer.h:171: error: expected declaration specifiers or '...' before
'FILE'

In file included from ../../basext.h:12,
                 from interface.c:113:
../../expression.h:290: error: expected declaration

<snip>

make: *** [/home/mark/scriba/bin/mod/obj/curses/s_interface.o] Error 1
<snip>

ERROR: The module did not compile
configuring module dbg
<snip>
Module was compiled fine

configuring module dyc
This is unix cwd=/home/mark/scriba/
The module dyc is not for unix.

<snip>

configuring module gd
ld: cannot find -lpng
make: *** [/home/mark/scriba/bin/mod/dll/gd.so] Error 1
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile
ERROR: SO was not created for some reason.

configuring module hash
<snip>
Module was compiled fine

configuring module mt
interface.c: In function 'setsvariable':
interface.c:672: error: invalid lvalue in assignment
<snip>

make: *** [/home/mark/scriba/bin/mod/obj/mt/s_interface.o] Error 1
<snip>
ERROR: The module did not compile

configuring module mysql
interface.c:13:25: error: mysql/mysql.h: No such file or directory
<snip>

make: *** [/home/mark/scriba/bin/mod/obj/mysql/s_interface.o] Error 1
This is unix cwd=/home/mark/scriba/

executing headerer for the C files
 extracting header from interface.c
creating the module object directory

Processing jamal files creating makefile
ERROR: The module did not compile

configuring module nt
This is unix cwd=/home/mark/scriba/
The module nt is not for unix.
<snip>

configuring module odbc

interface.c:10:17: error: sql.h: No such file or directory
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/odbc/s_interface.o] Error 1
<snip>
ERROR: The module did not compile

configuring module psql
interface.c:27:33: error: postgresql/libpq-fe.h: No such file or directory
In file included from ../../basext.h:11,
                 from interface.c:28:
../../lexer.h:171: error: expected declaration specifiers or '...' before
'FILE'
<snip>

make: *** [/home/mark/scriba/bin/mod/obj/psql/s_interface.o] Error 1
<snip>
ERROR: The module did not compile

configuring module re
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
<snip>
creating the module object directory
Processing jamal files creating makefile
Module was compiled fine

configuring module t
<snip>
Module was compiled fine

configuring module trial
<snip>
Module was compiled fine

configuring module ux
<snip>
Module was compiled fine

configuring module xml
interface.c:19:27: error: libxml/parser.h: No such file or directory
interface.c: In function 'sbxmlParseFile':
interface.c:118: error: 'xmlDocPtr' undeclared (first use in this function)
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/xml/s_interface.o] Error 1
<snip>
ERROR: The module did not compile

configuring module zlib
ld: cannot find -lz
make: *** [/home/mark/scriba/bin/mod/dll/zlib.so] Error 1
This is unix cwd=/home/mark/scriba/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Processing jamal files creating makefile
ERROR: SO was not created for some reason.

making compile command file(s)
starting compilation
commands/function.c: In function 'COMMAND_GOSUB':
commands/function.c:307: error: invalid lvalue in assignment
commands/function.c: In function 'COMMAND_RETURNC':
commands/function.c:327: error: invalid lvalue in assignment
commands/function.c: In function 'COMMAND_POP':
commands/function.c:349: error: invalid lvalue in assignment
commands/function.c: In function 'COMMAND_EXITFUNC':
commands/function.c:376: error: invalid lvalue in assignment
make: *** [/home/mark/scriba/bin/obj/function.o] Error 1
ld: cannot find -lbdb
make: *** [/home/mark/scriba/bin/mod/dll/bdb.so] Error 1
interface.c:26:23: error: curl/curl.h: No such file or directory
interface.c:132: error: expected specifier-qualifier-list before 'CURL'
interface.c: In function 'bootmodu':
<snip>
interface.c: In function 'finimodu':
interface.c:211: error: 'struct _CurlConnection' has no member named 'next'
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/curl/s_interface.o] Error 1
interface.c:27:20: error: curses.h: No such file or directory
In file included from ../../basext.h:11,
                 from interface.c:113:
../../lexer.h:171: error: expected declaration specifiers or '...' before
'FILE'
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/mt/s_interface.o] Error 1
interface.c:13:25: error: mysql/mysql.h: No such file or directory
interface.c:14:26: error: mysql/errmsg.h: No such file or directory
interface.c:26: error: expected specifier-qualifier-list before 'MYSQL'
interface.c:38: error: 'CR_CONN_HOST_ERROR' undeclared here (not in a function)
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/mysql/s_interface.o] Error 1
interface.c:10:17: error: sql.h: No such file or directory
interface.c:11:20: error: sqlext.h: No such file or directory
interface.c:21: error: expected specifier-qualifier-list before 'SQLHANDLE'
interface.c:30: error: expected specifier-qualifier-list before 'SQLHANDLE'
interface.c: In function 'bootmodu':
interface.c:156: error: 'SQLRETURN' undeclared (first use in this function)
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/odbc/s_interface.o] Error 1
interface.c:27:33: error: postgresql/libpq-fe.h: No such file or directory
In file included from ../../basext.h:11,
                 from interface.c:28:
../../lexer.h:171: error: expected declaration specifiers or '...' before
'FILE'
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/psql/s_interface.o] Error 1
interface.c:19:27: error: libxml/parser.h: No such file or directory
interface.c: In function 'sbxmlParseFile':
interface.c:118: error: 'xmlDocPtr' undeclared (first use in this function)
<snip>
make: *** [/home/mark/scriba/bin/mod/obj/xml/s_interface.o] Error 1
ld: cannot find -lz
make: *** [/home/mark/scriba/bin/mod/dll/zlib.so] Error 1
scriba executable FAIL
sbhttpd executable FAIL
libscriba library FAIL

MODULE bdb:      dll FAIL lib OK   bas OK  
MODULE cgi:      dll OK   lib OK   bas OK  
MODULE curl:     dll FAIL lib FAIL bas OK  
MODULE curses:   dll FAIL lib FAIL bas OK  
MODULE dbg:      dll OK   lib OK   bas OK  
MODULE gd:       dll FAIL lib OK   bas OK  
MODULE hash:     dll OK   lib OK   bas OK  
MODULE mt:       dll FAIL lib FAIL bas OK  
MODULE mysql:    dll FAIL lib FAIL bas OK  
MODULE odbc:     dll FAIL lib FAIL bas OK  
MODULE psql:     dll FAIL lib FAIL bas OK  
MODULE re:       dll OK   lib OK   bas OK  
MODULE t:        dll OK   lib OK   bas OK  
MODULE trial:    dll OK   lib OK   bas OK  
MODULE ux:       dll OK   lib OK   bas OK  
MODULE xml:      dll FAIL lib FAIL bas OK  
MODULE zlib:     dll FAIL lib OK   bas OK  

Thanks in advance to anyone who can help.

Mark.

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Compiling the scriptbasic source package
« Reply #1 on: June 18, 2007, 04:34:08 PM »
Mark,

Sounds like you have some permission issues or don't have your development library loaded is my guess. What version of Linux you running? I had to tweak the interface.c files so that the compiler/linker could find the correct paths to the libs.

 I will try put the 2.1 source on the server in the next few days. I have binaries for CentOS (Red Hat Recompile) if that would help get you going with ScriptBasic. I have been running ScriptBasic 2.1 for over a year as a web service interface to a MLS to get photos and listing data. I have tons of other small scripts in ScriptBasic I run as well. I now have the ScriptBasic 2.1 application server working with Apache 2.x and MySQL and it's faster then any other scripting environment I have used in the past. (php, Perl, CF, ASP, ...)

Welcome to the ScriptBasic open source project. I could use some help from a few good C programmers to update extension modules with current release levels of the libs.

John

Jmcbride

  • Guest
Re: Compiling the scriptbasic source package
« Reply #2 on: August 03, 2016, 06:29:26 PM »
Hi John. Where can I download the very latest sources? 

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling the scriptbasic source package
« Reply #3 on: August 03, 2016, 10:35:53 PM »
Are you looking for a Linux or Windows specific distribution?

I have executable versions of Script BASIC 2.2 for most platforms if you don't want to compile the BASIC yourself.
« Last Edit: August 03, 2016, 10:37:56 PM by support »

Jmcbride

  • Guest
Re: Compiling the scriptbasic source package
« Reply #4 on: August 04, 2016, 12:46:29 PM »
I'd love the Linux version binary and the sources too.

Thank you. 

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling the scriptbasic source package
« Reply #5 on: August 04, 2016, 02:01:07 PM »
Okay.

I understand you are primarily looking for a Windows 32 bit distribution but would like a Linux (please specify) set of executables.

Please send me a PM with the best way to get this to you.


Jmcbride

  • Guest
Re: Compiling the scriptbasic source package
« Reply #6 on: August 04, 2016, 04:39:13 PM »
Good day.   No widows got me.  Linux 32 big only. My email is jmcbride@mail-on.us

Thank you

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling the scriptbasic source package
« Reply #7 on: August 05, 2016, 04:10:31 PM »
I have a Script BASIC Ubuntu 32 bit set of binaries I can send you.

FYI: I'm not supporting 32 bit Linux anymore so you're on your own with it.


Jmcbride

  • Guest
Re: Compiling the scriptbasic source package
« Reply #8 on: August 06, 2016, 05:05:19 AM »
Good Day!
yes, I'll take a copy. Shame you dont compile for 32 bit anymore, there are a lot of us out here.

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling the scriptbasic source package
« Reply #9 on: August 09, 2016, 10:54:53 PM »
I said I wasn't supporting 32 bit Linux going forward. There is nothing to stop you from compiling it on any 32 bit platform you choose.

Sorry to see you leave so soon.