Date: Thu, 6 Feb 2003 02:34:08 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 69 ************************************************** Wednesday 05 February 2003 Number 69 ************************************************** Subjects for today 1 Re: starting again : Maynard" 2 Re: starting again : Maynard" 3 Re: EMX v. P2 headers conflict ? : Marty" 4 Re: starting again : Maynard" 5 Re: EMX v. P2 headers conflict ? : John Poltorak 6 Re: starting again : Dave Saville" 7 Re: EMX v. P2 headers conflict ? : Stefan.Neis at t-online.de 8 Re: starting again : John Poltorak 9 Re: starting again : Maynard" 10 Re: Building WGET : Maynard" 11 Re: starting again : Dave Saville" 12 Re: starting again : Dave Saville" 13 Re: starting again : John Poltorak 14 Re: starting again : John Poltorak 15 Re: Building WGET : Maynard" 16 Re: starting again : Stefan.Neis at t-online.de 17 Re: Building WGET : Patrick Ash 18 Re: starting again : Stefan.Neis at t-online.de 19 Build Testing : Maynard" 20 Re: Building WGET : Henry Sobotka 21 Re: starting again : John Poltorak 22 Re: starting again : Sebastian Wittmeier (ShadoW)" 23 Re: Building WGET : Henry Sobotka 24 Re: starting again : Sebastian Wittmeier (ShadoW)" 25 Re: starting again : Sebastian Wittmeier (ShadoW)" 26 Building WGET : John Poltorak 27 Re: starting again : Stefan.Neis at t-online.de 28 Re: starting again : Sebastian Wittmeier (ShadoW)" 29 Re: starting again : Stefan.Neis at t-online.de 30 Re: Building WGET : Dave Saville" 31 Re: Building WGET : John Poltorak 32 Re: Building WGET : Stefan.Neis at t-online.de 33 Re: starting again : Stefan.Neis at t-online.de 34 Re: Building WGET : John Poltorak 35 Re: Building WGET : John Poltorak 36 Re: Building WGET : John Poltorak 37 Re: Build Testing : Sebastian Wittmeier (ShadoW)" 38 Re: Building WGET : Andreas Buening 39 Re: EMX v. P2 headers conflict ? : Andreas Buening 40 Re: REGEX - please test : Andreas Buening **= Email 1 ==========================** Date: Thu, 06 Feb 2003 06:20:54 -0600 (CST) From: "Maynard" Subject: Re: starting again Dave, >texinfo - failed to ftp the file for some reason I've taken to looking up the required file in build.table and using wget to obtain them into the local archive before starting the build. In part for failed gets by build, but mostly so that I can see the download progress, ensure that it survives carrier drop, etc. -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Thu, 06 Feb 2003 07:08:32 -0600 (CST) From: "Maynard" Subject: Re: starting again John, >Anyone know what return codes WGET provides? And what do I put in a shell >script to act on the code? I couldn't find anything on exit codes for wget. I don't suppose that sh can call it as a function with a binary return value. Another possibility is to test for presence or validity of the archive. -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Thu, 06 Feb 2003 08:46:22 -0500 (EST) From: "Marty" Subject: Re: EMX v. P2 headers conflict ? On Thu, 6 Feb 2003 10:12:26 +0000, John Poltorak wrote: > Where exactly are you looking to find out whether it is set or not? I've been grepping /usr/include. _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Thu, 06 Feb 2003 10:11:09 -0600 (CST) From: "Maynard" Subject: Re: starting again On Thu, 06 Feb 2003 16:51:41 +0100 (CET), Sebastian Wittmeier (ShadoW) wrote: >>wget file || (echo "not successful completion"; exit) >>wget file && (echo "successful completion"; scriptxy file) > >The background of those operators is: >When a programming language computes a truth value >it must check the second operand >of an OR-Expression (||), only when the first one is false (otherwise >the result is true in every case) >of an AND-Expression (&&), only when the first one is true (otherwise >the result is false in every case) Beautiful!! but only if wget (in this case) actually returns a true or false result to the caller. While this capacity may be readily available, the program code would have to take care to exit with a false, or non-zero value, as appropriate; which behavior probably cannot be presumed. Am I missing something important?? -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 5 ==========================** Date: Thu, 6 Feb 2003 10:12:26 +0000 From: John Poltorak Subject: Re: EMX v. P2 headers conflict ? On Wed, Feb 05, 2003 at 11:31:58PM -0500, Marty wrote: > On Wed, 05 Feb 2003 09:30:14 -0500 (EST), Marty wrote: > > > On Wed, 05 Feb 2003 10:45:56 +0100 (CET), Stefan.Neis at t-online.de wrote: > > > > > However, some quick checking reveals that neither Solaris > > > nor Linux do have that function, so it is far less common > > > than I initially though. Somebody able/willing to check > > > for setmode on AIX and/or HP/UX? > > > > I work with AIX 4.3 and 5.1 as well as HP/UX 11. I'll check today. > > Just to follow up, none of these three platforms have a "setmode" in their standard > set of header files. Where exactly are you looking to find out whether it is set or not? -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 6 ==========================** Date: Thu, 06 Feb 2003 11:35:57 +0000 (GMT) From: "Dave Saville" Subject: Re: starting again On Wed, 5 Feb 2003 17:54:40 +0000, John Poltorak wrote: >> ncurses still running - is it worth continuing? > >Yes, defnitely. ncurses - OK make-3.76.1 - OK autoconf-2.50 - help2man warnings, otherwise OK automake-1.4-p5 - Several NTB (nothing to be done for ....) messages, otherwise OK make - gcc -DHAVE_CONFIG_H -I. -I. -I.. -c glob.c make: *** [install-recursive] Error 1 *** cut *** gcc -DHAVE_CONFIG_H -I. -I. -I.. -c fnmatch.c rm -f libglob.a ar cru libglob.a glob.o fnmatch.o echo libglob.a libglob.a make[2]: Entering directory `/unixos2/workdir/make-3.79.1/glob' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/unixos2/workdir/make-3.79.1/glob' make[1]: Leaving directory `/unixos2/workdir/make-3.79.1/glob' cd . \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ e:/bin/sh ./config.status config.status: creating config.h make all-recursive make[1]: Entering directory `/unixos2/workdir/make-3.79.1' Making all in glob make[2]: Entering directory `/unixos2/workdir/make-3.79.1/glob' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/unixos2/workdir/make-3.79.1/glob' Making all in i18n make[2]: Entering directory `/unixos2/workdir/make-3.79.1/i18n' cd .. && automake --gnits --include-deps i18n/Makefile cd .. \ && CONFIG_FILES=i18n/Makefile CONFIG_HEADERS= e:/bin/sh ./config.status config.status: creating i18n/Makefile make[2]: Leaving directory `/unixos2/workdir/make-3.79.1/i18n' make[2]: Entering directory `/unixos2/workdir/make-3.79.1/i18n' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/unixos2/workdir/make-3.79.1/i18n' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/unixos2/workdir/make-3.79.1' make: *** [all-recursive-am] Error 2 So is make OK or not? autoconf - again quite a lot of NTBD but seems OK otherwise gettext - a few NTBD - warnings about inter lib dependencies & shared libs ends, with a recursive make fail preceded by no such fil or dir. e:/usr/bin/install.exe msggrep.exe e:/usr/bin/msggrep.exe e:/usr/bin/install.exe: msggrep.exe: No such file or directory e:/bin/sh ../libtool --mode=install e:/usr/bin/install.exe msginit.exe e:/usr/ bin/msginit.exe e:/usr/bin/install.exe msginit.exe e:/usr/bin/msginit.exe e:/usr/bin/install.exe: msginit.exe: No such file or directory e:/bin/sh ../libtool --mode=install e:/usr/bin/install.exe msguniq.exe e:/usr/ bin/msguniq.exe e:/usr/bin/install.exe msguniq.exe e:/usr/bin/msguniq.exe e:/usr/bin/install.exe: msguniq.exe: No such file or directory **** lot & lots of these **** make[2]: *** [install-binPROGRAMS] Error 1 make[2]: Leaving directory `E:/unixos2/workdir/gettext-0.11.5/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `E:/unixos2/workdir/gettext-0.11.5/src' make: *** [install-recursive] Error 1 texinfo - failed to ftp the file for some reason automake - some NTBD otherwise seems OK Now what ? :-) -- Regards Dave Saville _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 7 ==========================** Date: Thu, 6 Feb 2003 11:49:45 +0100 From: Stefan.Neis at t-online.de Subject: Re: EMX v. P2 headers conflict ? Hi, > > Just to follow up, none of these three platforms have a "setmode" in their standard > > set of header files. > > Where exactly are you looking to find out whether it is set or not? Well, there are three possibilities: 1. "man setmode" 2. "grep setmode /usr/include/* /usr/include/*/*" 3. "nm /usr/lib/*.a | grep setmode" The first one is the easiest one, the last one the most reliable one ... Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 8 ==========================** Date: Thu, 6 Feb 2003 12:19:06 +0000 From: John Poltorak Subject: Re: starting again On Thu, Feb 06, 2003 at 11:35:57AM +0000, Dave Saville wrote: > On Wed, 5 Feb 2003 17:54:40 +0000, John Poltorak wrote: > > >> ncurses still running - is it worth continuing? > > > >Yes, defnitely. > > ncurses - OK > make-3.76.1 - OK > autoconf-2.50 - help2man warnings, otherwise OK I've managed to get help2man working, so may add it in to this process before too long... > automake-1.4-p5 - Several NTB (nothing to be done for ....) messages, > otherwise OK > make - > So is make OK or not? You tell me. What does 'make -v' say? Getting make v3.79.1 built is quite a contorted process and needs simplifying, but it does seem to work in spite of all the error msgs. If you can make any sense of the errors I'd like to tidy it up, but I don't really know what is wrong. > autoconf - again quite a lot of NTBD but seems OK otherwise > gettext - a few NTBD - warnings about inter lib dependencies & shared gettext is quite a big app and I'm not really sure where all the files should be installed. The reason it is included is mainly to provide an INTL lib and so that subsequent programs can be configured with '--without-included-gettext'. > texinfo - failed to ftp the file for some reason I guess it needs to exit if WGET fails. Anyone know what return codes WGET provides? And what do I put in a shell script to act on the code? > automake - some NTBD otherwise seems OK automake shouldn't get built without texinfo... > Now what ? :-) Well now you should have an updated Make, along with autoconf, automake and Perl you ought to be able to build a lot of GNU apps. Personally, I would like to get M4, SED, GREP, and AWK built, but haven't stumbled on the magic formulae yet. If you look through BUILD.TABLE there are quite a lot of apps to try building. Some work and some don't :-)... Try a few out, and see if you can get any working. BISON and INDENT should build without any problem. Others get close, and some just fall flat. If you want to try any new ones just add a new tag and URL to the bottom of the list and see if it can be built. Sometimes it does actually work. Let us know how you get on. > -- > Regards > > Dave Saville > -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 9 ==========================** Date: Thu, 06 Feb 2003 12:27:56 -0600 (CST) From: "Maynard" Subject: Re: starting again On Thu, 6 Feb 2003 17:44:21 +0100, Stefan.Neis at t-online.de wrote: >> the program code would >> have to take care to exit with a false, or non-zero value, as >> appropriate; which behavior probably cannot be presumed. >The point is that wget is a Unix program (and so will be most others >that are relevant for UnixOS2 ;-) ), so it should know that it is supposed >to exit(0) on success and exit(something else) on failure. These statements read the same to me; and demonstrates that (in pascal terms) procedures can be used as functions (providing result which can be evaluated) IFF coded accordingly. As has been noted, attention needs be paid to fact that in this case a success returns zero which is not typically evaluated as 'true' (is it?). I tested 'tar', if the tarfile is invalid or non-existent, tar ..... || [fail] is valid; tar ... && [success] is valid; Regardless of what level of success is returned by wget, if the tarball can't be unpacked, the ux2 build script should fail on this, the relevant, test. Thanks again! -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 10 ==========================** Date: Thu, 06 Feb 2003 12:32:44 -0600 (CST) From: "Maynard" Subject: Re: Building WGET On Thu, 6 Feb 2003 16:58:25 +0000, John Poltorak wrote: >utils.o: Undefined symbol _setsid referenced from text segment >>Anyone know what's missing? from my suse7.3 installation: _setsid has somethign to do with "session id" 'setsid' runs a program in a new session -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 11 ==========================** Date: Thu, 06 Feb 2003 12:44:05 +0000 (GMT) From: "Dave Saville" Subject: Re: starting again On Thu, 6 Feb 2003 12:19:06 +0000, John Poltorak wrote: >> So is make OK or not? > >You tell me. What does 'make -v' say? > GNU Make version 3.79.1, >Getting make v3.79.1 built is quite a contorted process and needs >simplifying, but it does seem to work in spite of all the error msgs. >If you can make any sense of the errors I'd like to tidy it up, but I >don't really know what is wrong. > >> autoconf - again quite a lot of NTBD but seems OK otherwise > >> gettext - a few NTBD - warnings about inter lib dependencies & shared > >gettext is quite a big app and I'm not really sure where all the files >should be installed. The reason it is included is mainly to provide an >INTL lib and so that subsequent programs can be configured with >'--without-included-gettext'. > >> texinfo - failed to ftp the file for some reason > >I guess it needs to exit if WGET fails. > >Anyone know what return codes WGET provides? And what do I put in a shell >script to act on the code? Just had a look in the source for wget 182 and it only seems to use exit(0) and exit(1) although there are a couple of comments that indicate it *might* return other non zero codes in some error cases. Looks like the standard *nix system of zero is OK and not zero isn't. -- Regards Dave Saville _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 12 ==========================** Date: Thu, 06 Feb 2003 12:55:29 +0000 (GMT) From: "Dave Saville" Subject: Re: starting again On Thu, 6 Feb 2003 12:19:06 +0000, John Poltorak wrote: texinfo is now at 4.5 on the site the build.table points to - dated yesterday. Just changed the build.table and trying against 4.5. -- Regards Dave Saville _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 13 ==========================** Date: Thu, 6 Feb 2003 13:17:06 +0000 From: John Poltorak Subject: Re: starting again On Thu, Feb 06, 2003 at 12:55:29PM +0000, Dave Saville wrote: > On Thu, 6 Feb 2003 12:19:06 +0000, John Poltorak wrote: > > texinfo is now at 4.5 on the site the build.table points to - dated > yesterday. Just changed the build.table and trying against 4.5. Thanks for the pointer. I just tried and it works fine here. I think now that I have an uptodate version of it, I will finally have to spend some time getting to grips with INFO... Just wish there was a PM version of it... It seems very cumbersome as far as navigation goes. Is there any way to remap the keys? > > -- > Regards > > Dave Saville > -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 14 ==========================** Date: Thu, 6 Feb 2003 14:01:01 +0000 From: John Poltorak Subject: Re: starting again On Thu, Feb 06, 2003 at 02:45:46PM +0100, Stefan.Neis at t-online.de wrote: > Hi, > > > I think now that I have an uptodate version of it, I will finally have to > > spend some time getting to grips with INFO... > > > > Just wish there was a PM version of it... It seems very cumbersome as far > > as navigation goes. Is there any way to remap the keys? > > The version I'm using over here > (GNU Info, Version 2.14-p1, from texinfo-3.7; some KUR port, IIRC) > supports cursor keys and PgUp/PgDn just fine, which eliminates most > of the navigation problems I have on other platforms. ;-) That may be because of the terminal type you have defined... Mine has just been built with NCURSES so that may be something I need to change to make it more comfortable... At the moment when I press PgDn the program exits. > Regards, > Stefan > > -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 15 ==========================** Date: Thu, 06 Feb 2003 14:07:19 -0600 (CST) From: "Maynard" Subject: Re: Building WGET Applying Patrick's patch, and deleting \unixos2\scripts\pre-conf\wget ... ?? it looks like the build just needs to be told to create .exe ?? Date sorted contents of workdir\wget-1.8.2\src 2-06-03 13:57 141 0 version.o 2-06-03 13:57 0 .libs 2-06-03 13:57 324,275 0 wget Log tails with: installing uk.gmo as /usr/local/share/locale/uk/LC_MESSAGES/wget.mo mkdir /usr/local/share/locale/zh_TW mkdir /usr/local/share/locale/zh_TW/LC_MESSAGES installing zh_TW.gmo as /usr/local/share/locale/zh_TW/LC_MESSAGES/wget.mo if test "wget" = "gettext"; then \ P:/usr/bin/install.exe -m 644 ./Makefile.in.in \ /usr/local/share/gettext/po/Makefile.in.in; \ else \ : ; \ fi make[1]: Leaving directory `P:/unixos2/workdir/wget-1.8.2/po' _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 16 ==========================** Date: Thu, 6 Feb 2003 14:16:34 +0100 From: Stefan.Neis at t-online.de Subject: Re: starting again > >Anyone know what return codes WGET provides? And what do I put in a shell > >script to act on the code? Which shell? For cmd "help if" should give the needed details (note that the implied test of "if errorlevel something" is "greater or equal" not "equals"), for unix-like shells, I don' quite remember how to access the exit status (was it something like "status =`command`"?). Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 17 ==========================** Date: Thu, 06 Feb 2003 14:21:55 +0000 From: Patrick Ash Subject: Re: Building WGET setsid is found in unistd.h, and is defined to be void. wget needs a small workaround since version 1.8.1. The following can be placed into utils.c (following #include ) #ifdef __EMX__ #define setsid() (0) #endif Pat On Thu, 06 Feb 2003 16:58:25 +0000, John Poltorak wrote: > >With all this talk about WGET, I wondered if anyone had tried building >it... > >I know I was able to build a previous version once without needing to do >much to make it work, but now it ends with this:- >utils.o: Undefined symbol _setsid referenced from text segment -- Patrick Ash patash at comcast.net This OS/2 system uptime is 12 days, 04:14 hours and 24 seconds _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 18 ==========================** Date: Thu, 6 Feb 2003 14:45:46 +0100 From: Stefan.Neis at t-online.de Subject: Re: starting again Hi, > I think now that I have an uptodate version of it, I will finally have to > spend some time getting to grips with INFO... > > Just wish there was a PM version of it... It seems very cumbersome as far > as navigation goes. Is there any way to remap the keys? The version I'm using over here (GNU Info, Version 2.14-p1, from texinfo-3.7; some KUR port, IIRC) supports cursor keys and PgUp/PgDn just fine, which eliminates most of the navigation problems I have on other platforms. ;-) Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 19 ==========================** Date: Thu, 06 Feb 2003 14:47:57 -0600 (CST) From: "Maynard" Subject: Build Testing In, for instance, make_distro.cmd .... particularly when dependencies are involved, ... ... call build flex flex --version |grep 2.5.4 && flex --version >..\status\flex.ver flex --version |grep 2.5.4 || echo flex failed >>build.err && exit call build ncurses ... I'm anticipating refinements on this procedure, while being delighted that there is some progress in implementing an ability to test, abort, feedback. Thanks, -- Maynard _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 20 ==========================** Date: Thu, 06 Feb 2003 15:33:59 -0500 From: Henry Sobotka Subject: Re: Building WGET John Poltorak wrote: > > This is a very common problem when building apps, and it would be nice to > come up with a general solution... > > I'm sure that patching some file or other with 'EXEEXT=.exe' will be > sufficient to create the final exectuble properly, but haven't figured > just how, as yet. -Zexe? h~ _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 21 ==========================** Date: Thu, 6 Feb 2003 15:45:48 +0000 From: John Poltorak Subject: Re: starting again On Thu, Feb 06, 2003 at 04:32:23PM +0100, Sebastian Wittmeier (ShadoW) wrote: > On Thu, 6 Feb 2003 14:16:34 +0100, Stefan.Neis at t-online.de wrote: > > >Which shell? For cmd "help if" should give the needed details (note that > >the implied test of "if errorlevel something" is "greater or equal" not > >"equals"), for unix-like shells, I don' quite remember how to access the > >exit status (was it something like "status =`command`"?). > > wget file || (echo "not successful completion"; exit) > wget file && (echo "successful completion"; scriptxy file) Yes, this is what I decided to try, unfortunately I can't get WGET to cooperate properly. If it fails to connect it returns:- 'successful completion' !!!! Arghhhh!!!!! > Sebastian -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 22 ==========================** Date: Thu, 06 Feb 2003 16:32:23 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: starting again On Thu, 6 Feb 2003 14:16:34 +0100, Stefan.Neis at t-online.de wrote: >Which shell? For cmd "help if" should give the needed details (note that >the implied test of "if errorlevel something" is "greater or equal" not >"equals"), for unix-like shells, I don' quite remember how to access the >exit status (was it something like "status =`command`"?). wget file || (echo "not successful completion"; exit) wget file && (echo "successful completion"; scriptxy file) Those operators || and && work on both: cmd and sh (except that cmd needs a '&' instead of the ';' for more than one command). Sebastian _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 23 ==========================** Date: Thu, 06 Feb 2003 16:42:33 -0500 From: Henry Sobotka Subject: Re: Building WGET John Poltorak wrote: > > Doesn't this stop configure working properly? I suppose it could, but it shouldn't if used in the right place, i.e. when linking executables. -Zexe is designed to avoid having to add the .exe extension and lays a zero-length dummy without .exe to keep makefiles happy. h~ _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 24 ==========================** Date: Thu, 06 Feb 2003 16:51:41 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: starting again On Thu, 06 Feb 2003 16:32:23 +0100 (CET), Sebastian Wittmeier (ShadoW) wrote: >wget file || (echo "not successful completion"; exit) >wget file && (echo "successful completion"; scriptxy file) The background of those operators is: When a programming language computes a truth value it must check the second operand of an OR-Expression (||), only when the first one is false (otherwise the result is true in every case) of an AND-Expression (&&), only when the first one is true (otherwise the result is false in every case) Sebastian _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 25 ==========================** Date: Thu, 06 Feb 2003 16:54:08 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: starting again On Thu, 6 Feb 2003 15:45:48 +0000, John Poltorak wrote: >Yes, this is what I decided to try, unfortunately I can't get WGET to >cooperate properly. If it fails to connect it returns:- > >'successful completion' !!!! > >Arghhhh!!!!! oh sorry, it's inverted logic: 0 is False, but means successfull completion, when speaking of return codes Sebastian _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 26 ==========================** Date: Thu, 6 Feb 2003 16:58:25 +0000 From: John Poltorak Subject: Building WGET With all this talk about WGET, I wondered if anyone had tried building it... I know I was able to build a previous version once without needing to do much to make it work, but now it ends with this:- /bin/sh ../libtool gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o cookies.o fnmatch.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o getopt.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o gnu-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o url.o utils.o version.o -lintl -lsocket mkdir .libs gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o cookies.o fnmatch.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o getopt.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o gnu-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o url.o utils.o version.o u:/usr/lib/intl.a -lsocket -Lu:/usr/lib -Lu:/usr/lib utils.o: Undefined symbol _setsid referenced from text segment make[1]: *** [wget] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/wget-1.8.2/src' make: *** [src] Error 2 cd src && make CC='gcc' CPPFLAGS='' DEFS='-DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLOCALEDIR=\"/usr/local/share/locale\"' CFLAGS='-O2 -Wall -Wno-implicit' LDFLAGS='' LIBS='-lintl -lsocket ' prefix='/usr/local' exec_prefix='/usr/local' bindir='/usr/local/bin' infodir='/usr/local/info' mandir='/usr/local/man' manext='1' install.bin make[1]: Entering directory `U:/unixos2/workdir/wget-1.8.2/src' /bin/sh ../libtool gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o cookies.o fnmatch.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o getopt.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o gnu-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o url.o utils.o version.o -lintl -lsocket gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o cookies.o fnmatch.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o getopt.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o gnu-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o url.o utils.o version.o u:/usr/lib/intl.a -lsocket -Lu:/usr/lib -Lu:/usr/lib utils.o: Undefined symbol _setsid referenced from text segment make[1]: *** [wget] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/wget-1.8.2/src' make: *** [install.bin] Error 2 Anyone know what's missing? -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 27 ==========================** Date: Thu, 6 Feb 2003 17:28:04 +0100 From: Stefan.Neis at t-online.de Subject: Re: starting again Hi, > >Which shell? For cmd "help if" should give the needed details (note that > >the implied test of "if errorlevel something" is "greater or equal" not > >"equals"), for unix-like shells, I don' quite remember how to access the > >exit status (was it something like "status =`command`"?). > > wget file || (echo "not successful completion"; exit) > wget file && (echo "successful completion"; scriptxy file) Sure, that allows me to distinguish "exit(0)" from "exit(something else)", which is sufficient in our case. But how do I handle the general case? E.g. I might want to try different remedies based on the exit code (maybe like this: if wget's exit code shows that it could not connect to host, set PROXY variable to a different value and try again, but exit on all other errors). Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 28 ==========================** Date: Thu, 06 Feb 2003 17:37:55 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: starting again On Thu, 06 Feb 2003 10:11:09 -0600 (CST), Maynard wrote: >Beautiful!! but only if wget (in this case) actually returns a true or >false result to the caller. You've missed Dave's answer: >>Anyone know what return codes WGET provides? And what do I put in a shell >>script to act on the code? >Just had a look in the source for wget 182 and it only seems to use >exit(0) and exit(1) although there are a couple of comments that >indicate it *might* return other non zero codes in some error cases. >Looks like the standard *nix system of zero is OK and not zero isn't. Sebastian _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 29 ==========================** Date: Thu, 6 Feb 2003 17:44:21 +0100 From: Stefan.Neis at t-online.de Subject: Re: starting again Hi, > Beautiful!! but only if wget (in this case) actually returns a true or > false result to the caller. > > While this capacity may be readily available, the program code would > have to take care to exit with a false, or non-zero value, as > appropriate; which behavior probably cannot be presumed. > > Am I missing something important?? Sure. The point is that wget is a Unix program (and so will be most others that are relevant for UnixOS2 ;-) ), so it should know that it is supposed to exit(0) on success and exit(something else) on failure. If it fails to follow that standard, authors will (very likely) accept any bug reports most gratefully. Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 30 ==========================** Date: Thu, 06 Feb 2003 18:35:08 +0000 (GMT) From: "Dave Saville" Subject: Re: Building WGET On Thu, 6 Feb 2003 16:58:25 +0000, John Poltorak wrote: > >With all this talk about WGET, I wondered if anyone had tried building >it... > Yes - but I don't seem to get as far as you checking for function prototypes... yes checking for working const... yes checking for inline... inline checking for size_t... yes checking for pid_t... yes checking whether byte ordering is bigendian... configure: error: can not run test program while cross compiling make make: *** No targets specified and no makefile found. Stop. make: Nothing to be done for `install'. ?? -- Regards Dave Saville _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 31 ==========================** Date: Thu, 6 Feb 2003 18:46:15 +0000 From: John Poltorak Subject: Re: Building WGET On Thu, Feb 06, 2003 at 06:35:08PM +0000, Dave Saville wrote: > On Thu, 6 Feb 2003 16:58:25 +0000, John Poltorak wrote: > > > > >With all this talk about WGET, I wondered if anyone had tried building > >it... > > > Yes - but I don't seem to get as far as you > > checking for function prototypes... yes > checking for working const... yes > checking for inline... inline > checking for size_t... yes > checking for pid_t... yes > checking whether byte ordering is bigendian... configure: error: can > not run test program while cross compiling > make > make: *** No targets specified and no makefile found. Stop. > make: Nothing to be done for `install'. > > ?? Oops, sorry about that. You need to delete \unixos2\scripts\pre-conf\wget You have run the provided configure script without recreating it. ISTR that that worked with a previous version. > -- > Regards > > Dave Saville > -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 32 ==========================** Date: Thu, 6 Feb 2003 19:14:49 +0100 From: Stefan.Neis at t-online.de Subject: Re: Building WGET ** Reply to note from John Poltorak Thu, 6 Feb 2003 16:58:25 +0000 > > > With all this talk about WGET, I wondered if anyone had tried building > it... > > I know I was able to build a previous version once without needing to do > much to make it work, but now it ends with this:- > utils.o: Undefined symbol _setsid referenced from text segment > Anyone know what's missing? -lcExt? At least that error looks very familiarly like using Posix/2's headers but not linking against cExt. Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 33 ==========================** Date: Thu, 6 Feb 2003 20:14:26 +0100 From: Stefan.Neis at t-online.de Subject: Re: starting again Hi, > As has been noted, attention needs be paid to fact that in this case a > success returns zero which is not typically evaluated as 'true' (is > it?). Source code for Unix' true: "int main{ exit(0); }". I.e. in unix shell terms (no matter whether its sh, ash, bash, ksh, zsh, or "whatever else"sh), 0 is evaluated as 'true' and anything else is evaluated as 'false'. Everyone realizes that this is strange, but now you know the reason for that decision... ;-) Stefan _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 34 ==========================** Date: Thu, 6 Feb 2003 20:19:33 +0000 From: John Poltorak Subject: Re: Building WGET On Thu, Feb 06, 2003 at 02:07:19PM -0600, Maynard wrote: > Applying Patrick's patch, and deleting \unixos2\scripts\pre-conf\wget ... > > ?? it looks like the build just needs to be told to create .exe ?? Running emxbind on this should do the trick. This is a very common problem when building apps, and it would be nice to come up with a general solution... I'm sure that patching some file or other with 'EXEEXT=.exe' will be sufficient to create the final exectuble properly, but haven't figured just how, as yet. > Date sorted contents of workdir\wget-1.8.2\src > 2-06-03 13:57 141 0 version.o > 2-06-03 13:57 0 .libs > 2-06-03 13:57 324,275 0 wget > -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 35 ==========================** Date: Thu, 6 Feb 2003 20:44:55 +0000 From: John Poltorak Subject: Re: Building WGET On Thu, Feb 06, 2003 at 03:33:59PM -0500, Henry Sobotka wrote: > John Poltorak wrote: > > > > This is a very common problem when building apps, and it would be nice to > > come up with a general solution... > > > > I'm sure that patching some file or other with 'EXEEXT=.exe' will be > > sufficient to create the final exectuble properly, but haven't figured > > just how, as yet. > > -Zexe? Doesn't this stop configure working properly? > h~ -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 36 ==========================** Date: Thu, 6 Feb 2003 21:56:39 +0000 From: John Poltorak Subject: Re: Building WGET On Thu, Feb 06, 2003 at 04:42:33PM -0500, Henry Sobotka wrote: > John Poltorak wrote: > > > > Doesn't this stop configure working properly? > > I suppose it could, but it shouldn't if used in the right place, i.e. > when linking executables. -Zexe is designed to avoid having to add the > .exe extension and lays a zero-length dummy without .exe to keep > makefiles happy. Even if you can find the right place to put -Zexe, you still end up with 'make install' putting the zero-length files into /usr/bin because it has no knowledge of .exe files, and this isn't really what you want. I guess -Zexe may be as good as we can hope for until someone figures out the ideal solution... > h~ -- John _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 37 ==========================** Date: Thu, 06 Feb 2003 23:17:52 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: Build Testing On Thu, 06 Feb 2003 14:47:57 -0600 (CST), Maynard wrote: >call build flex >flex --version |grep 2.5.4 && flex --version >..\status\flex.ver >flex --version |grep 2.5.4 || echo flex failed >>build.err && exit > >call build ncurses better (shorter): call build flex flex --version |grep 2.5.4 || echo flex failed >>build.err && exit flex --version >..\status\flex.ver call build ncurses (or even some solution with tee to avoid the second call to flex --version *g*) Sebastian _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 38 ==========================** Date: Thu, 06 Feb 2003 23:44:44 +0100 From: Andreas Buening Subject: Re: Building WGET Henry Sobotka wrote: > > John Poltorak wrote: > > > > Doesn't this stop configure working properly? > > I suppose it could, but it shouldn't if used in the right place, i.e. > when linking executables. -Zexe is designed to avoid having to add the > .exe extension and lays a zero-length dummy without .exe to keep > makefiles happy. It definitely prevents "make install" from working. And configure might assume that you're crosscompiling (but I'm not sure about that). Bye, Andreas -- One OS to rule them all, One OS to find them, One OS to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 39 ==========================** Date: Thu, 06 Feb 2003 23:45:02 +0100 From: Andreas Buening Subject: Re: EMX v. P2 headers conflict ? Stefan.Neis at t-online.de wrote: > > Hi, > > > > Just to follow up, none of these three platforms have a "setmode" in their standard > > > set of header files. > > > > Where exactly are you looking to find out whether it is set or not? > > Well, there are three possibilities: > 1. "man setmode" > 2. "grep setmode /usr/include/* /usr/include/*/*" > 3. "nm /usr/lib/*.a | grep setmode" Interestingly I used the 4th possibility: I wrote a small autoconf script that did the job. ;-) Bye, Andreas -- One OS to rule them all, One OS to find them, One OS to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 40 ==========================** Date: Thu, 06 Feb 2003 23:45:06 +0100 From: Andreas Buening Subject: Re: REGEX - please test Thomas Hoffmann wrote: > > John, > do not overestimate the size argument. The regex objects of libcext are > below 30k in total. Because you have to link an import lib for load time > binding you will not even save those 30k in total when using a dll. Don't underestimate the dark side! The new GNU regex has already reached the 45 KB code limit (binary, not source code size!). And several GNU programs require the _GNU_ regex (Posix/2 contains BSD regex?). Just 20 of them would waste 1 MB of disk space if you had no dll. > And there are some other reasons to keep away from too much dlls. Yes. Therefore I'd prefer to have regex as a part of a larger dll. [snip] Bye, Andreas -- One OS to rule them all, One OS to find them, One OS to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs