Author Topic: Script Basic on Mac OS X  (Read 15646 times)

tiger

  • Guest
Script Basic on Mac OS X
« on: March 16, 2008, 03:17:33 PM »
Hello.  Has anybody been able to get Script Basic to compile on Mac OS X?  I've downloaded the source code for version 2.1 and have tried to run "setup.pl."  However, one of the messages I get is scriba executable failed.  What do I have to do to get Script Basic to compile and work on Mac OS X?
Thanks.

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Script Basic on Mac OS X
« Reply #1 on: March 16, 2008, 08:52:37 PM »
It would be great if you could post a link to a redirected compile run output. (stdout/stderr)

This will give us a better idea what might be going wrong.


John

tiger

  • Guest
the output
« Reply #2 on: March 16, 2008, 09:19:15 PM »
Quote from: "support"
It would be great if you could post a link to a redirected compile run output. (stdout/stderr)

This will give us a better idea what might be going wrong.


John


A link to the output can be found here.

verhas

  • Guest
compile script output
« Reply #3 on: March 17, 2008, 01:54:45 AM »
First of all I can see something strange that has nothing to do with the setup.pl I wrote:



>>> /usr/bin/CD: line 4: builtin: CD: not a shell builtin



what is this, and where did it come from?



>>>

In file included from httpd.c:227:

httpd.h:112: error: syntax error before ‘port_t’

<<<



probably darwin has slightly different header files that other Unices. The other error messages following this one may come from this one. Event hought his only affects httpd.c which is not needed for the command line version of ScriptBasic. Even thought the generated make file does not finish because it can not generate the sbhttpd executable lacking httpd.o.



Check how to define the type port_t and define it with some OS specific conditional compilation directive before its use.



Peter

tiger

  • Guest
got the scriba executable working
« Reply #4 on: March 17, 2008, 10:04:55 AM »
I got the scriba executable compiled by adding the --unix option.
perl setup.pl --unix
perl setup.pl --install --unix
./install.sh
I haven't tested it that much yet though.

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Script Basic on Mac OS X
« Reply #5 on: March 17, 2008, 12:41:04 PM »
Tiger,

Were you able to get all the extension modules and sbhttpd compiled as well? (no error compile run)

After you do some testing, would you be willing to share your binaries? I have been waiting for a Mac user to come along and compile the latest code base.

Let me know if you get GTK-server working with ScriptBasic if GUI programming is part of the plan.


John

tiger

  • Guest
not all of the modules compiled.
« Reply #6 on: March 17, 2008, 01:56:55 PM »
Quote from: "support"
Tiger,

Were you able to get all the extension modules and sbhttpd compiled as well? (no error compile run)

After you do some testing, would you be willing to share your binaries? I have been waiting for a Mac user to come along and compile the latest code base.

Let me know if you get GTK-server working with ScriptBasic if GUI programming is part of the plan.


John

Not all of the modules compiled.  I noticed in some of the compiler output that ld gave errors about the -shared switch being an unknown option.  The following modules failed:
the sbhttpd executable
libscriba library
the bdb module
the curses module
the mysql module
the xml module
psql

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Script Basic on Mac OS X
« Reply #7 on: March 17, 2008, 02:23:53 PM »
Quote

Not all of the modules compiled. I noticed in some of the compiler output that ld gave errors about the -shared switch being an unknown option. The following modules failed:
the sbhttpd executable
libscriba library
the bdb module
the curses module
the mysql module
the xml module
psql


Are you still having issues with the 'port_t' reference?

The PostgreSQL module is a tricky one to compile as the extension module was written by one of Peter's students. I was able to contact him and he made the changes needed to compile with the PostgreSQL libraries under CentOS.

Do you have the MySQL dev libs installed?

Maybe your missing the XML, Berkeley DB and curses dependencies as well.

Please post the sections of the compile run your still having issues with. Be sure to include the final OK/Failed report at the end. (prizes for a clean compile will not be awarded without proof.  8)  )

John

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Script Basic on Mac OS X
« Reply #8 on: March 17, 2008, 08:40:22 PM »
Quote

I noticed in some of the compiler output that ld gave errors about the -shared switch being an unknown option.


You may want to check your 'ld' options as -shared may have been depreciated.


John