From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Wed, 5 Nov 2003 14:15:22 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 232 ************************************************** Tuesday 04 November 2003 Number 232 ************************************************** Subjects for today 1 Re: GNU Make : Andreas Buening 2 Re: Texinfo : Andreas Buening 3 Re: Gcc question : Dave Saville" 4 Re: libtool : Franz Bakan" 5 Re: Gcc question : Stefan Neis 6 Re: libtool : John Poltorak 7 Re: libtool : Franz Bakan" 8 Re: libtool : John Poltorak 9 Re: Building Python : John Poltorak 10 Re: Building Python : Andrew MacIntyre **= Email 1 ==========================** Date: Wed, 05 Nov 2003 00:11:14 +0100 From: Andreas Buening Subject: Re: GNU Make John Poltorak wrote: > > On Tue, Nov 04, 2003 at 08:22:35PM +0100, Andreas Buening wrote: > > John Poltorak wrote: > > > > > > What is the most recent version of GNU Make available for OS/2? > > > > http://unix.os2site.com/sw/pub/binary/make/make-3.81rc1-r2-bin.zip > > Many thanks. > > Are there any changes to the source from the previous release? Just one bugfix. Bye, Andreas **= Email 2 ==========================** Date: Wed, 05 Nov 2003 00:13:34 +0100 From: Andreas Buening Subject: Re: Texinfo John Poltorak wrote: > > On Tue, Nov 04, 2003 at 08:23:03PM +0100, Andreas Buening wrote: > > Stefan Neis wrote: > > > > > > On Tue, 4 Nov 2003, John Poltorak wrote: > > > > [snip] > > > > > > It seems like a handy help system for GNU apps, but I don't think I have > > > > it working correctly - my keyboard has not been mapped as I would have > > > > expected. How is the keyboard binding done? > > > > > > No idea, I never tried to compile it... :-( > > > > If I remember correctly, KUW's texinfo port (3.x) used a switch > > statement to handle special "characters" like PgUp on OS/2. I don't > > know about newer versions. > > I've just tried using v4.1 on a remote Linux system over SSH and PgUp and > PgDn work exactly how you would expect on an OS/2 system. I think in your case ssh does the key mapping, not info. Bye, Andreas **= Email 3 ==========================** Date: Wed, 05 Nov 2003 08:14:03 +0100 (BST) From: "Dave Saville" Subject: Re: Gcc question On Tue, 04 Nov 2003 19:07:38 +0100 (CET), Yuri Dario wrote: >Hi, > >>documentation. All I want to know is: I have fred.c gcc fred.c -o >>fred.exe gives me an OS2 executable. How do I get a DOS executable? > >that's also the dos and winnt executable: under dos it looks for emx.exe as runtime, while under >NT you can run it using the RSX runtime. Oh - so the DOS box needs emx on it too? I can't bind it into one exe then? -- Regards Dave Saville **= Email 4 ==========================** Date: Wed, 05 Nov 2003 09:45:44 +0100 (CET) From: "Franz Bakan" Subject: Re: libtool Hi, >> ../libtool.: ../libtool.[5213]: cannot fork - try again >set emxopt=-h1024 doesn't help >tarball ftp://ftp.mostang.com/pub/sane/sane-backends-1.0.13-pre1.tar.gz >problems with CVS. I get the CVS-Version with this tiny script: REM cvs -d:pserver:anonymous at cvs.alioth.debian.org:/cvsroot/sane login cvs -z3 -d:pserver:anonymous at cvs.alioth.debian.org:/cvsroot/sane co sane-backends If you run this script for the first time you have to remove the 'REM' and enter the login-information as told by the cvs-server. You have to do this only once! After doing this once you can delete or REM out the first line again. Franz **= Email 5 ==========================** Date: Wed, 5 Nov 2003 10:59:58 +0100 (CET) From: Stefan Neis Subject: Re: Gcc question On Wed, 5 Nov 2003, Dave Saville wrote: > Oh - so the DOS box needs emx on it too? I can't bind it into one exe > then? I seem to remember that you can bind it into the exectuable (or that this is even done by default) by using emxbind. Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 6 ==========================** Date: Wed, 5 Nov 2003 11:22:07 +0000 From: John Poltorak Subject: Re: libtool On Wed, Nov 05, 2003 at 09:45:44AM +0100, Franz Bakan wrote: > > >tarball > > ftp://ftp.mostang.com/pub/sane/sane-backends-1.0.13-pre1.tar.gz Thanks for that. I guess v1.0.12 must be fairly stable by now... Does it build quite easily on OS/2? I'm tempted to try it out using UX2BS. > >problems with CVS. > > I get the CVS-Version with this tiny script: > > REM cvs -d:pserver:anonymous at cvs.alioth.debian.org:/cvsroot/sane login > cvs -z3 -d:pserver:anonymous at cvs.alioth.debian.org:/cvsroot/sane co sane-backends > > If you run this script for the first time you have to remove > the 'REM' and enter the login-information as told by the cvs-server. > You have to do this only once! After doing this once you can > delete or REM out the first line again. Thanks. I must make a point of saving this msg among a list of handy tips. > Franz -- John **= Email 7 ==========================** Date: Wed, 05 Nov 2003 11:50:51 +0100 (CET) From: "Franz Bakan" Subject: Re: libtool On Wed, 5 Nov 2003 11:22:07 +0000, John Poltorak wrote: >> ftp://ftp.mostang.com/pub/sane/sane-backends-1.0.13-pre1.tar.gz > >Thanks for that. I guess v1.0.12 must be fairly stable by now... > >Does it build quite easily on OS/2? I'm tempted to try it out using UX2BS. Yes but you need the old libtool from the 1.0.1 'Yuri-build'. Here are my steps that work with ux2bs: Here are the steps: 1. 'copy cp.exe ln.exe' (in /bin) 2. Start UX2BS Shell from Desktop and cd to the directory where you unpacked the sane-backends tree. IMPORTANT: You have put the sane-sources to the same drive where you installed the ux2bs. Then: sh configure 3. Replace the generated sane-backends/libtool with the libtool available from my site ( http://home.tiscalinet.de/fbakan/sane/libtool.zip ). 4. Add -D__ST_MT_ERRNO__ to CPPFLAGS in sane-backends/sanei/Makefile and sane-backends/backend/Makefile (instead of this you could also add CPPFLAGS=-D__ST_MT_ERRNO__ to usr/share/config.site and remove the REM in ux2_env.cmd) 5. Replace ..\libtool with sh ..\libtool in all sane-backends/*/Makefile 6. Add -Zexe to LDFLAGS in sane-backends/frontend/Makefile and sane-backends/tools/Makefile 7. get http://unix.os2site.com/sw/pub/binary/libunixos2/libunixos2-0_1_1-bin.zip and copy the included unixos2.dll to /lib 8. In sane-backends/ directory run make 9. If this all works as expected, you will have libsane.dll in sane-backends/backend/libs and scanimage.exe in sane-backends/frontend Franz **= Email 8 ==========================** Date: Wed, 5 Nov 2003 17:19:50 +0000 From: John Poltorak Subject: Re: libtool On Wed, Nov 05, 2003 at 11:50:51AM +0100, Franz Bakan wrote: > On Wed, 5 Nov 2003 11:22:07 +0000, John Poltorak wrote: > > >> ftp://ftp.mostang.com/pub/sane/sane-backends-1.0.13-pre1.tar.gz > > > >Thanks for that. I guess v1.0.12 must be fairly stable by now... > > > >Does it build quite easily on OS/2? I'm tempted to try it out using UX2BS. > > Yes but you need the old libtool from the 1.0.1 'Yuri-build'. Any idea why the self generated libtool doesn't work properly? > Here are my steps that work with ux2bs: My intention is to get the whole thing to build by running:- build sane and it gets quite a long way. Hopefully, I can get the errors ironed out... > > Here are the steps: > > 1. 'copy cp.exe ln.exe' (in /bin) > > 2. Start UX2BS Shell from Desktop and cd to the directory where > you unpacked the sane-backends tree. IMPORTANT: You have put the > sane-sources to the same drive where you installed the ux2bs. > Then: > > sh configure Is the supplied configure script OK or would it be better to run autoconf first? > 3. Replace the generated sane-backends/libtool with the libtool available > from my site ( http://home.tiscalinet.de/fbakan/sane/libtool.zip ). > > 4. Add > > -D__ST_MT_ERRNO__ > > to CPPFLAGS in sane-backends/sanei/Makefile > and sane-backends/backend/Makefile > > (instead of this you could also add > CPPFLAGS=-D__ST_MT_ERRNO__ > to usr/share/config.site and remove the REM in > ux2_env.cmd) Changing config.site could cause all sorts of unforeseen problems for other programs so I suggest creating \unixos2\scripts\pre-process\sane containing:- export CPPFLAGS=-D__ST_MT_ERRNO__ > 5. Replace > > ..\libtool > > with > > sh ..\libtool > > in all sane-backends/*/Makefile This is being run through a shell script so should work as it is, shouldn't it? > 6. Add > > -Zexe > > to LDFLAGS in sane-backends/frontend/Makefile and > sane-backends/tools/Makefile I guess I can set LDFLAGS in the entry for SANE in build.table... > 7. get > > http://unix.os2site.com/sw/pub/binary/libunixos2/libunixos2-0_1_1-bin.zip > > and copy the included unixos2.dll to /lib I'm not really sure why this is required. > 8. In sane-backends/ directory run > > make > > 9. If this all works as expected, you will have libsane.dll in > sane-backends/backend/libs > and scanimage.exe in > sane-backends/frontend Not yet... I see a liblib.a but get this error:- mkdir /usr/local/etc/sane.d installing libsane-abaton.la in /usr/local/lib/sane/libsane-abaton.la... libtool: install: `libsane-abaton.la' is not a valid libtool archive Try `libtool --help --mode=install' for more information. make[1]: *** [install] Error 1 > Franz -- John **= Email 9 ==========================** Date: Wed, 5 Nov 2003 18:12:22 +0000 From: John Poltorak Subject: Re: Building Python On Wed, Nov 05, 2003 at 11:49:27PM +1100, Andrew MacIntyre wrote: > On Thu, 30 Oct 2003, John Poltorak wrote: > > > > tar zxf Python-2.3.2.tar.gz > > > cd Python-2.3.2/PC/os2emx > > > make > > > > > > Hey, it worked! > > > > What I've notice is that the Makefile in the source package is slightly > > different. Should I use that one instead? > > The version in the sourceball has all the optional stuff turned off, as it > doesn't gracefully handle missing bits. The Makefile in the "patches" > archive is what I used to create the binary package, which has all of the > optional items (except Tkinter) enabled. Is there any way of overriding LIB_DIR? And can I install Python by running 'make install'? I didn't see any way to install it. > -- > Andrew I MacIntyre "These thoughts are mine alone..." > E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 > andymac at pcug.org.au (alt) | Belconnen ACT 2616 > Web: http://www.andymac.org/ | Australia -- John **= Email 10 ==========================** Date: Wed, 5 Nov 2003 23:49:27 +1100 (EST) From: Andrew MacIntyre Subject: Re: Building Python On Thu, 30 Oct 2003, John Poltorak wrote: > > tar zxf Python-2.3.2.tar.gz > > cd Python-2.3.2/PC/os2emx > > make > > > Hey, it worked! > > What I've notice is that the Makefile in the source package is slightly > different. Should I use that one instead? The version in the sourceball has all the optional stuff turned off, as it doesn't gracefully handle missing bits. The Makefile in the "patches" archive is what I used to create the binary package, which has all of the optional items (except Tkinter) enabled. I've not yet had time to see whether Illya Vaes' TclTk 8.3.5 package is up to getting Tkinter working. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia