From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Wed, 10 Jul 2002 04:31:49 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 268 ************************************************** Tuesday 09 July 2002 Number 268 ************************************************** Subjects for today 1 (offtopic) Some free ebooks : lordspigol" 2 Re: SCHEME : Thomas Dickey 3 TAR : lordspigol" 4 Re: Attrib -> chmod : csaba.raduly at sophos.com 5 Re: Baseline toolset RC1 : John Poltorak 6 Re: Attrib -> chmod : John Poltorak 7 Re: Attrib -> chmod : Thomas E. Dickey" 8 Re: SCHEME : Patrick Ash 9 Re: BLDLEVEL info in SED : John Poltorak 10 SCHEME : John Poltorak 11 Re: Attrib -> chmod : Stefan Neis 12 Re: Attrib -> chmod : csaba.raduly at sophos.com 13 Re: Attrib -> chmod : csaba.raduly at sophos.com 14 Re: Attrib -> chmod : John Poltorak 15 [OT] code example for simple daemon on OS/2 : Edwin =?iso-8859-1?Q?G=FCnthner?= 16 Re: TAR : John Poltorak 17 Re: Attrib -> chmod : Dave Saville" 18 Re: Attrib -> chmod : John Poltorak 19 Re: db.lib : lordspigol" 20 Re: db.lib : John Poltorak 21 Re: Attrib -> chmod : Lyn St George" 22 Re: TAR : lordspigol" 23 Re: TAR : Maynard" 24 Re: Attrib -> chmod : Dave Saville" 25 Re: db.lib : Lyn St George" 26 Re: db.lib : Lyn St George" 27 Re: [OT] code example for simple daemon on OS/2 : John Poltorak 28 Re: TAR : John Poltorak 29 Re: Gettext / libiconv : Andreas Buening 30 Re: [OT] code example for simple daemon on OS/2 : John Drabik" **= Email 1 ==========================** Date: Wed, 10 Jul 2002 00:13:08 -0300 (ADT) From: "lordspigol" Subject: (offtopic) Some free ebooks Hi folks, I found it on google searching by interesting things. http://proxy2.stealthedip.com/maniac/ Enjoy! **= Email 2 ==========================** Date: Wed, 10 Jul 2002 05:52:51 -0400 From: Thomas Dickey Subject: Re: SCHEME On Wed, Jul 10, 2002 at 10:41:40AM +0100, John Poltorak wrote: > > There's something in Hobbes incoming called SCHEME which is described as a > dialect of Lisp. > > Does anyone know anything about it? I used it about 10 years ago (for a project that I was developing). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 3 ==========================** Date: Wed, 10 Jul 2002 08:14:43 -0300 (ADT) From: "lordspigol" Subject: TAR The TAR.EXE is exactly my problem. I lost my util directory (400 mega of files there!) :( & I need know where is the TAR.EXE on hobbes that I cant find it. I downloaded 100 mega of hobbes to have all I like, but perhaps I yet dont have all that is interesting for me. I can untar files but to navigate into a tar file I need TAR.EXE. Rod On Wed, 10 Jul 2002 09:17:09 +0100, John Poltorak wrote: >I hadn't noticed, that, but it is due to this archive being the source of two >important files, tar.exe and gzip.exe. **= Email 4 ==========================** Date: Wed, 10 Jul 2002 09:02:40 +0100 From: csaba.raduly at sophos.com Subject: Re: Attrib -> chmod On 09/07/2002 16:46:07 owner-os2-unix wrote: >On Tue, 9 Jul 2002 14:49:24 +0100, John Poltorak wrote: > >>How do I change 'attrib -R * /s' to chmod ? > >Short answer: you don't. chmod is used for setting read, write, and >execute privileges (i.e., who can use or modify them); hiding is a >file attribute, not a file privilege. I see no hiding here. > >For hidden files, the R (Read-only) attribute of DOS-land is replaced >by a leading "." on the filename in Unix-land (don't confuse this >with "./", which refers to the current directory). So, your command >will be along the lines of: > I think you missed the point here. The read-only attribute means the file can be *read*, but not written. It's equivalent would be chmod -R a-w * (the -R is for recursion, i.e. the /s) -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 5 ==========================** Date: Wed, 10 Jul 2002 09:17:09 +0100 From: John Poltorak Subject: Re: Baseline toolset RC1 On Tue, Jul 09, 2002 at 04:20:46PM -0500, Maynard wrote: > Hi to John and all, > > I'm working on putting your baseline and build_system together here as > a novice. The saddest trouble from this side of the pond is obtaining > or maintaining a connection with leo. I did catch a glimpse of a login > message talking about moving their servers; more info on this is > available at http://www.leo.org/neues/umzug_garching_en.html > > If we don't find another home for those critical packages which reside > only on leo, they won't be available again until mid August or so, at > best it seems. LEO does list a number of mirror sites:- ftp://ftp.uni-heidelberg.de/pub/os2/ ftp://xenia.sote.hu/pub/os2/munich/ ftp://ftp.man.poznan.pl/pub/os2/ ftp://crydee.sai.msu.su/pub/comp/os/os2/leo/ and I suspect some people on this list also have copies of the OS/2 repository. > It looks like you folks have done a fine job putting this thing > together, and I'd love to test it for you; so I did manage to get some > files from 213.152.37.92 (thanks!) but that connection is troublesome > for me as well sometimes. That connection is to a twelve year old PS/2 which may account for its responsiveness. > Please note that I'm pretty sure that I did > get the baseline\archives\bash...zip from there today and that it does > not pass -t verification, so you may want to verify that; of course it > could be fine there and buggered here; it's been that kind of week > here. That file seems OK here. I have been using exactly the same files and scripts here to see if everything installs properly. > Comments so far before I lose track of them: > > I like the following parameters for wget in baseline\gather.cmd: > wget -Nc -t 1 -P %repository% -i toolset.lst OK, I'll add those paramaters. WGET comes with a lot of options and I've only explored a very small number myself. > toolset.lst does have a duplication of gtar258.zip > but the above parameters will skip right over it I hadn't noticed, that, but it is due to this archive being the source of two important files, tar.exe and gzip.exe. > I'm curious what these directory trees should look like from the root, > specifically for these local "baseline" and "build_system" mirrors of > your well assembled project. At the moment baseline and build_system are set up as two indepedent systems. I would like to integrate them at some point, but have no idea where something like a 'build_system' would fit within an FHS directory structure. > Thanks again. I'll chirp up when I've rounded the next bend, Basically, you should only need these files, amounting to 8kB, to get started:- gather.cmd baseline_inst.cmd build_perl.cmd build_perl.sh emx-inst.cmd emx.lst toolset.lst If that doesn't work, I've overlooked something, or made an assumption which doesn't apply. If you have connection problems with LEO, try one of the mirrors listed above. > > `~Maynard > > -- John **= Email 6 ==========================** Date: Wed, 10 Jul 2002 09:28:16 +0100 From: John Poltorak Subject: Re: Attrib -> chmod On Wed, Jul 10, 2002 at 09:02:40AM +0100, csaba.raduly at sophos.com wrote: > > >On Tue, 9 Jul 2002 14:49:24 +0100, John Poltorak wrote: > > > >>How do I change 'attrib -R * /s' to chmod ? > chmod -R a-w * > > (the -R is for recursion, i.e. the /s) Thanks, for that. I thought I needed to use some funny numbers like 666 or something :-)... I can never remember them. BTW is there any way of doing something like this as part of a file extraction using 'tar zxf'? -- John **= Email 7 ==========================** Date: Wed, 10 Jul 2002 09:33:20 -0400 (EDT) From: "Thomas E. Dickey" Subject: Re: Attrib -> chmod On Wed, 10 Jul 2002, John Poltorak wrote: > On Wed, Jul 10, 2002 at 01:00:59PM +0100, csaba.raduly at sophos.com wrote: > > > > >Thanks, for that. I thought I needed to use some funny numbers like 666 or > > >something :-)... I can never remember them. > > > > It's easy, you only have to convert three bits to octal at a time. > > > > So the *correct* a+w is equivalent to 'chmod -R 666 *' > > a+w, the file permission of the beast :-) > > > Is there any easy way to remember these values? > > Sometimes shell scripts include things like chmod 744 foo and I don't know > a convenient place to look this up. lots of places... for instance the manpage for chmod (quoting from one): A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1. Any omitted digits are assumed to be leading zeros. The first digit selects the set user ID (4) and set group ID (2) and sticky (1) attributes. The second digit selects permissions for the user who owns the file: read (4), write (2), and execute (1); the third selects permissions for other users in the file's group, with the same values; and the fourth for other users not in the file's group, with the same values. -- T.E.Dickey http://invisible-island.net ftp://invisible-island.net **= Email 8 ==========================** Date: Wed, 10 Jul 2002 09:39:18 +0000 From: Patrick Ash Subject: Re: SCHEME I did some programming with it in school. At the time, I thought that it's intended purpose was to confuse graduate students, and so far I have not seen anything to change that view. ;-) It's interesting to play with for a change, but I would hesitate to do any type of serious project with it. Pat Wed, 10 Jul 2002 10:41:40 +0100, John Poltorak wrote: > >There's something in Hobbes incoming called SCHEME which is described as a >dialect of Lisp. > >Does anyone know anything about it? > >It's quite a hefty package at 17MB, and we should probably be very >grateful to have an OS/2 implementation, but I've never even heard of it. > >SCHEME has a homepage here:- > >http://www.swiss.ai.mit.edu/projects/scheme/ -- Patrick Ash patash at comcast.net This OS/2 system uptime is 33 days, 02:21 hours and 02 seconds **= Email 9 ==========================** Date: Wed, 10 Jul 2002 10:14:43 +0100 From: John Poltorak Subject: Re: BLDLEVEL info in SED On Fri, Jul 05, 2002 at 07:52:19PM +0100, csaba.raduly at sophos.com wrote: > > >> You need something like this: > >> > >> -------->8-------- > >> STACKSIZE 49152 <---- example ! > >> -------->8-------- > > > >I'm thinking of only using NAME and DESCRIPTION lines. Am I likely to get > >reasonble defaults for everything else? > You get 0x8000 (32k) of stack by default (if you don't specify > STACKSIZE). If it's an exe, it might be better to give 1-2 megs of stack. Will one value fit all apps? > A DLL has no stack, so you don't have to worry about that. > > > > >It's difficult to establish the correct version using BLDLEVEL > >information. I tried this for REGEX.DLL:- > > > >DESCRIPTION ' at #UX2:0.12.0.0# at REGEX - POSIX regular expression library > 0.12' > > > >But every app has its own format of version. > > > >Running BLDLEVEL on REGEX.DLL gives me:- > > > >Vendor: UX2 > >Revision: 0.12.0.0 > >File Version: 0.12 > >Description: REGEX - POSIX regular expression library 0.12 > > > >I'm tempted to use the Description for storing the Unix version, and use > >the Version fields as a UnixOS/2 version control identifier of some sort. > >Any suggestions would be welcomed. The BLDLEVEL version id format seems > >too rigid to be able to contain the Unix version id correctly. > > > > Most GNU apps have three fields in their version number. > My gut feeling is that the revision should reflect that; automatic > up-to-dateness checking might be possible in the future. Looking at the format of various apps, it would appear that it is almost impossible to adopt the revision field for version number because of the disparate nature of the internal version number. Many GNU apps do conform to the three fields you mention, such as grep 2.4.2, gcc 3.0.3, sendmail 8.12.3 etc. But then you get less 376, libiconv 1.7.0.1, man 1.5j, jed B0.99-12, TeX 3.14159, which would look pretty weird in the BLDLEVEL format. Also, there is currently no way to distinguish between the many different builds of the OS/2 port of Make which all claim to be v3.76.1. > Is there anything else one can do with the build level info, apart from > displaying it with BLDLEVEL ? I'm no expert on BLDLEVEL myself and so would be interested to know how configurable build level info can be. -- John **= Email 10 ==========================** Date: Wed, 10 Jul 2002 10:41:40 +0100 From: John Poltorak Subject: SCHEME There's something in Hobbes incoming called SCHEME which is described as a dialect of Lisp. Does anyone know anything about it? It's quite a hefty package at 17MB, and we should probably be very grateful to have an OS/2 implementation, but I've never even heard of it. SCHEME has a homepage here:- http://www.swiss.ai.mit.edu/projects/scheme/ -- John **= Email 11 ==========================** Date: Wed, 10 Jul 2002 10:58:17 +0200 (CEST) From: Stefan Neis Subject: Re: Attrib -> chmod On Wed, 10 Jul 2002 csaba.raduly at sophos.com wrote: > >>How do I change 'attrib -R * /s' to chmod ? > chmod -R a-w * > > (the -R is for recursion, i.e. the /s) Isn't 'attrib -r' _removing_ the read-only attribute? I.e. shouldn't that translate to 'chmod -R a+w *'? Although I doubt that you want to give write permissions to everybody, so maybe "u+w" would be a better choice? Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 12 ==========================** Date: Wed, 10 Jul 2002 13:00:59 +0100 From: csaba.raduly at sophos.com Subject: Re: Attrib -> chmod On 10/07/2002 09:58:17 owner-os2-unix wrote: >On Wed, 10 Jul 2002 csaba.raduly at sophos.com wrote: > >> >>How do I change 'attrib -R * /s' to chmod ? > >> chmod -R a-w * >> >> (the -R is for recursion, i.e. the /s) > >Isn't 'attrib -r' _removing_ the read-only attribute? >I.e. shouldn't that translate to 'chmod -R a+w *'? ^^^^^^^^^^^^^^ Duh ! You're right, of course. >Although I doubt that you want to give write permissions >to everybody, so maybe "u+w" would be a better choice? > I don't think it makes any difference *on OS/2* John Poltorak wrote in another mail: >Thanks, for that. I thought I needed to use some funny numbers like 666 or >something :-)... I can never remember them. It's easy, you only have to convert three bits to octal at a time. So the *correct* a+w is equivalent to 'chmod -R 666 *' a+w, the file permission of the beast :-) -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 13 ==========================** Date: Wed, 10 Jul 2002 13:05:09 +0100 From: csaba.raduly at sophos.com Subject: Re: Attrib -> chmod On 10/07/2002 09:28:16 owner-os2-unix wrote: >On Wed, Jul 10, 2002 at 09:02:40AM +0100, csaba.raduly at sophos.com wrote: >> [snip wrong advice for chmod] > >BTW is there any way of doing something like this as part of a file >extraction using 'tar zxf'? > I don't see such an option for tar. That would go against the Unix toolbuilder mentality. The job of tar is to archive/unarchive files. If you want to change the permissions, you run chmod. -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 14 ==========================** Date: Wed, 10 Jul 2002 13:15:45 +0100 From: John Poltorak Subject: Re: Attrib -> chmod On Wed, Jul 10, 2002 at 01:05:09PM +0100, csaba.raduly at sophos.com wrote: > > >BTW is there any way of doing something like this as part of a file > >extraction using 'tar zxf'? > > > > I don't see such an option for tar. > That would go against the Unix toolbuilder mentality. > The job of tar is to archive/unarchive files. > If you want to change the permissions, you run chmod. Whilst tar's primary function is to archive/unarchive files, the 'z' option allows these functions to be extended. I was just wondering if there were any flags I had overlooked which may automatically change file attributes while extracting them... -- John **= Email 15 ==========================** Date: Wed, 10 Jul 2002 13:26:22 -0400 From: Edwin =?iso-8859-1?Q?G=FCnthner?= Subject: [OT] code example for simple daemon on OS/2 Hi folks, this is kinda off topic, but maybe one can help me here: I need to write a simple daemon that runs on OS/2 and that reads commands from a socket and reacts to them. Just wondering if somebody has a piece of C code that I could use as template to have something to start with. Would be a great help for a person who normally tries to avoid anything that looks like C; especially in the networking area. (btw: compiler will be visual age) thx, edwin **= Email 16 ==========================** Date: Wed, 10 Jul 2002 13:27:02 +0100 From: John Poltorak Subject: Re: TAR On Wed, Jul 10, 2002 at 08:14:43AM -0300, lordspigol wrote: > The TAR.EXE is exactly my problem. > > I lost my util directory (400 mega of files there!) :( > & I need know where is the TAR.EXE on hobbes that I > cant find it. > > I downloaded 100 mega of hobbes to have all I like, but > perhaps I yet dont have all that is interesting for me. If you have WGET this command will provide you with a means of grabbing everything you need to for a baseline OS/2 Unix developement system:- wget ftp://unixos2: at 213.152.37.92/pub/unixos2/baseline/gather.cmd > I can untar files but to navigate into a tar file I > need TAR.EXE. ???? How do you 'untar' files? > > Rod -- John **= Email 17 ==========================** Date: Wed, 10 Jul 2002 13:58:17 +0100 (BST) From: "Dave Saville" Subject: Re: Attrib -> chmod On Wed, 10 Jul 2002 13:15:45 +0100, John Poltorak wrote: >On Wed, Jul 10, 2002 at 01:05:09PM +0100, csaba.raduly at sophos.com wrote: >> >> >BTW is there any way of doing something like this as part of a file >> >extraction using 'tar zxf'? >> > >> >> I don't see such an option for tar. >> That would go against the Unix toolbuilder mentality. >> The job of tar is to archive/unarchive files. >> If you want to change the permissions, you run chmod. > > >Whilst tar's primary function is to archive/unarchive files, the 'z' >option allows these functions to be extended. I was just wondering if >there were any flags I had overlooked which may automatically change file >attributes while extracting them... Well solaris tar has a -p which sets files to the original modes. I think the tar ball needs to be created with -p as well. -- Regards Dave Saville Please note new email address dave.saville at ntlworld.com **= Email 18 ==========================** Date: Wed, 10 Jul 2002 14:19:29 +0100 From: John Poltorak Subject: Re: Attrib -> chmod On Wed, Jul 10, 2002 at 01:00:59PM +0100, csaba.raduly at sophos.com wrote: > > >Thanks, for that. I thought I needed to use some funny numbers like 666 or > >something :-)... I can never remember them. > > It's easy, you only have to convert three bits to octal at a time. > > So the *correct* a+w is equivalent to 'chmod -R 666 *' > a+w, the file permission of the beast :-) Is there any easy way to remember these values? Sometimes shell scripts include things like chmod 744 foo and I don't know a convenient place to look this up. -- John **= Email 19 ==========================** Date: Wed, 10 Jul 2002 14:23:43 -0300 (ADT) From: "lordspigol" Subject: Re: db.lib Kill is a util to kill proccess. LN I saw on Linux about linking files to somewhere. Ranlib.exe I have no idea. HTH, Rod On Wed, 10 Jul 2002 14:25:07 +0100, John Poltorak wrote: >BTW your script contains references to ranlib.exe, ln.exe and kill.exe. > >Where are those files from? **= Email 20 ==========================** Date: Wed, 10 Jul 2002 14:25:07 +0100 From: John Poltorak Subject: Re: db.lib On Tue, Jul 09, 2002 at 05:17:25PM +0000, Lyn St George wrote: > On Tue, 9 Jul 2002 15:00:46 +0100, John Poltorak wrote: > > >I just gave it a quick try, and it looks as though it will be a long haul > >getting it working... I saw these errors when running configure after > >previously running autoconf:- > > > > > >configure:2118: $? = 1 > >configure:2144: checking for C compiler default output > >configure:2147: gcc conftest.c >&5 > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _malloc referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _malloc referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _free referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _abort referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _free referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _abort referenced from text segment > >c:\emx\lib/gcc.a(frame.o): Undefined symbol _memset referenced from text segment > >configure:2150: $? = 1 > >configure: failed program was: > > The configure I used is too big to attach, so it's at > ftp://ftp.zolotek.net/os2/configure.bd.4014 and goes in db-4.0.14/dist/. > It should be enough to build it, though you should search for '.exe' and > replace paths as appropriate for your system. I did not use autoconf. Thanks. I grabbed your configure, but got the same errors as above. Can you give me details of the gcc.a file you have? Mine is the one from EMX 0.9d. BTW your script contains references to ranlib.exe, ln.exe and kill.exe. Where are those files from? > Cheers > Lyn St George > +--------------------------------------------------------------------------------- > + http://www.zolotek.net .. eCommerce hosting, consulting > + http://www.os2docs.org .. some 'How To' stuff ... > +---------------------------------------------------------------------------------- -- John **= Email 21 ==========================** Date: Wed, 10 Jul 2002 14:36:07 +0000 From: "Lyn St George" Subject: Re: Attrib -> chmod On Wed, 10 Jul 2002 14:19:29 +0100, John Poltorak wrote: >Is there any easy way to remember these values? > >Sometimes shell scripts include things like chmod 744 foo and I don't know >a convenient place to look this up. permissions: r=4, w=2, x=1 (read, write, execute) - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- **= Email 22 ==========================** Date: Wed, 10 Jul 2002 15:15:14 -0300 (ADT) From: "lordspigol" Subject: Re: TAR On Wed, 10 Jul 2002 13:27:02 +0100, John Poltorak wrote: ]If you have WGET this command will provide you with a means of grabbing ]everything you need to for a baseline OS/2 Unix developement system:- ] ]wget ftp://unixos2: at 213.152.37.92/pub/unixos2/baseline/gather.cmd John, this wget line grabs only one file. There is a line that was posted that grab all the project. I managed to find it here: wget -rg=on ftp://unixos2 at 213.152.37.92/pub/unixos2/* ] ]> I can untar files but to navigate into a tar file I ]> need TAR.EXE. ] ]???? ] ]How do you 'untar' files? UNTGZ. It is on Hobbes. TAR allow you do your own TAR files. Sometimes it is a big difference, because TAR clues altogether & ZIP does an excellent service on a TARred file. HTH & take care, Rod **= Email 23 ==========================** Date: Wed, 10 Jul 2002 16:26:46 -0500 (CDT) From: "Maynard" Subject: Re: TAR On Wed, 10 Jul 2002 15:15:14 -0300 (ADT), lordspigol wrote: >]wget ftp://unixos2: at 213.152.37.92/pub/unixos2/baseline/gather.cmd > >John, this wget line grabs only one file. and that command file clearly references two other files which you'll need from the same location; put the three of them together on a drive with lots of free space and run 'gather.cmd' while connected to the net. that should net/get you 4 files less than 28,787,188 bytes in 56 files and 2 dirs [dir /suh] Cheers/2, `~Maynard **= Email 24 ==========================** Date: Wed, 10 Jul 2002 17:14:02 +0100 (BST) From: "Dave Saville" Subject: Re: Attrib -> chmod On Wed, 10 Jul 2002 14:36:07 +0000, Lyn St George wrote: >On Wed, 10 Jul 2002 14:19:29 +0100, John Poltorak wrote: > >>Is there any easy way to remember these values? >> >>Sometimes shell scripts include things like chmod 744 foo and I don't know >>a convenient place to look this up. > >permissions: r=4, w=2, x=1 (read, write, execute) Funny - I can never remember the signs & letters :-) -- Regards Dave Saville Please note new email address dave.saville at ntlworld.com **= Email 25 ==========================** Date: Wed, 10 Jul 2002 18:37:40 +0000 From: "Lyn St George" Subject: Re: db.lib On Wed, 10 Jul 2002 14:25:07 +0100, John Poltorak wrote: > >Thanks. I grabbed your configure, but got the same errors as above. > >Can you give me details of the gcc.a file you have? Mine is the one from >EMX 0.9d. Currently from pgcc-2.95, gcc.a is 77140 bytes, dated 31.12.1999 >BTW your script contains references to ranlib.exe, ln.exe and kill.exe. > >Where are those files from? ln.exe is just a copy of cp.exe, ranlib.exe and kill.exe I'm not sure, I can't find the zips for them, but must have been Hobbes or Leo. - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- **= Email 26 ==========================** Date: Wed, 10 Jul 2002 18:37:40 +0000 From: "Lyn St George" Subject: Re: db.lib On Wed, 10 Jul 2002 14:25:07 +0100, John Poltorak wrote: > >Thanks. I grabbed your configure, but got the same errors as above. > >Can you give me details of the gcc.a file you have? Mine is the one from >EMX 0.9d. Currently from pgcc-2.95, gcc.a is 77140 bytes, dated 31.12.1999 >BTW your script contains references to ranlib.exe, ln.exe and kill.exe. > >Where are those files from? ln.exe is just a copy of cp.exe, ranlib.exe and kill.exe I'm not sure, I can't find the zips for them, but must have been Hobbes or Leo. - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- **= Email 27 ==========================** Date: Wed, 10 Jul 2002 19:46:47 +0100 From: John Poltorak Subject: Re: [OT] code example for simple daemon on OS/2 On Wed, Jul 10, 2002 at 01:26:22PM -0400, Edwin Günthner wrote: > Hi folks, > > this is kinda off topic, but maybe one can help > me here: I need to write a simple daemon that > runs on OS/2 and that reads commands from a socket > and reacts to them. You can get INETD from Hobbes which come with source. There's also IDENTD which is much simpler, and looks to be written for VAC. It may be simpler to use REXX to start with... Have a look through RXSOCKET.INF. Also, you may find something useful in REXX Tips n' Tricks. > Just wondering if somebody has a piece of C code > that I could use as template to have something > to start with. Would be a great help for a person > who normally tries to avoid anything that looks like > C; especially in the networking area. > > (btw: compiler will be visual age) > > thx, > > edwin -- John **= Email 28 ==========================** Date: Wed, 10 Jul 2002 20:50:54 +0100 From: John Poltorak Subject: Re: TAR On Wed, Jul 10, 2002 at 03:15:14PM -0300, lordspigol wrote: > On Wed, 10 Jul 2002 13:27:02 +0100, John Poltorak wrote: > > ]If you have WGET this command will provide you with a means of grabbing > ]everything you need to for a baseline OS/2 Unix developement system:- > ] > ]wget ftp://unixos2: at 213.152.37.92/pub/unixos2/baseline/gather.cmd > > John, this wget line grabs only one file. Yes, I know. Maybe look at the contents of it... > ] > ]> I can untar files but to navigate into a tar file I > ]> need TAR.EXE. > ] > ]???? > ] > ]How do you 'untar' files? > > UNTGZ. It is on Hobbes. I always use TAR to untar files. > TAR allow you do your own TAR files. Sometimes it is > a big difference, because TAR clues altogether & ZIP > does an excellent service on a TARred file. I am familiar with TAR having used it for many years. BTW don't confuse ZIP with GZIP. TAR'ed files are normally GZIP'ed. > HTH & take care, > Rod -- John **= Email 29 ==========================** Date: Wed, 10 Jul 2002 23:13:07 +0200 From: Andreas Buening Subject: Re: Gettext / libiconv John Poltorak wrote: > > On Sun, Jul 07, 2002 at 11:01:15PM +0200, Andreas Buening wrote: > > John Poltorak wrote: > > > > > > It's great to have an active maintainer, and it would be nice to be able > > > to build Gettext. > > > > > > Whether the Makefile is bogus or not, I don't know, but as it stands it > > > doesn't work with Make 3.79.1. My only current option is to revert to a > > > previous version of Make, but I'm reluctant to do this. > > > > > > Does anyone have a fix for the Gettext Makefile? ...apart from a hardcoded > > > $VERSION... > > > > I've found at least one bug: > > > > VERSION = $(shell sed ../configure.in -ne "/AM_INIT_AUTOMAKE/{" -e "s/.*(gettext, *\\(.*\\))/\\1/" -e "p" -e "}") > > > > This statement executes "sed ../configure.in ..." which doesn't > > work on the command line because cmd doesn't support '\' for > > quoting. make 3.76 contains magic code to replace '\\' by '\'. > > Fix: replace '\\' by '\' in that line above. > > I guess I just need to run this beforehand:-... > > sed "s/\\\\/\\/g" makefile >makefile.os2 To be exactly I meant you had to replace those double backslashes just from that single line. However, I haven't got that whole Makefile running. It's just one line that is incompatible to the cmd syntax. > BTW there is also another occurance of '\\' near the end of the Makefile. > I guess it's also OK to change that... > > BTW2 why is it necessary to run Make twice? > > Is this something else which can be fixed? I'm trying to get configure running. Those new c++/java/whatever files are still a problem. 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 Redmond where the Shadows lie. **= Email 30 ==========================** Date: Wed, 10 Jul 2002 23:24:05 -0600 (MDT) From: "John Drabik" Subject: Re: [OT] code example for simple daemon on OS/2 On Wed, 10 Jul 2002 13:26:22 -0400, Edwin Gnthner wrote: >this is kinda off topic, but maybe one can help >me here: I need to write a simple daemon that >runs on OS/2 and that reads commands from a socket >and reacts to them. Have you looked at the USB source code on the DD site? USB is an opportunistic driver loader, so you should be able to find a daemon there. JD