Author Topic: SB CentOS  (Read 89 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 2622
    • ScriptBasic Open Source Project
SB CentOS
« on: April 17, 2019, 08:46:55 PM »
AIR,

I was trying to build ScriptBasic from the cleanup branch and here are the following errors. I have all the dependencies installed.

Code: [Select]
[centos@ip-172-30-0-53 sb-dev-cleanup]$ ./setup
This is unix cwd=/home/centos/sb-dev-cleanup/
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 2483 files in the source tree
there are 114 C source files in the source tree
configuring module cgi
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/cgi.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from cgi.c
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: cgi.c
file: interface.c
determining dependency from extensions/cgi/cgi.c
determining dependency from extensions/cgi/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module cio
This is unix cwd=/home/centos/sb-dev-cleanup/
The module cio is not for unix.
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/cio/interface.c
Processing jamal files creating makefile
configuring module curl
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/curl.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/curl/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module curses
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/curses.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/curses/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module dbg
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/dbg.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from dbg_con.c
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: dbg_con.c
file: interface.c
determining dependency from extensions/dbg/dbg_con.c
determining dependency from extensions/dbg/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module dyc
This is unix cwd=/home/centos/sb-dev-cleanup/
The module dyc is not for unix.
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/dyc/interface.c
Processing jamal files creating makefile
configuring module ftpd
This is unix cwd=/home/centos/sb-dev-cleanup/
The module ftpd is not for unix.
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/ftpd/interface.c
Processing jamal files creating makefile
configuring module hash
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/hash.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/hash/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module ip
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/ip.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
 extracting header from iptools.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
file: iptools.c
determining dependency from extensions/ip/interface.c
determining dependency from extensions/ip/iptools.c
Processing jamal files creating makefile
Module was compiled fine
configuring module json
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/json.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
 extracting header from parson.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
file: parson.c
determining dependency from extensions/json/interface.c
determining dependency from extensions/json/parson.c
Processing jamal files creating makefile
Module was compiled fine
configuring module mt
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/mt.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/mt/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module mxml
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/mxml.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
 extracting header from mxml-attr.c
 extracting header from mxml-entity.c
 extracting header from mxml-file.c
 extracting header from mxml-get.c
 extracting header from mxml-index.c
 extracting header from mxml-node.c
 extracting header from mxml-private.c
 extracting header from mxml-search.c
 extracting header from mxml-set.c
 extracting header from mxml-string.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
file: mxml-attr.c
file: mxml-entity.c
file: mxml-file.c
file: mxml-get.c
file: mxml-index.c
file: mxml-node.c
file: mxml-private.c
file: mxml-search.c
file: mxml-set.c
file: mxml-string.c
determining dependency from extensions/mxml/interface.c
determining dependency from extensions/mxml/mxml-attr.c
determining dependency from extensions/mxml/mxml-entity.c
determining dependency from extensions/mxml/mxml-file.c
determining dependency from extensions/mxml/mxml-get.c
determining dependency from extensions/mxml/mxml-index.c
determining dependency from extensions/mxml/mxml-node.c
determining dependency from extensions/mxml/mxml-private.c
determining dependency from extensions/mxml/mxml-search.c
determining dependency from extensions/mxml/mxml-set.c
determining dependency from extensions/mxml/mxml-string.c
Processing jamal files creating makefile
Module was compiled fine
configuring module mysql
interface.c: In function ‘mys_real_connect’:
interface.c:673:11: error: ‘MYSQL_PORT’ undeclared (first use in this function)
   lPort = MYSQL_PORT;
           ^
interface.c:673:11: note: each undeclared identifier is reported only once for each function it appears in
interface.c: In function ‘mys_config_connect’:
interface.c:780:11: error: ‘MYSQL_PORT’ undeclared (first use in this function)
   lPort = MYSQL_PORT;
           ^
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/mysql/s_interface.o] Error 1
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/mysql/interface.c
Processing jamal files creating makefile
ERROR: The module did not compile
configuring module nt
This is unix cwd=/home/centos/sb-dev-cleanup/
The module nt is not for unix.
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/nt/interface.c
Processing jamal files creating makefile
configuring module odbc
interface.c:12:17: fatal error: sql.h: No such file or directory
 #include <sql.h>
                 ^
compilation terminated.
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/odbc/s_interface.o] Error 1
This is unix cwd=/home/centos/sb-dev-cleanup/
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 sbt
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/sbt.a
ld: cannot find -lscriba
make: *** [/home/centos/sb-dev-cleanup/bin/mod/dll/sbt.so] Error 1
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/sbt/interface.c
Processing jamal files creating makefile
ERROR: SO was not created for some reason.
configuring module sdbg
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/sdbg.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
 extracting header from sdbg_con.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
