Author Topic: building Fast Editor Lite  (Read 8037 times)

Meeko

  • Guest
building Fast Editor Lite
« on: March 22, 2015, 10:29:13 pm »
I wanted to try some text editors other than E/EPM and vi clones. Fast Edit Lite seems to come in source only. It is on Hobbes at /pub/os2/apps/editors/fed0231s.zip although I actually got it somewhere else. There are no build instructions nor an explicit list of dependencies.

I lost the first error message but I overcame it by downloading /pub/os2/dev/unix/libregex-0_12.zip and adding its regex.h to my include directory.

Next error:
Code: [Select]
Build PCRE using EMX mode
..\source\bsearch.cpp
In file included from ../source/bsearch.cpp:14:
../include/_regex.h:2:28: xregex.h: No such file or directory
In file included from ../include/_search.h:12,
                 from ../source/bsearch.cpp:15:
../include/_regex.h:2:28: xregex.h: No such file or directory
In file included from ../source/bsearch.cpp:15:
../include/_search.h:77: parse error before `[' token
../include/_search.h:79: 'regex_t' is used as a type, but is not defined as a
   type.
make: *** [bsearch.obj] Error 1

I overcame it with these two files
http://www.opensource.apple.com/source/gcc/gcc-5484/include/xregex.h?txt
https://opensource.apple.com/source/gcc/gcc-5666.3/include/xregex2.h?txt
although they may not have been the ideal versions to use.

Next error:
Code: [Select]
..\source\parser.cpp
..\source\pipe.cpp
..\source\pmclip.cpp
..\source\profile.cpp
..\source\rx.cpp
..\source\search.cpp
..\source\sort.cpp
..\source\stddlg.cpp
..\source\vio.cpp
make: [common.lib] Error 1 (ignored)
common.lib
..\source\clip.cpp
clip.exe
ld: No such file or directory for libiberty.a
make: *** [clip.exe] Error 1

I had iberty* files, so I tried copying them to libiberty* filenames. Got past that error.

Next error:
Code: [Select]
Build PCRE using EMX mode
clip.exe
ld: No such file or directory for rexx.a
make: *** [clip.exe] Error 1

From the makefile it looks like this should have been built within fed's pcre package. There is no applicable r*.* in that directory. I also did a grep -i rexx on pcre/*.c and pcre/*.h but found nothing. The only thing I found that I could download was Regina REXX which provides a rexx.h. It doesn't seem like fed would have been made to require Regina when OS/2 already has REXX and fed wasn't made to be cross-platform. If they wanted to use Regina anyway, fine -- but they should have documented it.

How can I get past this rexx.a error?


Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: building Fast Editor Lite
« Reply #1 on: March 23, 2015, 12:38:41 am »
What environment are you using, EMX or kLIBC? Rexx.lib is part of the toolkit which I believe you don't have. it looks like the porter had a specialized EMX environment which might be hard to duplicate. Perhaps try using the OpenWatcom makefile as OW includes rexx.lib. openwatcom.org.  Though it still doesn't look easy to build
« Last Edit: March 23, 2015, 12:40:18 am by Dave Yeo »

Meeko

  • Guest
Re: building Fast Editor Lite
« Reply #2 on: March 23, 2015, 01:57:56 am »
I used emx to be closer to the original build environment. I remember trying to compile some early to mid 1990s *nix sources in Linux with gcc 4.x and the results I got. One compiled but nothing actually worked. I gave up on the other.

I got nowhere at all with Watcom.
Code: [Select]
makefile(31): Error(E23): Extensions reversed in implicit rule
makefile(35): Error(E23): Extensions reversed in implicit rule
makefile(39): Error(E23): Extensions reversed in implicit rule
Error(E02): Make execution terminated

After a Google search of this error message, I suspect the original programmer(s) never actually tried to build on Watcom. Not knowing wmake, I can't debug or rewrite the makefile. It looks like OW is not being worked on any more, so I doubt it is worth investing a lot of time in learning this toolchain.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: building Fast Editor Lite
« Reply #3 on: March 23, 2015, 02:15:07 am »
I played around a bit but it seems that there is a lot of the environment missing, eg it looks like it should be using -Zomf and yet not. Eventually I ran the included binary and decided it wasn't all that interesting.
if you look in obj in the freshly unzipped source you'll see the binaries

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: building Fast Editor Lite
« Reply #4 on: March 23, 2015, 02:29:57 am »
Looking at the binaries, the porter used VAC or OpenWatcom. If OW then he used an old version, perhaps plain old Watcom.

walking_x

  • Full Member
  • ***
  • Posts: 101
  • Karma: +0/-0
    • View Profile
Re: building Fast Editor Lite
« Reply #5 on: March 23, 2015, 03:02:19 pm »
I builded it ages ago, now looking how:
* GNU make! NOT wmake!
* I used VAC 3.6.5 build. It was broken a bit (or just incompatible with my version - there is no .rsp file for ilib).
* tried it now with OW 1.7 - everything is fine (with gnu make, of course)

Andy Willis

  • Sr. Member
  • ****
  • Posts: 292
  • Karma: +7/-0
    • View Profile
Re: building Fast Editor Lite
« Reply #6 on: March 23, 2015, 03:37:53 pm »
Built with make worked as stated above... I am using some OW1.9 (not sure if it is one I built or installed now).  Built fine, the only warning:
..\source\collect.cpp(101): Warning! W919: col(12) delete of a pointer to void

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: building Fast Editor Lite
« Reply #7 on: March 24, 2015, 07:36:38 am »
I had to change %MAKESHELL% to cmd.exe and then it built fine with OW using make.