Date: Wed, 14 Apr 2004 00:04:04 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 347 ************************************************** Tuesday 13 April 2004 Number 347 ************************************************** Subjects for today 1 Re: exec : Dave and Natalie" 2 Re: exec : Henry Sobotka 3 checking for working aclocal... missing : John Poltorak 4 Re: INFO files : Illya Vaes 5 INTL.DLL : John Poltorak 6 magic-python : John Poltorak 1 What is ctags? : John Poltorak 7 Re: What is ctags? : Henry Sobotka 8 Re: What is ctags? : Steven Levine" 2 Re: Perl & GNU Autotools : Henry Sobotka 9 Re: exec : Dave and Natalie" 10 Re: exec : Illya Vaes 11 Re: Perl & GNU Autotools : John Poltorak 12 Finding most recent file : John Poltorak 19 Re: exec : Henry Sobotka **= Email 1 ==========================** Date: Mon, 12 Apr 2004 08:46:18 -0800 From: "Dave and Natalie" Subject: Re: exec On Mon, 12 Apr 2004 02:38:26 -0400, Henry Sobotka wrote: >Dave and Natalie wrote: >> >> Playing around with glimpse I realized I don't have exec.exe anywhere. >> Anyone have an idea where to get a copy? > >Bash, pdksh, ash etc. have a builtin exec command. Are you sure that's >not what you're looking for? You'd think so. Here is the error, its the same under bash and ksh and cmd.exe SYS1041: The name exec is not recognized as an internal or external command, operable program or batch file. .... SYS0002: The system cannot find the file specified. system('exec sort -T '/usr/src/glimpse-4.17.4/agrep' '/usr/src/glimpse-4.17.4/agrep/.glimpse_tmpi2' > '/usr/src/glimpse-4.17.4/agrep/.glimpse_tmpo2'') failed at: File=build_in.c, Line=640, Errno=2: No such file or directory The offending code seems to be sprintf(s, "exec %s -T '%s' '%s/%s' > '%s/%s'\n", SYSTEM_SORT, escapesingleqquote(INDEX_DIR, es1), escapesinglequote(INDEX_DIR, es2), I2, escapesinglequote(INDEX_DIR, es3), O2); Dave **= Email 2 ==========================** Date: Mon, 12 Apr 2004 12:14:25 -0400 From: Henry Sobotka Subject: Re: exec Dave and Natalie wrote: > > Here is the error, its the same under bash and ksh and cmd.exe > SYS1041: The name exec is not recognized as an > internal or external command, operable program or batch file. > ... > SYS0002: The system cannot find the file specified. > system('exec sort -T '/usr/src/glimpse-4.17.4/agrep' '/usr/src/glimpse-4.17.4/agrep/.glimpse_tmpi2' > '/usr/src/glimpse-4.17.4/agrep/.glimpse_tmpo2'') failed at: > File=build_in.c, Line=640, Errno=2: No such file or directory > > The offending code seems to be > sprintf(s, "exec %s -T '%s' '%s/%s' > '%s/%s'\n", SYSTEM_SORT, escapesingleqquote(INDEX_DIR, es1), escapesinglequote(INDEX_DIR, es2), I2, escapesinglequote(INDEX_DIR, es3), O2); Just a thought: could it be calling the [bootdrive:]/OS2/sort.exe instead of the gnututil version, and the "no such file" complaint be coming from it rather than exec? h~ **= Email 3 ==========================** Date: Mon, 12 Apr 2004 18:57:18 +0100 From: John Poltorak Subject: checking for working aclocal... missing How can I find out why configure says:- checking for working aclocal... missing whereas to me, it is plainly visible.... Configure does report that the other tools are OK:- checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found and aclocal was build and installed at the same time, so I'm a bit suprised it isn't found. -- John **= Email 4 ==========================** Date: Mon, 12 Apr 2004 21:53:09 CET From: Illya Vaes Subject: Re: INFO files ** Reply to note from "Dave and Natalie" Sun, 11 Apr 2004 10:40:39 -0800 >Tkman looks like it should do the job. Tk/tcl has been ported to OS/2 >Presentation Manager so tkman runs in a window on the desktop. >tkman is quite easy to build, basically edit the top of the makefile. >Unluckily it doesn't like my MANPATH even though it is sopposed to handle >windows manpaths. >Also tk/tcl ver 8.3.5 (from hobbes) is a beta and tkman closes spontaneously. >Don't know if its a problem with tkman or tk/tcl I'll have a look into this but, as my time for this port is (way too) little, can you give any specifics? Doesn't it come up or does it "disappear" after some use? Does it throw up a SYS3175? What do you use it on, how do you start it, etc... Illya Vaes Tcl/Tk OS/2: http://www.vaeshiep.demon.nl/ **= Email 5 ==========================** Date: Mon, 12 Apr 2004 21:20:04 +0100 From: John Poltorak Subject: INTL.DLL I've managed to create an environment where I can reliably build INTL.DLL from gettext 0.10.39 and get other apps to build '--without-internal-gettext' The problem is that my INTL.DLL is 132kB whereas Andreas has produced one in his binary distribution which is only 18kB. How can I tell why they are so different? Also, is such an old version of gettext still usable with newer versions of apps requiring gettext? -- John **= Email 6 ==========================** Date: Mon, 12 Apr 2004 21:40:29 +0100 From: John Poltorak Subject: magic-python Included with FILE (v4.08) there is a python directory in which a README tells me how to set up magic-python. Can someone explain how I might be better off as a result of having magic-python available to me?... -- John **= Email 1 ==========================** Date: Mon, 12 Apr 2004 22:20:16 +0100 From: John Poltorak Subject: What is ctags? If you read this page:- http://ctags.sourceforge.net/whatis.html you will know what ctags is... If you do, can you explain it to me? I've been aware of this utility for quite some time and often see mentions of it in Makefiles, yet I still have no idea about what I can do with this program... Fortunately, I just managed to build the latest version straight from the original source so am able to use it, should I find a need to do so... -- John **= Email 7 ==========================** Date: Mon, 12 Apr 2004 19:37:00 -0400 From: Henry Sobotka Subject: Re: What is ctags? John Poltorak wrote: > > If you read this page:- > > http://ctags.sourceforge.net/whatis.html > > you will know what ctags is... > > If you do, can you explain it to me? I've been aware of this utility for > quite some time and often see mentions of it in Makefiles, yet I still > have no idea about what I can do with this program... Basically you feed it a set of src files (run ctags --help for options), This creates a TAGS file which then makes it easy to navigate through those files with a TAGS-aware editor. For instance, in Emacs, if the cursor is over foo, pressing Alt-. (or selecting Search->Find Tag from the menu) and then Enter will take you to the definition of foo. Before hitting Enter you can also specify a search target other than foo, which is simply the default because of the cursor's position. h~ -- Free software, free minds. **= Email 8 ==========================** Date: Mon, 12 Apr 2004 18:15:31 -0700 From: "Steven Levine" Subject: Re: What is ctags? In <407B281C.135B at axess.com>, on 04/12/04 at 07:37 PM, Henry Sobotka said: >> http://ctags.sourceforge.net/whatis.html >hitting Enter you can also specify a search target other than foo, which >is simply the default because of the cursor's position. FWIW, there's an OS/2 binary build of v5.5 by Alexander Mai at: http://www.lesstif.org/~amai/os2/html/ The source distribution includes an os/2 compatible makefile. It worked fine last time I used it. It appears that configure.in is used only for unix builds. Regards, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.41 #10183 Warp4/FP15/14.093c_W4 www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 2 ==========================** Date: Mon, 12 Apr 2004 19:45:22 -0400 From: Henry Sobotka Subject: Re: Perl & GNU Autotools John Poltorak wrote: > > Which elements of Perl are required to be able to use Autoconf and > friends? > > Can I get away with just perl.exe and perl*.dll ? > > The whole package takes up around 20MB and I don't want to install that > unless I have to. I didn't know autoconf & co. use Perl. With perl.exe and the DLL all you get are the builtin functions. To find out exactly what you need, you can grep the scripts for "use" and "require" statements. If there are none, you're ok. Otherwise you need whatever modules are used or required. Or you can just run autoconf etc. and let any Perl "Can't find..." error messages tell you what you need. h~ -- Free software, free minds. **= Email 9 ==========================** Date: Mon, 12 Apr 2004 19:20:46 -0800 From: "Dave and Natalie" Subject: Re: exec On Mon, 12 Apr 2004 12:14:25 -0400, Henry Sobotka wrote: > >Just a thought: could it be calling the [bootdrive:]/OS2/sort.exe >instead of the gnututil version, and the "no such file" complaint be >coming from it rather than exec? First thing I thought of X:\usr\src\tkman-2.1>which sort f:/usr/bin/sort.exe X:\usr\src\tkman-2.1> Interestingly I tried running tkman with bash and ksh. tkman uses sh to exec wish. I got a similar error with bash and ksh when used as shells. sh tkman did work. Also ksh tkman worked. bash tkman output this [X:\usr\src\tkman-2.1]bash tkman tkman: f:/usr/bin/wish83: No such file or directory tkman: exec: f:/usr/bin/wish83: cannot execute: No such file or directory Of course f:/usr/bin/wish83 tkman does work. So there are problems with exec under OS/2. I guess the simplist is maybe to use cmd.exe instead of exec though I don't know about error passing when done this way Dave **= Email 10 ==========================** Date: Tue, 13 Apr 2004 05:52:56 GMT From: Illya Vaes Subject: Re: exec >[X:\usr\src\tkman-2.1]bash tkman >tkman: f:/usr/bin/wish83: No such file or directory >tkman: exec: f:/usr/bin/wish83: cannot execute: No such file or directory Edit tkman to say .../wish83.exe instead of .../wish83 The file "wish83" doesn't exist, the file "wish83.exe" does. Unix shells (like bash) don't assume (like DOS, WinDOS and OS/2 ones do) that executables will end in .exe (or .com or batch files .cmd / .bat) and just append it. **= Email 11 ==========================** Date: Tue, 13 Apr 2004 10:15:53 +0100 From: John Poltorak Subject: Re: Perl & GNU Autotools On Mon, Apr 12, 2004 at 07:45:22PM -0400, Henry Sobotka wrote: > John Poltorak wrote: > > > > Which elements of Perl are required to be able to use Autoconf and > > friends? > > > > Can I get away with just perl.exe and perl*.dll ? > > > > The whole package takes up around 20MB and I don't want to install that > > unless I have to. > > I didn't know autoconf & co. use Perl. Of the autoconf scripts, they have all now been converted to Perl, apart from autoconf itself. > With perl.exe and the DLL all you > get are the builtin functions. To find out exactly what you need, you > can grep the scripts for "use" and "require" statements. If there are > none, you're ok. You mean like this from autom4te:- ? use Autom4te::C4che; use Autom4te::ChannelDefs; use Autom4te::Channels; use Autom4te::FileUtils; use Autom4te::General; use Autom4te::XFile; use File::Basename; use strict; > h~ > -- > Free software, free minds. -- John **= Email 12 ==========================** Date: Tue, 13 Apr 2004 11:24:48 +0100 From: John Poltorak Subject: Finding most recent file Does anyone know how I can use GNU FIND to find the most recent file in a particular directory? -- John **= Email 19 ==========================** Date: Tue, 13 Apr 2004 00:24:03 -0400 From: Henry Sobotka Subject: Re: exec Dave and Natalie wrote: > > bash tkman output this > [X:\usr\src\tkman-2.1]bash tkman > tkman: f:/usr/bin/wish83: No such file or directory > tkman: exec: f:/usr/bin/wish83: cannot execute: No such file or directory I've encountered that "cannot execute" failure fairly often with bash and never understood it. Since switching shells has always worked, there's little incentive to dig deeper, especially when you want to build something, not debug a shell. h~ -- Free software, free minds.