file: sdbg_con.c
determining dependency from extensions/sdbg/interface.c
determining dependency from extensions/sdbg/sdbg_con.c
Processing jamal files creating makefile
Module was compiled fine
configuring module slre
interface.c: In function ‘finimodu’:
interface.c:135:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for( int x=0; x < ar_match_count; x++){
   ^
interface.c:135:3: note: use option -std=c99 or -std=gnu99 to compile your code
interface.c: In function ‘match’:
interface.c:195:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int x =0; x < ar_match_count; x++) {
     ^
interface.c: In function ‘reset’:
interface.c:264:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for( int x=0; x < ar_match_count; x++){
   ^
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/slre/s_interface.o] Error 1
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
 extracting header from slre.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
file: slre.c
determining dependency from extensions/slre/interface.c
determining dependency from extensions/slre/slre.c
Processing jamal files creating makefile
ERROR: The module did not compile
configuring module sqlite
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/sqlite.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/sqlite/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module t
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/t.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/t/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module trial
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/trial.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/trial/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module ux
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/ux.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/ux/interface.c
Processing jamal files creating makefile
Module was compiled fine
configuring module zlib
ar: creating /home/centos/sb-dev-cleanup/bin/mod/lib/zlib.a
This is unix cwd=/home/centos/sb-dev-cleanup/
executing headerer for the C files
 extracting header from interface.c
creating the module object directory
Creating typical makefile.jam for the module
file: interface.c
determining dependency from extensions/zlib/interface.c
Processing jamal files creating makefile
Module was compiled fine
making compile command file(s)
starting compilation
ar: creating /home/centos/sb-dev-cleanup/bin/lib/lscriba.a
ScriptBasic v2.1
Variation >>STANDARD<< build 1
Magic value 859037495
Node size is 24
Extension interface version is 11
Compilation: Apr 17 2019 20:43:47
mkdir: cannot create directory ‘/home/centos/sb-dev-cleanup/bin/var/httpd’: File exists
ar: creating /home/centos/sb-dev-cleanup/bin/lib/libscriba.a
interface.c: In function ‘mys_real_connect’:
interface.c:673:11: error: ‘MYSQL_PORT’ undeclared (first use in this function)
   lPort = MYSQL_PORT;
           ^
interface.c:673:11: note: each undeclared identifier is reported only once for each function it appears in
interface.c: In function ‘mys_config_connect’:
interface.c:780:11: error: ‘MYSQL_PORT’ undeclared (first use in this function)
   lPort = MYSQL_PORT;
           ^
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/mysql/s_interface.o] Error 1
interface.c:12:17: fatal error: sql.h: No such file or directory
 #include <sql.h>
                 ^
compilation terminated.
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/odbc/s_interface.o] Error 1
ld: cannot find -lscriba
make: *** [/home/centos/sb-dev-cleanup/bin/mod/dll/sbt.so] Error 1
interface.c: In function ‘finimodu’:
interface.c:135:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for( int x=0; x < ar_match_count; x++){
   ^
interface.c:135:3: note: use option -std=c99 or -std=gnu99 to compile your code
interface.c: In function ‘match’:
interface.c:195:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
     for (int x =0; x < ar_match_count; x++) {
     ^
interface.c: In function ‘reset’:
interface.c:264:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for( int x=0; x < ar_match_count; x++){
   ^
make: *** [/home/centos/sb-dev-cleanup/bin/mod/obj/slre/s_interface.o] Error 1
scriba executable OK 
sbhttpd executable OK 
libscriba library OK 
MODULE cgi:      dll OK   lib OK   bas OK 
MODULE curl:     dll OK   lib OK   bas OK 
MODULE curses:   dll OK   lib OK   bas OK 
MODULE dbg:      dll OK   lib OK   bas OK 
MODULE hash:     dll OK   lib OK   bas OK 
MODULE ip:       dll OK   lib OK   bas OK 
MODULE json:     dll OK   lib OK   bas OK 
MODULE mt:       dll OK   lib OK   bas OK 
MODULE mxml:     dll OK   lib OK   bas OK 
MODULE mysql:    dll FAIL lib FAIL bas OK 
MODULE odbc:     dll FAIL lib FAIL bas OK 
MODULE sbt:      dll FAIL lib OK   bas OK 
MODULE sdbg:     dll OK   lib OK   bas OK 
MODULE slre:     dll FAIL lib FAIL bas OK 
MODULE sqlite:   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 zlib:     dll OK   lib OK   bas OK 
[centos@ip-172-30-0-53 sb-dev-cleanup]$
« Last Edit: April 17, 2019, 09:06:42 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 628
Re: SB CentOS
« Reply #1 on: April 18, 2019, 04:11:32 PM »
For MySQL, make sure you have the dev libs installed, and make note of where the header files are placed.

For the "int x=0", you can create the variable before the FOR loop, and then in the loop use "x=0".  Apparently, the version of gcc in CentOS is configured to NOT use C99 by default...

When posting errors, just post the modules that throw errors instead of the entire output.  Easier for me or anyone else to help.

Offline John

  • Forum Support / SB Dev
  • Posts: 2622
    • ScriptBasic Open Source Project
Re: SB CentOS
« Reply #2 on: April 18, 2019, 04:54:57 PM »
I remember the MySQL include issue the last time I did this. The C99 not the default is new. (to me)

Thanks for the guidance and help.