Date: Wed, 5 May 2004 00:04:19 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 369 ************************************************** Tuesday 04 May 2004 Number 369 ************************************************** Subjects for today 1 Re: termcap colours : John Poltorak 2 Re: termcap colours : Thomas Dickey 3 Re: OpenOffice : Stefan.Neis at t-online.de 4 Re: OpenOffice : John Poltorak 5 configure: error: libtool configure failed : John Poltorak 6 Re: Building EMACS v20.7 : arnstein.prytz at jcu.edu.au 7 Re: OpenOffice : Dave Yeo" 8 Re: Building EMACS v20.7 : Masaru Nomiya 9 Re: OpenOffice : Stefan.Neis at t-online.de 10 Re: OpenOffice : John Poltorak 11 Patches : John Poltorak 12 Re: Patches : Thomas Dickey 13 Re: Patches : Thomas Dickey 14 Re: OpenOffice : Stefan.Neis at t-online.de 15 Re: Building EMACS v20.7 : John Poltorak 16 Re: Re: Building EMACS v20.7 : John Poltorak 17 Re: OpenOffice : Sebastian Wittmeier" 18 Re: OpenOffice : John Poltorak **= Email 1 ==========================** Date: Mon, 3 May 2004 14:46:45 +0100 From: John Poltorak Subject: Re: termcap colours On Mon, May 03, 2004 at 09:29:23AM -0400, Thomas Dickey wrote: > > How would I go about using the term used by cygwin? > > The console window itself is win32-specific. To set the $TERM value, > you only need an appropriate termcap. You can generate a termcap from > terminfo using ncurses, e.g., > infocmp -Cr cygwin >foo Thanks I'll give that a try. > > I have no real idea what is special about any of the EMX types. Do we need > > any of them. Isn't is possible to use a standard ANSI term on OS/2? > > You "could". But "ansi" applies to a number of different terminal types. > The entries in EMX's termcap.dat don't exactly match the usage from > other systems. Aside from (a few years ago) updating the entries in > ncurses' terminfo.src that refer to "emx", I don't recall anything else > that can be done. When I'm using OS/2, I don't often use the termcap.dat I thought some apps such as emacs or info required the use of a termcap.dat of some sort. I'm still pretty hazy about which apps use termcap and which use terminfo. If TERM=ANSI is defined and ansi appears in both termcap and terminfo, how do I know which is being used and can either be used? In any case aren't they derived from the same source? > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net -- John **= Email 2 ==========================** Date: Mon, 3 May 2004 10:53:03 -0400 (EDT) From: Thomas Dickey Subject: Re: termcap colours On Mon, 3 May 2004, John Poltorak wrote: > On Mon, May 03, 2004 at 09:29:23AM -0400, Thomas Dickey wrote: > > > > How would I go about using the term used by cygwin? > > > > The console window itself is win32-specific. To set the $TERM value, > > you only need an appropriate termcap. You can generate a termcap from > > terminfo using ncurses, e.g., > > infocmp -Cr cygwin >foo > > Thanks I'll give that a try. > > > > > I have no real idea what is special about any of the EMX types. Do we need > > > any of them. Isn't is possible to use a standard ANSI term on OS/2? > > > > You "could". But "ansi" applies to a number of different terminal types. > > The entries in EMX's termcap.dat don't exactly match the usage from > > other systems. Aside from (a few years ago) updating the entries in > > ncurses' terminfo.src that refer to "emx", I don't recall anything else > > that can be done. When I'm using OS/2, I don't often use the termcap.dat > > I thought some apps such as emacs or info required the use of a > termcap.dat of some sort. well, I use vile - and on OS/2, if I want to use anything but the monocrome 24x80 window, that configuration uses terminfo. > I'm still pretty hazy about which apps use termcap and which use terminfo. you can usually do a "strings" on the executable and see if it refers to /etc/termcap, etc. > If TERM=ANSI is defined and ansi appears in both termcap and terminfo, how > do I know which is being used and can either be used? In any case aren't > they derived from the same source? ncurses and slang can read both termcap and terminfo in the same executable, depending on how they're built. Generally only one is used. termcap contains less information than terminfo: it is limited to 1023 bytes (which means that the terminfo entries I wrote for the various shift/control/alt combinations with function keys aren't complete when translated to termcap). It also doesn't represent some complicated color definitions (but OS/2's is simple). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 3 ==========================** Date: Mon, 03 May 2004 19:27:30 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: OpenOffice John Poltorak schrieb: > What I would like to see is a native port which is not > dependent on some > middleware like Odin. Since it's using a GUI toolkit which doesn't support PM (any more), that's something you can forget about.... :-( It won't get better than using either Odin (Windows version) or XFree ("recompiled/ported" Linux version). Regards, Stefan **= Email 4 ==========================** Date: Mon, 3 May 2004 19:08:49 +0100 From: John Poltorak Subject: Re: OpenOffice On Mon, May 03, 2004 at 07:27:30PM +0200, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > > What I would like to see is a native port which is not > > dependent on some > > middleware like Odin. > > Since it's using a GUI toolkit which doesn't support PM (any more), > that's something you can forget about.... :-( Is it the same GUI toolkit that was used in Star Office v5.1? Could it be added back? > It won't get better than using either Odin (Windows version) > or XFree ("recompiled/ported" Linux version). Unless it get ported to wxWindows ;-)... Incidentally could it be built for XFreeOS/2 ? > Regards, > Stefan -- John **= Email 5 ==========================** Date: Mon, 3 May 2004 21:01:57 +0100 From: John Poltorak Subject: configure: error: libtool configure failed When building RECODE:- ftp://ftp.gnu.org/pub/gnu/recode/recode-3.6.tar.gz I get this error:- not updating unwritable cache /dev/null ltconfig: you must specify a host type if you use `--no-verify' Try `ltconfig --help' for more information. configure: error: libtool configure failed I have no idea why libtool is being invoked. How do I tell what is wrong? -- John **= Email 6 ==========================** Date: Tue, 4 May 2004 12:32:22 +1000 From: arnstein.prytz at jcu.edu.au Subject: Re: Building EMACS v20.7 Dear John, > If anyone has a few spare minutes could you try running this batch file > and seeing how far it gets in building EMACS? After making some minor changes to configure.cmd (in order to make patch (GNU patch 2.5) save original files with .orig file name extension), I find that emacs now builds, but does not run. I started with a completely clean emx 0.9d fix 4 environment and used the gcc 2.8.1 compiler included with it to make the executable. I dies after temacs has made a emacs.exe and it tries to get into the leim stuff. Following are excerpts from the output I've captured during the make process. ---------------------------------------------------------------------------- ..... (lots of stuff omitted) --with-bsd-socket : yes --with-xf86sup-pty : yes *** Create src/epaths.h *** *** Create src/config.h *** *** Create src/Makefile *** *** Create lib-src/Makefile *** *** Create leim/Makefile *** *** Create Makefile *** cd lib-src && make make[1]: Entering directory `E:/var/tmp/emacs/emacs-20.7/lib-src' gcc -Zexe -DOS2 -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -g -O -o test-distrib test-distrib.c test-distrib testfile ..... (lots of stuff omitted) Dumping under names emacs and emacs-20.7.1 emxbind 0.9d -- Copyright (c) 1991-1997 by Eberhard Mattes 7 resources in 1 object 506172 pure bytes used make[1]: Leaving directory `E:/var/tmp/emacs/emacs-20.7/src' cd leim && make make[1]: Entering directory `E:/var/tmp/emacs/emacs-20.7/leim' .../src/emacs.exe -batch --no-init-file --no-site-file -l ../lisp/international/titdic-cnv \ --eval '(batch-titdic-convert t)' -dir quail ./CXTERM-DIC Process terminated by SIGSEGV make[1]: *** [quail/CTLau.el] Error 3 make[1]: Leaving directory `E:/var/tmp/emacs/emacs-20.7/leim' make: *** [leim] Error 2 (end of make/compilation) ---------------------------------------------------------------------------- At this point I cannot run emacs.exe successfully. I get the message ---------------------------------------------------------------------------- emacs: X windows are not in use or not initialized ---------------------------------------------------------------------------- The only way to recover is to press Ctrl-Break with the following response ---------------------------------------------------------------------------- No support for stopping a process on this operating system; you can continue or a bort. Auto-save? (y or n) ---------------------------------------------------------------------------- at which point I press n, and that's where I sit. I've reinstalled the sources, started from scratch, played with some of the options but am unable to get a working copy. I am so jealous of you having been successful. Any hints are gratefully accepted. Thank you. Regards, Arnstein. ---------------------------------------------------------------------------- Arnstein Prytz Arnstein.Prytz at jcu.edu.au School of Maths and Physics ph: 61-7-47815183 James Cook University fax: 61-7-47815880 Townsville, Queensland 4811, Australia ---------------------------------------------------------------------------- **= Email 7 ==========================** Date: Mon, 03 May 2004 19:35:03 -0800 From: "Dave Yeo" Subject: Re: OpenOffice On Mon, 3 May 2004 19:08:49 +0100, John Poltorak wrote: >On Mon, May 03, 2004 at 07:27:30PM +0200, Stefan.Neis at t-online.de wrote: >> John Poltorak schrieb: >> >> > What I would like to see is a native port which is not >> > dependent on some >> > middleware like Odin. >> >> Since it's using a GUI toolkit which doesn't support PM (any more), >> that's something you can forget about.... :-( > >Is it the same GUI toolkit that was used in Star Office v5.1? Could it be >added back? IIRC IBM asked Sun to remove all the OS/2 code before open sourcing StarOffice. > >> It won't get better than using either Odin (Windows version) >> or XFree ("recompiled/ported" Linux version). > >Unless it get ported to wxWindows ;-)... > >Incidentally could it be built for XFreeOS/2 ? In theory this would be the easiest way to go. Dave **= Email 8 ==========================** Date: Tue, 04 May 2004 14:07:42 +0900 From: Masaru Nomiya Subject: Re: Building EMACS v20.7 Hello, In the Message; Subject : Building EMACS v20.7 Message-ID : <20040430101219.E85 at warpix.org> Date & Time: Fri, 30 Apr 2004 10:12:19 +0100 [John] == John Poltorak has written: John> cd %tmp% John> wget ftp://ftp.gnu.org/pub/gnu/emacs/emacs-20.7.tar.gz && tar zxf emacs-20.7.tar.gz John> wget ftp://ftp.gnu.org/pub/gnu/emacs/leim-20.7.tar.gz && tar zxf leim-20.7.tar.gz John> wget http://www.asahi-net.or.jp/~ik3a-nsmr/emacs-20.7-KIT1.9.tgz John> cd emacs-20.7 John> chmod +rw -R * John> tar zxf ..\emacs-20.7-KIT1.9.tgz John> echo. John> echo Enter PATCH and if correctly identified confirm by pressing enter John> echo. John> call configure.cmd --with-bsd-socket --with-xf86sup-pty John> SET INCLUDE=%C_INCLUDE_PATH% John> make You have fogotten 1 sentence. SET INCLUDE=%C_INCLUDE_PATH% SET NAME=YOUR FULL NAME ← This one! make Without this. you will get an error as Arnstein did. In the Message; Subject : Re: Building EMACS v20.7 Message-ID : <200405040232.MAA004.06 at goanna.jcu.edu.au> Date & Time: Tue, 4 May 2004 12:32:22 +1000 [Arnsteain] == arnstein.prytz at jcu.edu.au has written: [...] Arnsteain> make[1]: Entering directory `E:/var/tmp/emacs/emacs-20.7/leim' Arnsteain> ../src/emacs.exe -batch --no-init-file --no-site-file -l ../lisp/international/titdic-cnv \ Arnsteain> --eval '(batch-titdic-convert t)' -dir quail ./CXTERM-DIC Arnsteain> Process terminated by SIGSEGV Arnsteain> make[1]: *** [quail/CTLau.el] Error 3 Arnsteain> make[1]: Leaving directory `E:/var/tmp/emacs/emacs-20.7/leim' Arnsteain> make: *** [leim] Error 2 Regards, --- Masaru Nomiya mail-to: nomiya at ttmy.ne.jp "Bill! You married with Computers. Not with Me!" "No..., with money." **= Email 9 ==========================** Date: Tue, 04 May 2004 10:31:23 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: OpenOffice John Poltorak schrieb: > Is it the same GUI toolkit that was used in Star Office > v5.1? Could it be > added back? I think so. Probably with some extensions and additions, though. And AFAIK, even the OS/2 version of the Toolkit used for StarOffice v5.1 is not available anywhere. > > It won't get better than using either Odin (Windows > version) > > or XFree ("recompiled/ported" Linux version). > > Unless it get ported to wxWindows ;-)... Even then, the PM version of wxWindows would require quite some work to offer everything needed/used by OpenOffice. > Incidentally could it be built for XFreeOS/2 ? No idea, what X-Toolkit it is using. If it's e.g. OpenMotif or GTK-2 (as opposed to e.g. lesstif and GTK-1), we'd have to start with "porting" the toolkit to XFreeOS/2 (and we would have a licence issue in the case of OpenMotif). If everything used by OpenOffice is already available, it might be possible to port it to OS/2 within a couple of weeks of working time and a couple of months of compilation time. But I fail to see, what advantage do you see in such a version over the Odin based version that's already available? Regards, Stefan **= Email 10 ==========================** Date: Tue, 4 May 2004 10:34:13 +0100 From: John Poltorak Subject: Re: OpenOffice On Tue, May 04, 2004 at 10:31:23AM +0200, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > > Is it the same GUI toolkit that was used in Star Office > > v5.1? Could it be > > added back? > > I think so. Probably with some extensions and > additions, though. And AFAIK, even the OS/2 > version of the Toolkit used for StarOffice > v5.1 is not available anywhere. I'm sure someone must have a copy somewhere ;-)... Wasn't it developed in Germany? If so, it wouldn't surprise me if someone on this list was involved in working on it at some time. > But I fail to see, what advantage do you see > in such a version over the Odin based version > that's already available? Cost. There is also the question of it really being open source and community supported. Currently we are dependent on the whims of Innotek and how long they may maintain an interest in OS/2. Open Office and Mozilla are two of the most important apps from the open source world, and I think it is important to be able to build both on OS/2. > Regards, > Stefan -- John **= Email 11 ==========================** Date: Tue, 4 May 2004 11:19:05 +0100 From: John Poltorak Subject: Patches Looking at some old patches made by KUR, they seem to have a different format to others I've see. That's probably due to different diff options used. Here is an example:- diff -cbBwr orig/lib/gethostname.c new/lib/gethostname.c *** orig/lib/gethostname.c Mon Sep 26 23:25:26 1994 --- new/lib/gethostname.c Sat Dec 17 00:09:12 1994 *************** *** 22,28 **** #endif #ifdef HAVE_UNAME ! #include #endif /* Put up to LEN chars of the host name into NAME. --- 22,28 ---- #endif #ifdef HAVE_UNAME ! #include #endif /* Put up to LEN chars of the host name into NAME. Can anyone explain any reason for this format? -- John **= Email 12 ==========================** Date: Tue, 4 May 2004 07:32:02 -0400 (EDT) From: Thomas Dickey Subject: Re: Patches On Tue, 4 May 2004, John Poltorak wrote: > > > Looking at some old patches made by KUR, they seem to have a different > format to others I've see. That's probably due to different diff options > used. Here is an example:- That's a context diff (-c option) the friendler version of the original diff formats. It uses more lines than unified diff and is reportedly a little harder to mechanically sync with patch. > diff -cbBwr orig/lib/gethostname.c new/lib/gethostname.c > *** orig/lib/gethostname.c Mon Sep 26 23:25:26 1994 > --- new/lib/gethostname.c Sat Dec 17 00:09:12 1994 > *************** > *** 22,28 **** > #endif > > #ifdef HAVE_UNAME > ! #include > #endif > > /* Put up to LEN chars of the host name into NAME. > --- 22,28 ---- > #endif > > #ifdef HAVE_UNAME > ! #include > #endif > > /* Put up to LEN chars of the host name into NAME. > > > > Can anyone explain any reason for this format? > > > -- > John > > > -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 13 ==========================** Date: Tue, 4 May 2004 07:32:02 -0400 (EDT) From: Thomas Dickey Subject: Re: Patches On Tue, 4 May 2004, John Poltorak wrote: > > > Looking at some old patches made by KUR, they seem to have a different > format to others I've see. That's probably due to different diff options > used. Here is an example:- That's a context diff (-c option) the friendler version of the original diff formats. It uses more lines than unified diff and is reportedly a little harder to mechanically sync with patch. > diff -cbBwr orig/lib/gethostname.c new/lib/gethostname.c > *** orig/lib/gethostname.c Mon Sep 26 23:25:26 1994 > --- new/lib/gethostname.c Sat Dec 17 00:09:12 1994 > *************** > *** 22,28 **** > #endif > > #ifdef HAVE_UNAME > ! #include > #endif > > /* Put up to LEN chars of the host name into NAME. > --- 22,28 ---- > #endif > > #ifdef HAVE_UNAME > ! #include > #endif > > /* Put up to LEN chars of the host name into NAME. > > > > Can anyone explain any reason for this format? > > > -- > John > > > -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 14 ==========================** Date: Tue, 04 May 2004 13:55:05 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: OpenOffice John Poltorak schrieb: > > version of the Toolkit used for StarOffice > > v5.1 is not available anywhere. > > I'm sure someone must have a copy somewhere ;-)... > > Wasn't it developed in Germany? If so, it > wouldn't surprise me if someone > on this list was involved in working on it > at some time. Well, it never was open source ... > There is also the question of it really being open source > and community > supported. Both Odin and OpenOffice _are_ OpenSource, aren't they? > Currently we are dependent on the whims of > Innotek and how long > they may maintain an interest in OS/2. Even for the compiler ... :-( Regards, Stefan **= Email 15 ==========================** Date: Tue, 4 May 2004 13:15:41 +0100 From: John Poltorak Subject: Re: Building EMACS v20.7 On Tue, May 04, 2004 at 12:32:22PM +1000, arnstein.prytz at jcu.edu.au wrote: > Dear John, > > > If anyone has a few spare minutes could you try running this batch file > > and seeing how far it gets in building EMACS? > > After making some minor changes to configure.cmd I wouldn't bother making any changes at all until you know things work. It does ask where patch is you only need to enter its name. > I dies after temacs has made a emacs.exe and it tries to get into the leim > stuff. Following are excerpts from the output I've captured during the make > process. > > ---------------------------------------------------------------------------- > cd lib-src && make > make[1]: Entering directory `E:/var/tmp/emacs/emacs-20.7/lib-src' > gcc -Zexe -DOS2 -D_BSD_SOURCE -DHAVE_CONFIG_H -I. -I../src -g -O -o test-distrib test-distrib.c > test-distrib testfile It seems to start OK. > .... (lots of stuff omitted) > > Dumping under names emacs and emacs-20.7.1 > emxbind 0.9d -- Copyright (c) 1991-1997 by Eberhard Mattes > 7 resources in 1 object > 506172 pure bytes used > make[1]: Leaving directory `E:/var/tmp/emacs/emacs-20.7/src' > cd leim && make > make[1]: Entering directory `E:/var/tmp/emacs/emacs-20.7/leim' > ../src/emacs.exe -batch --no-init-file --no-site-file -l ../lisp/international/titdic-cnv \ > --eval '(batch-titdic-convert t)' -dir quail ./CXTERM-DIC I have the same at this point. > Process terminated by SIGSEGV Does anything show up in POPUPLOG.OS2? It may be related to the toolset you are using, ie EMXRT, SHELL, MAKE etc.. There are so many variables. What EMXREV do you have and which version of make do you have and which shell? > At this point I cannot run emacs.exe successfully. > > I get the message > > ---------------------------------------------------------------------------- > emacs: X windows are not in use or not initialized > ---------------------------------------------------------------------------- Actually, you probably have it built, but the runtime environment is not set. Try creating EMACS.CMD which consists of something like:- SET PATH=c:\tmp\emacs-20.7\src;%path% SET EMACSROOT=c:/tmp/emacs-20.7 SET EMACSLOADPATH=c:/tmp/emacs-20.7/lisp;c:/tmp/emacs-20.7/site-lisp;c:/tmp/emacs-20.7/leim SET NAME=Bilbo Baggins rem c:\tmp\emacs-20.7\src\emacs.exe -nw c:\tmp\emacs-20.7\src\emacs.exe -bg Black -fg Green -cr Blue > I've reinstalled the sources, started from scratch, played with some of the > options but am unable to get a working copy. I am so jealous of you having > been successful. > > Any hints are gratefully accepted. It isn't easy to get it built. It works fine on two machines but not on one where I have set up a standardised build environment. Having said that you may already have a working copy.... > Thank you. > > Regards, Arnstein. > ---------------------------------------------------------------------------- > Arnstein Prytz Arnstein.Prytz at jcu.edu.au > School of Maths and Physics ph: 61-7-47815183 > James Cook University fax: 61-7-47815880 > Townsville, Queensland 4811, Australia > ---------------------------------------------------------------------------- -- John **= Email 16 ==========================** Date: Tue, 4 May 2004 13:18:45 +0100 From: John Poltorak Subject: Re: Re: Building EMACS v20.7 On Tue, May 04, 2004 at 02:07:42PM +0900, Masaru Nomiya wrote: > Hello, > > John> call configure.cmd --with-bsd-socket --with-xf86sup-pty > John> SET INCLUDE=%C_INCLUDE_PATH% > John> make > > You have fogotten 1 sentence. > > SET INCLUDE=%C_INCLUDE_PATH% > SET NAME=YOUR FULL NAME ← This one! > make > > Without this. you will get an error as Arnstein did. I think the %NAME% variable is only required at runtime. > Regards, > > --- > Masaru Nomiya mail-to: nomiya at ttmy.ne.jp > > "Bill! You married with Computers. > Not with Me!" > "No..., with money." -- John **= Email 17 ==========================** Date: Tue, 04 May 2004 15:18:36 +0200 (CEST) From: "Sebastian Wittmeier" Subject: Re: OpenOffice On Tue, 04 May 2004 10:31:23 +0200 (CEST), Stefan.Neis at t-online.de wrote: >No idea, what X-Toolkit it is using. It seems they are using pure X11. And that is perfectly supported on OS/2! Sebastian **= Email 18 ==========================** Date: Tue, 4 May 2004 14:31:09 +0100 From: John Poltorak Subject: Re: OpenOffice On Tue, May 04, 2004 at 03:18:36PM +0200, Sebastian Wittmeier wrote: > On Tue, 04 May 2004 10:31:23 +0200 (CEST), Stefan.Neis at t-online.de > wrote: > > >No idea, what X-Toolkit it is using. > > It seems they are using pure X11. > And that is perfectly supported on OS/2! So what is stopping anyone trying to build it? Now wouldn't EverBlue enable X apps to run under PM? I have no idea how far EverBlue got, but in theory, wouldn't that route provide a path to getting a native PM version without any PM support in the source? > Sebastian -- John