Date: Sat, 8 Jan 2005 00:04:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 495 ************************************************** Friday 07 January 2005 Number 495 ************************************************** Subjects for today 1 Re: openssl : Stefan.Neis at t-online.de 2 Webmin : John Poltorak 3 chown() in Perl : John Poltorak 4 Re: chown() in Perl : Lyn St George" 5 Re: Webmin : Lyn St George" 6 Re: chown() in Perl : Stefan.Neis at t-online.de 7 Re: Webmin : Richard Steiner 8 Re: Webmin : John Poltorak 9 Re: Webmin : John Poltorak 10 Re: openssl : Yuri Dario" 11 Re: Webmin : Richard Steiner 12 Re: Webmin : Lyn St George" 13 Re: Webmin : John Poltorak 14 Re: Webmin : John Poltorak 15 Re: Postgres admin : lsunley at mb.sympatico.ca 16 Lowercase variable names : John Poltorak 17 Subversion v1.1.2 : John Poltorak 18 Problem running Autoconf : John Poltorak 19 APR : John Poltorak 20 Specific features of OS/2 Perl port : John Poltorak **= Email 1 ==========================** Date: Thu, 06 Jan 2005 14:42:07 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: openssl John Poltorak schrieb: > > Looks like your mail got totally garbled, doesn't it? > > Yes - that's the second time this has happened in the > last two days... Actually, the third time. Your attempt at resending the other garbled mail ended up being just as garbled as the original mail as far as I could see with a quick glance... > I've just tried building v0.9.7e using Posix/2 and get > this error:- > > > tmp_dll\c_all.obj(c_all.obj) : error L2029: > 'ENGINE_setup_bsd_cryptodev' : unresolved external Yes, that's Posix/2 partly tricking the package into believing it's being compiled on a *BSD system - IIRC, the code refers some BSD-specific symbol but the Makefile doesn't compile the source file containing that function for OS/2 or similar. > Without Posix/2 there are errors related to > str[n]casecmp. Maybe a bug sneaked into e_os.h or it doesn't get included in all files... Regards, Stefan **= Email 2 ==========================** Date: Thu, 6 Jan 2005 13:44:06 +0000 From: John Poltorak Subject: Webmin I've just built and installed a minimal version of webmin using this tarball:- http://prdownloads.sourceforge.net/webadmin/webmin-1.170-minimal.tar.gz It's only around 1MB but provides a basic skeleton for managing a system using a browser. This minimal version does not attempt to cater for every brand and version of Unix ever invented so it is well suited to OS/2 since individual modules can be added as and when required - assuming someone can put them together. This could be a really great tool for managing a Unix-like environment on OS/2. -- John **= Email 3 ==========================** Date: Thu, 6 Jan 2005 13:57:44 +0000 From: John Poltorak Subject: chown() in Perl Is there a way to implement chown() in Perl? Or is it already implemented? -- John **= Email 4 ==========================** Date: Thu, 06 Jan 2005 14:25:48 +0000 (GMT) From: "Lyn St George" Subject: Re: chown() in Perl On Thu, 6 Jan 2005 13:57:44 +0000, John Poltorak wrote: >Is there a way to implement chown() in Perl? Or is it already implemented? I do it like this (copied from my notes for perl 5.8.0): In os2/os2ish.h, added this ('chown' taken from win32.h): --------- #define HAS_GETPWENT #define HAS_CRYPT #define HAS_CHOWN extern int chown(const char *p, uid_t o, gid_t g); -------- and in os2/os2.c (from win32.c) ------- int chown(const char *path, uid_t owner, gid_t group) { /* XXX noop */ return 0; } ---------- Though I recall some discussion with Ilya Z, who disliked this method - don't recall the details now. It works for me for any perl app using 'chown'. >-- >John - Lyn **= Email 5 ==========================** Date: Thu, 06 Jan 2005 14:38:36 +0000 (GMT) From: "Lyn St George" Subject: Re: Webmin On Thu, 6 Jan 2005 13:44:06 +0000, John Poltorak wrote: > >I've just built and installed a minimal version of webmin using this >tarball:- > >http://prdownloads.sourceforge.net/webadmin/webmin-1.170-minimal.tar.gz > >It's only around 1MB but provides a basic skeleton for managing a system >using a browser. This minimal version does not attempt to cater for every >brand and version of Unix ever invented so it is well suited to OS/2 since >individual modules can be added as and when required - assuming someone >can put them together. This could be a really great tool for managing a >Unix-like environment on OS/2. Webmin is the best thing since the sun got up. I use a 'custom themed' version for my webhosting business, along with some custom built modules. Eg, there is one for users to configure their email: it uses Postfix, VM-pop3d, Courier IMAP, amavisd-new, spam assassin, clamav. This allows them to create/delete email boxes (or aliases and 'forwards'), change passwords, setup spamassassin scores globally or per user-box, direct spam to either a special spam email box or the bitbucket, force or prevent either spam or virus checking, setup black and white lists, etc. There are others to build virtual servers, set up hosting packages, and the like. I used to be a fan of the CLI, and regarded automated or GUI tools as 'cheating'. No longer. Webmin takes the pain and the errors out of so many things. I'm supposed to have a demo of this custom webmin on my https://demo.zolotek.net:10055, but it's recently been reinstalled and not yet 'defanged' to make it safe against passing toerags. I'll fix that up soon. >-- >John > > > > - Lyn **= Email 6 ==========================** Date: Thu, 06 Jan 2005 15:53:29 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: chown() in Perl Lyn St George schrieb: > int > chown(const char *path, uid_t owner, gid_t group) > { > /* XXX noop */ > return 0; > } > ---------- > > Though I recall some discussion with Ilya Z, who disliked > this > method - don't recall the details now. It works for me > for any > perl app using 'chown'. Maybe because it's not modifying ACL's in the way one naively might expect? I have zero experience in that respect, but I suppose, this might be a real problem for HPFS386? Regards, Stefan **= Email 7 ==========================** Date: Thu, 6 Jan 2005 10:12:46 -0500 From: Richard Steiner Subject: Re: Webmin Quoting John Poltorak : > I've just built and installed a minimal version of webmin... I use Webmin all the time to admin my Linux boxes, and I think it's a wonderful tool. If it could be tailored to work in an OS/2 (or eCS) environment, that would be a very nice thing. I'd love to see it as a standard feature in eCS someday. -- -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Smyrna, GA USA Written online using VISI's fancy Horde interface! The Theorem Theorem: If If, Then Then. **= Email 8 ==========================** Date: Thu, 6 Jan 2005 15:31:04 +0000 From: John Poltorak Subject: Re: Webmin On Thu, Jan 06, 2005 at 02:38:36PM +0000, Lyn St George wrote: > On Thu, 6 Jan 2005 13:44:06 +0000, John Poltorak wrote: > > > > >I've just built and installed a minimal version of webmin using this > >tarball:- > > > >http://prdownloads.sourceforge.net/webadmin/webmin-1.170-minimal.tar.gz > > > >It's only around 1MB but provides a basic skeleton for managing a system > >using a browser. This minimal version does not attempt to cater for every > >brand and version of Unix ever invented so it is well suited to OS/2 since > >individual modules can be added as and when required - assuming someone > >can put them together. This could be a really great tool for managing a > >Unix-like environment on OS/2. > > Webmin is the best thing since the sun got up. I guess it could be if you know your way round it... > I use a 'custom themed' version for my webhosting business, along > with some custom built modules. Speaking of themes... I tried to install a them into the minimal version but couldn't work where all the files went. > Eg, there is one for users to configure > their email: it uses Postfix, VM-pop3d, Courier IMAP, amavisd-new, > spam assassin, clamav. This allows them to create/delete email > boxes (or aliases and 'forwards'), change passwords, setup > spamassassin scores globally or per user-box, direct spam to > either a special spam email box or the bitbucket, force or prevent > either spam or virus checking, setup black and white lists, etc. > > There are others to build virtual servers, set up hosting packages, > and the like. It would be great to have a few modules for OS/2 programs, but I wouldn't have a clue about putting one together. What would be involved in creating an Apache module for OS/2? Being able to install software on OS/2 via Webmin would be great too. The way it handles RPM on Redhat is great. > I used to be a fan of the CLI, and regarded automated or GUI tools > as 'cheating'. No longer. Webmin takes the pain and the errors out > of so many things. CLI is great when you know what you are doing, but when you don't it can be a really PITA. > I'm supposed to have a demo of this custom webmin on my > https://demo.zolotek.net:10055, but it's recently been reinstalled and not > yet 'defanged' to make it safe against passing toerags. I'll fix that > up soon. Just tried it but it's not much use without Username/Password ;-)... > - > Lyn -- John **= Email 9 ==========================** Date: Thu, 6 Jan 2005 15:33:17 +0000 From: John Poltorak Subject: Re: Webmin On Thu, Jan 06, 2005 at 10:12:46AM -0500, Richard Steiner wrote: > Quoting John Poltorak : > > > I've just built and installed a minimal version of webmin... > > I use Webmin all the time to admin my Linux boxes, and I think it's a wonderful > tool. If it could be tailored to work in an OS/2 (or eCS) environment, that > would be a very nice thing. I'd love to see it as a standard feature in eCS > someday. It's not going to happen by magic - it needs a few people to get it working and make it usable. > -- > -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Smyrna, GA USA > Written online using VISI's fancy Horde interface! > The Theorem Theorem: If If, Then Then. > -- John **= Email 10 ==========================** Date: Thu, 06 Jan 2005 17:03:28 +0100 (CET) From: "Yuri Dario" Subject: Re: openssl Hi, seems like messages with attachments are rejected without notice. so I repost only the diff files for gcc335: for utils\mkdef.pl --- mkdef.pl0 Tue May 11 14:46:18 2004 +++ mkdef.pl Mon Dec 27 00:33:34 2004 at at -1217,7 +1217,7 at at if($v && !$OS2) { printf OUT " %s%-39s at %-8d DATA\n",($W32)?"":"_",$s2,$n; } else { - printf OUT " %s%-39s at %d\n",($W32||$OS2)?"":"_",$s2,$n; + printf OUT " %s%-39s at %d\n",($W32)?"":"_",$s2,$n; } } } and for rand\rand_os2.c --- rand_os2.c0 Mon Jul 2 00:39:40 2001 +++ rand_os2.c Mon Dec 27 00:03:46 2004 at at -78,8 +78,8 at at ULONG ulIntrHigh; /* High 32 bits of interrupt time */ } CPUUTIL; -APIRET APIENTRY(*DosPerfSysCall) (ULONG ulCommand, ULONG ulParm1, ULONG ulParm2, ULONG ulParm3) = NULL; -APIRET APIENTRY(*DosQuerySysState) (ULONG func, ULONG arg1, ULONG pid, ULONG _res_, PVOID buf, ULONG bufsz) = NULL; +//APIRET APIENTRY(*DosPerfSysCall) (ULONG ulCommand, ULONG ulParm1, ULONG ulParm2, ULONG ulParm3) = NULL; +//APIRET APIENTRY(*DosQuerySysState) (ULONG func, ULONG arg1, ULONG pid, ULONG _res_, PVOID buf, ULONG bufsz) = NULL; HMODULE hDoscalls = 0; int RAND_poll(void) at at -92,6 +92,7 at at ULONG rc = DosLoadModule(failed_module, sizeof(failed_module), "DOSCALLS", &hDoscalls); if (rc == 0) { +/* rc = DosQueryProcAddr(hDoscalls, 976, NULL, (PFN *)&DosPerfSysCall); if (rc) at at -101,6 +102,7 at at if (rc) DosQuerySysState = NULL; +*/ } } at at -122,7 +124,7 at at RAND_add(&util, sizeof(util), 10); } else { - DosPerfSysCall = NULL; + //DosPerfSysCall = NULL; } } Bye, Yuri Dario /* * member of TeamOS/2 - Italy * http://www.os2power.com/yuri * http://www.teamos2.it */ **= Email 11 ==========================** Date: Thu, 6 Jan 2005 12:06:22 -0500 From: Richard Steiner Subject: Re: Webmin Quoting John Poltorak : > On Thu, Jan 06, 2005 at 10:12:46AM -0500, Richard Steiner wrote: > > Quoting John Poltorak : > > > > > I've just built and installed a minimal version of webmin... > > > > I use Webmin all the time to admin my Linux boxes, and I think it's a > wonderful > > tool. If it could be tailored to work in an OS/2 (or eCS) environment, > that > > would be a very nice thing. I'd love to see it as a standard feature in > eCS > > someday. > > It's not going to happen by magic - it needs a few people to get it > working and make it usable. What needs to be done? -- -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Smyrna, GA USA Written online using VISI's fancy Horde interface! The Theorem Theorem: If If, Then Then. **= Email 12 ==========================** Date: Thu, 06 Jan 2005 17:04:44 +0000 (GMT) From: "Lyn St George" Subject: Re: Webmin On Thu, 6 Jan 2005 15:31:04 +0000, John Poltorak wrote: >On Thu, Jan 06, 2005 at 02:38:36PM +0000, Lyn St George wrote: >> On Thu, 6 Jan 2005 13:44:06 +0000, John Poltorak wrote: [snip] >>. This could be a really great tool for managing a >> >Unix-like environment on OS/2. >> >> Webmin is the best thing since the sun got up. > >I guess it could be if you know your way round it... > >> I use a 'custom themed' version for my webhosting business, along >> with some custom built modules. > >Speaking of themes... I tried to install a them into the minimal version >but couldn't work where all the files went. There is one for mscstyle3 which can be used as a template. You also need to specify 'theme=foo' in /etc/webmin/config, and 'preroot=foo' in /etc/webmin/miniserv.conf. >It would be great to have a few modules for OS/2 programs, but I wouldn't >have a clue about putting one together. What would be involved in creating >an Apache module for OS/2? It has an Apache module as standard - I've never tried this on OS/2 (I don't use this on Linux either), but it shouldn't take too much adapting. I'd be happy to release my mail module, but it's really only meant for Postfix as the MTA and would need some work to use Sendmail (sendmail would need to operate in a dual-MTA setup as well) >Being able to install software on OS/2 via Webmin would be great too. The >way it handles RPM on Redhat is great. Don't mention that Redhat Package Mangler to me ... As it happens I'm part way through implementing some automated scripts plus Webmin for ux2bs. On Linux I use a system based on UX2BS which handles LFS (LinuxFromScratch.org) systems. I use these for virtual servers, which are built from an LFS skeleton on some sort of host (RH9 or whatever). Keeping the LFS skeleton and the vservers updated against vulnerabilities etc is the duty of LFSPB. (LFS Package Builder, for want of a better name). It's not finished yet (many things are just as easy to do manually) but the principle is that it should deduce what is installed by scanning the system (not by reading some database which may or may not be accurate - this is a prime fault with RPM and similar systems), read lists of compatibilities etc, and then either install or update an item along with all it's dependencies and dependant apps. The point of mentioning it here is that both the Linux and OS/2 versions are being developed in tandem. Hopefully I should make more progress on this over the next month or so ... >> - >> Lyn > >-- >John > > > - Lyn **= Email 13 ==========================** Date: Thu, 6 Jan 2005 19:45:25 +0000 From: John Poltorak Subject: Re: Webmin On Thu, Jan 06, 2005 at 05:04:44PM +0000, Lyn St George wrote: > >Speaking of themes... I tried to install a them into the minimal version > >but couldn't work where all the files went. > > There is one for mscstyle3 which can be used as a template. You also > need to specify 'theme=foo' in /etc/webmin/config, and 'preroot=foo' in > /etc/webmin/miniserv.conf. I managed to figure it out eventually... There is a Webmin Themes page here:- http://webadminmodules.sourceforge.net/?page=Themes and if you download and extract the theme to your Webmin applications directoy you can automatically install it using:- Webmin -> Webmin Configuration -> Webmin Themes you can select which theme you would like from a drop down list. When you click on 'Change' Webmin will change to the new them - no need to restart the server. Having said that, one theme completely locked up the system and it appears that it the the choice of themes which affects the performance of Webmin greatly. The themes themselves comes as .wbt files or can compressed as .wbt.gz but they are simply tar files. > >It would be great to have a few modules for OS/2 programs, but I wouldn't > >have a clue about putting one together. What would be involved in creating > >an Apache module for OS/2? > > It has an Apache module as standard - I've never tried this on OS/2 (I don't > use this on Linux either), but it shouldn't take too much adapting. I don't really know where to start, although adding working module onto the minimal distribution sounds easiest. > >Being able to install software on OS/2 via Webmin would be great too. The > >way it handles RPM on Redhat is great. > > Don't mention that Redhat Package Mangler to me ... I meant the concept - maybe the practise isn't quite up to it... > As it happens I'm part way through implementing some automated > scripts plus Webmin for ux2bs. This sounds really good. > Hopefully I should make more progress on this over the next month > or so ... Great - keep us uptodate as you go on. > - > Lyn > -- John **= Email 14 ==========================** Date: Thu, 6 Jan 2005 19:50:18 +0000 From: John Poltorak Subject: Re: Webmin On Thu, Jan 06, 2005 at 12:06:22PM -0500, Richard Steiner wrote: > Quoting John Poltorak : > > > On Thu, Jan 06, 2005 at 10:12:46AM -0500, Richard Steiner wrote: > > > Quoting John Poltorak : > > > > > > > I've just built and installed a minimal version of webmin... > > > > > > I use Webmin all the time to admin my Linux boxes, and I think it's a > > wonderful > > > tool. If it could be tailored to work in an OS/2 (or eCS) environment, > > that > > > would be a very nice thing. I'd love to see it as a standard feature in > > eCS > > > someday. > > > > It's not going to happen by magic - it needs a few people to get it > > working and make it usable. > > What needs to be done? Getting familiar with Webmin for a start... then looking at how various OS/2 programs can be made to fit into the framework which webmin provides. If anyone is using UX2BS, I've just added Webmin as a buildable app so you should be able to build it by running 'build webmin' once you have run ux2_refresh. > -- > -Rich Steiner >>>---> http://www.visi.com/~rsteiner >>>---> Smyrna, GA USA > Written online using VISI's fancy Horde interface! > The Theorem Theorem: If If, Then Then. -- John **= Email 15 ==========================** Date: Thu, 06 Jan 2005 18:35:33 -0500 From: lsunley at mb.sympatico.ca Subject: Re: Postgres admin In <20050106205508.X27090 at bullseye.apana.org.au>, on 01/06/05 at 09:02 PM, Andrew MacIntyre said: >On Wed, 5 Jan 2005 lsunley at mb.sympatico.ca wrote: >> The RC builds I am doing include libpq.dll and the link libs, so you don't >> have to build those yourself. The only "gotcha" is that the GCC 3.3.5 >> compiler insists on placing a leading "_" on the routine names. >> >> If you need it I can use a macro to make libpq routines use "_System" >> calling convention. That way all the VAC and EMX programs should be able >> to work without a change. >Thanks for the offer. The latter may be a good idea anyway, especially >if the header files match. >As I will still be building binary distros with EMX & gcc 2.8.1, and am >wary about introducing more runtime DLLs into the equation, I'll maintain >my libpq ports (the -Zso port exists for a particular reason) for the >time being - though please don't take that as a lack of faith in your >work! I can understand, I still have a mySQL 4 client port that I use for the unixODBC mySQL driver, just because I know it works... -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 16 ==========================** Date: Fri, 7 Jan 2005 10:11:24 +0000 From: John Poltorak Subject: Lowercase variable names How would I set variable names to lowercase in a cmd file? AIUI shell scripts can do this so maybe I can achieve this by running a shell script using EXTPROC. Does anyone have an example of EXTPROC invoking a shell script? Or is there an alternative way of creating lowercase variable names? -- John **= Email 17 ==========================** Date: Fri, 7 Jan 2005 10:17:11 +0000 From: John Poltorak Subject: Subversion v1.1.2 An update to Subversion has just come out. You can get it here:- http://silk.apana.org.au/pub/svn/svn-os2-1.1.2.zip -- John **= Email 18 ==========================** Date: Fri, 7 Jan 2005 10:33:47 +0000 From: John Poltorak Subject: Problem running Autoconf I got this error whilst trying to build Apache2 (v2.0.52) :- httpd-2.0.52 Using:- autoconf (GNU Autoconf) 2.59 (release 2 for OS/2) SYS1041: The name . is not recognized as an internal or external command, operable program or batch file. How can I find out what is causing this? -- John **= Email 19 ==========================** Date: Fri, 7 Jan 2005 10:43:04 +0000 From: John Poltorak Subject: APR Can anyone tell me anything about APR (Apache Portable Runtime Utility library) ? Or at least suggest what I need to do to alleviate this problem when building Apache2 (v2.0.52) :- Configuring Apache Portable Runtime Utility library... checking for APR-util... reconfig not updating unwritable cache /dev/null configuring package in srclib/apr-util now configure: loading site script g:/ux2bs/lib/config.site configure: creating cache /dev/null checking build system type... i386-pc-os2_emx checking host system type... i386-pc-os2_emx checking target system type... i386-pc-os2_emx checking for working mkdir -p... yes APR-util Version: 0.9.5 checking for chosen layout... apr-util Applying apr-util hints file rules for i386-pc-os2_emx checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. configure failed for srclib/apr-util Why is the --with-apr parameter incorrect? Is there some requirement I've missed out? -- John **= Email 20 ==========================** Date: Fri, 7 Jan 2005 10:56:00 +0000 From: John Poltorak Subject: Specific features of OS/2 Perl port Some interesting reading for anyone using Perl on OS/2:- http://perl.active-venture.com/pod/perlos2-os2port.html I've no idea whether this refers to any specific version of Perl and how much of it still applies. There is no indication of the source of this article or when it was written AFAICT. -- John