OS/2, eCS & ArcaOS - Technical > Programming

building Fast Editor Lite

(1/2) > >>

Meeko:
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: ---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

--- End code ---

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: ---..\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

--- End code ---

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

Next error:

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

--- End code ---

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:
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

Meeko:
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: ---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

--- End code ---

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:
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:
Looking at the binaries, the porter used VAC or OpenWatcom. If OW then he used an old version, perhaps plain old Watcom.

Navigation

[0] Message Index

[#] Next page

Go to full version