1. Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 12, 2007
- 514 views
I've uploaded a new unofficial 3.0.2 release for Linux: http://www.rapideuphoria.com/uploads/euphoria.tar It's a compressed .tar file, that you can unpack as usual with: tar -xvz -f euphoria.tar Please test it. If all goes well, I'll soon make a .tar file for FreeBSD, and then I'll officially update the RapidEuphoria Web site with 3.0.2 for Windows/DOS, Linux and FreeBSD. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
2. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Stockton <ict1905-rfs at yahoo.co.uk> Feb 13, 2007
- 496 views
To: Robert Craig I have been trying to compile Euphoria from source on Linux (SUSE10.2 and Mandriva 2007) and found the following problems (in 3.0.1). I have just downloaded the tar for 3.0.2 and a quick check shows the code is unchanged. Problem 1. In be_machine.c "conflicting types for SetTColor" and "conflicting types for SetBColor" Solution: I added function prototypes for SetTColor and SetBColor to "Declared Functions" section in be_machine.c Problem 2. Compiling be_rterror.c gives error "curses.h : no such file or directory". on line 15, plus errors for lines 140,141,142. Solution: I deleted line 15 and lines 139..143 It seems that ncurses is dead but it won't lie down! Problem 3. In be_execute.c, be_machine,c, be_main.c, compile.e complaints that "CLK_TCK is undefined". In /usr/include/time.h CLOCKS_PER_SEC is defined and a comment says that CLK_TCK "is the obsolete POSIX.1-1988 name for the same constant". Solution: I replaced CLK_TCK with CLOCKS_PER_SEC throughout. I am using GCC 4.1.1, it may be different in earlier versions.
3. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 13, 2007
- 515 views
- Last edited Feb 14, 2007
Robert Stockton wrote: > To: Robert Craig > > I have been trying to compile Euphoria from source on Linux (SUSE10.2 and > Mandriva 2007) and found the following problems (in 3.0.1). I have just > downloaded the tar for 3.0.2 and a quick check shows the code is unchanged. > > Problem 1. > > In be_machine.c "conflicting types for SetTColor" and "conflicting types > for SetBColor" > > Solution: > I added function prototypes for SetTColor and SetBColor to "Declared > Functions" > section in be_machine.c > > Problem 2. > > Compiling be_rterror.c gives error "curses.h : no such file or directory". > on line 15, plus errors for lines 140,141,142. > > Solution: > I deleted line 15 and lines 139..143 > > It seems that ncurses is dead but it won't lie down! > > Problem 3. > > In be_execute.c, be_machine,c, be_main.c, compile.e complaints that > "CLK_TCK is undefined". > > In /usr/include/time.h CLOCKS_PER_SEC is defined and a comment says > that CLK_TCK "is the obsolete POSIX.1-1988 name for the same constant". > > Solution: > I replaced CLK_TCK with CLOCKS_PER_SEC throughout. > I am using GCC 4.1.1, it may be different in earlier versions. Thank you very much. I don't see those messages on my system, but I understand what you are saying, and I'll make those changes for 3.0.2 Certainly there is no need to include curses.h anymore, since Euphoria no longer uses ncurses. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
4. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Feb 13, 2007
- 505 views
- Last edited Feb 14, 2007
Robert Craig wrote: > > > Thank you very much. I don't see those messages on my system, > but I understand what you are saying, and > I'll make those changes for 3.0.2 > Certainly there is no need to include curses.h anymore, > since Euphoria no longer uses ncurses. That's odd...I thought I checked those changes in (well, not the ncurses one)... Matt
5. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 14, 2007
- 482 views
Matt Lewis wrote: > Robert Craig wrote: > > Thank you very much. I don't see those messages on my system, > > but I understand what you are saying, and > > I'll make those changes for 3.0.2 > > Certainly there is no need to include curses.h anymore, > > since Euphoria no longer uses ncurses. > > That's odd...I thought I checked those changes in (well, not the ncurses > one)... Sorry. I forgot to do an SVN update of my euphoria\source directory on my machine. I'm still new to this stuff Thanks for your improvements. I've updated now, and picked up your changes to: be_w.c MakeFile (new) global.h makefile.wat (new) be_callc.c be_machine.c be_execute.c etc. Everything looks fine. I'll rebuild/repackage everything for DOS/Windows/Linux, then move on to FreeBSD. To avoid confusion, you might want to hold off on any commits until 3.0.2 is official (in a couple of days). Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
6. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 14, 2007
- 472 views
Robert Stockton wrote: > Problem 1. > > In be_machine.c "conflicting types for SetTColor" and "conflicting types > for SetBColor" > > Solution: > I added function prototypes for SetTColor and SetBColor to "Declared > Functions" > section in be_machine.c Yes, Matt's changes (that I've now updated to) fix that. > Problem 2. > > Compiling be_rterror.c gives error "curses.h : no such file or directory". > on line 15, plus errors for lines 140,141,142. > > Solution: > I deleted line 15 and lines 139..143 > > It seems that ncurses is dead but it won't lie down! OK, I've fixed that now. Thanks. > Problem 3. > > In be_execute.c, be_machine,c, be_main.c, compile.e complaints that > "CLK_TCK is undefined". > > In /usr/include/time.h CLOCKS_PER_SEC is defined and a comment says > that CLK_TCK "is the obsolete POSIX.1-1988 name for the same constant". > > Solution: > I replaced CLK_TCK with CLOCKS_PER_SEC throughout. > I am using GCC 4.1.1, it may be different in earlier versions. As a test, I tried: #include <time.h> main() { printf("CLK_TCK %d\n", CLK_TCK); printf("CLOCKS_PER_SEC %d\n", CLOCKS_PER_SEC); } On my Linux machine, I get: CLK_TCK 100 CLOCKS_PER_SEC 1000000 On FreeBSD, I get: CLK_TCK 128 CLOCKS_PER_SEC 128 I'm reluctant to mess with this right now (in the middle of a release). Maybe by the next release we'll figure out what to do here. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
7. Re: Euphoria 3.0.2 Release Candidate for Linux
- Posted by Robert Craig <rds at RapidEuphoria.com> Feb 14, 2007
- 488 views
Robert Craig wrote: > As a test, I tried: > > #include <time.h> > > main() > { > printf("CLK_TCK %d\n", CLK_TCK); > printf("CLOCKS_PER_SEC %d\n", CLOCKS_PER_SEC); > } > > On my Linux machine, I get: > CLK_TCK 100 > CLOCKS_PER_SEC 1000000 > > On FreeBSD, I get: > CLK_TCK 128 > CLOCKS_PER_SEC 128 > > I'm reluctant to mess with this right now (in the middle of a release). > Maybe by the next release we'll figure out what to do here. OK, I see that Matt has addressed that issue as well in global.h If CLK_TCK is not defined on your system, he defines it as CLOCKS_PER_SEC. That looks like a reasonable fix. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com