From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sat, 7 Dec 2002 04:42:59 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 391 ************************************************** Friday 06 December 2002 Number 391 ************************************************** Subjects for today 1 Solved! was: Installing autoconf : Christian Hennecke" 2 Re: Installing autoconf : Andreas Buening 3 Re: Installing autoconf : Andreas Buening 4 Re: Permissions problem : Andrew MacIntyre 5 Re: Mailman getting close : Ted Sikora 6 config.site : Ted Sikora 7 Re: Installing autoconf : John Poltorak 8 Re: Make bug?, was: got lost : Ken Ames 9 Re: Mailman getting close : Ted Sikora 10 Re: config.site : Thomas Dickey 11 The story so far... : John Poltorak 12 Re: Mailman getting close : John Poltorak 13 Make bug?, was: got lost : Stefan Neis 14 mailman cgi : Ted Sikora 15 Re: config.site : John Poltorak 16 Re: mailman cgi : Ted Sikora 17 Re: config.site : John Poltorak 18 Re: Mailman getting close : John Poltorak 19 Re: config.site : John Poltorak 20 Re: mailman cgi : Ted Sikora 21 Re: Ncurses build error : Thomas Dickey 22 Re: config.site : Thomas Dickey 23 Re: mailman cgi : John Poltorak 24 $PREFIX precedence : John Poltorak 25 Re: mailman cgi : Lyn St George" 26 Re: Mailman getting close : Andrew MacIntyre 27 Ncurses build error : John Poltorak **= Email 1 ==========================** Date: Sat, 07 Dec 2002 00:38:56 +0100 (CET) From: "Christian Hennecke" Subject: Solved! was: Installing autoconf My second problem with installing autoconf is solved: due to accidental file deletion, me being an idiot, or bad vibrations, the correct regex DLL was missing. Autoconf and automake installed fine. Sorry for bothering you. Christian Hennecke **= Email 2 ==========================** Date: Sat, 07 Dec 2002 00:49:22 +0100 From: Andreas Buening Subject: Re: Installing autoconf Christian Hennecke wrote: > > On Thu, 05 Dec 2002 21:04:39 +0100, Andreas Buening wrote: [snip] > >What exactly did you do, what exactly is your configure output > >and which sed and which chmod do you use? > > Meanwhile I installed all the latest stuff that is available at > OS/2ports.com. The chmod error has gone now, but instead there are > others. > > I did the following: > > - unzip the autoconf package to my e: drive where all the Unix-stuff > resides > - make sure install.exe is the correct one > - start ksh in the autoconf directory > - enter 'export ac_executable_extensions=".exe"' > - enter './configure --prefix=e:/usr' > > The output is: > > [5]/autoconf-2.53b: ./configure --prefix=e:/usr > ./configure[237]: sed: No such file or directory Okay, it's just an assumption: You have no sed.exe in your PATH. [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. **= Email 3 ==========================** Date: Sat, 07 Dec 2002 00:49:46 +0100 From: Andreas Buening Subject: Re: Installing autoconf John Poltorak wrote: > [autoconf] > Is there any prospect of the OS/2 patches in 2.53bR2 being integrated into > the mainstream version? The "patches" aren't anything special. They set ac_executable_extensions, replace '\' by '/' in your PATH and change the behaviour of AC_CHECK_LIB slightly so that you don't get drowned by linker warnings if you use link386. They don't affect the usability if you've set up your environment correctly. To answer your question, I don't think they would be accepted as they are. 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. **= Email 4 ==========================** Date: Sat, 7 Dec 2002 08:49:35 +1000 (est) From: Andrew MacIntyre Subject: Re: Permissions problem This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime at docserver.cac.washington.edu for more info. ---888574994-696-1039214975=:22069 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 5 Dec 2002, John Poltorak wrote: > When I tried using NEWLIST, I got:- > > [C:\usr\local\bin]python newlist > Enter the name of the list: py-test > Enter the email of the person running the list: jp at eyup.org > Initial py-test password: > Traceback (most recent call last): > File "newlist", line 220, in ? > main() > File "newlist", line 169, in main > mlist.Create(listname, owner_mail, pw) > File "c:/usr/local/Mailman/MailList.py", line 782, in Create > Utils.MakeDirTree(os.path.join(mm_cfg.LIST_DATA_DIR, name)) > File "c:/usr/local/Mailman/Utils.py", line 265, in MakeDirTree > os.mkdir(made_part, perms) > OSError: [Errno 2] No such file or directory: '/c:' > > > Maybe there is some way to skip drive letters... I may try building the > whole thing using a prefix of /usr/local instead of c:/usr/local and see > if that makes any difference. Try the attached patch (untested quick hack) to the file c:/usr/local/Mailman/Utils.py There are almost certainly other Unixisms in Mailman - AFAIK its not running on Windows either (incl Cygwin). -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au | Snail: PO Box 370 andymac at pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia ---888574994-696-1039214975=:22069 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="Mailman_Utils.py.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Mailman_Utils.py.patch Content-Disposition: attachment; filename="Mailman_Utils.py.patch" KioqIFV0aWxzLnB5Lm9yaWcJRnJpIEp1bCAxMiAwODo0NDoyOCAyMDAyDQot LS0gVXRpbHMucHkJU2F0IERlYyAgNyAwODo0NjoyNiAyMDAyDQoqKioqKioq KioqKioqKioNCioqKiAyNTMsMjU4ICoqKioNCi0tLSAyNTMsMjY3IC0tLS0N CiAgZGVmIE1ha2VEaXJUcmVlKHBhdGgsIHBlcm1zPTA3NzUsIHZlcmJvc2U9 MCk6DQogICAgICBtYWRlX3BhcnQgPSAnLycNCiAgICAgIHBhdGhfcGFydHMg PSBmaWx0ZXIoTm9uZSwgc3RyaW5nLnNwbGl0KHBhdGgsICcvJykpDQorICAg ICBpZiBvcy5uYW1lIGluICgnb3MyJywpOg0KKyAgICAgICAgIG1hZGVfcGFy dCA9ICcnDQorICAgICAgICAgdHJ5Og0KKyAgICAgICAgICAgICBwYXRoXzAg PSBwYXRoX3BhcnRzWzBdDQorICAgICAgICAgICAgIGlmIHBhdGhfMFsxXSA9 PSAnOic6DQorICAgICAgICAgICAgICAgICBtYWRlX3BhcnQgPSBwYXRoXzAN CisgICAgICAgICAgICAgICAgIHBhdGhfcGFydHMgPSBwYXRoX3BhcnRzWzE6 XQ0KKyAgICAgICAgIGV4Y2VwdCBJbmRleEVycm9yOg0KKyAgICAgICAgICAg ICBwYXNzDQogICAgICBmb3IgaXRlbSBpbiBwYXRoX3BhcnRzOg0KICAJbWFk ZV9wYXJ0ID0gb3MucGF0aC5qb2luKG1hZGVfcGFydCwgaXRlbSkNCiAgCWlm IG9zLnBhdGguZXhpc3RzKG1hZGVfcGFydCk6DQo= ---888574994-696-1039214975=:22069-- **= Email 5 ==========================** Date: Sat, 07 Dec 2002 09:57:49 -0500 From: Ted Sikora Subject: Re: Mailman getting close Andrew MacIntyre wrote: > > On Fri, 6 Dec 2002, Ted Sikora wrote: > > > Ted Sikora wrote: > > > > > Using just python newlist gives: > > > > > > [netcast|d:/unixos2/home/mailman/bin]python newlist > > > Enter the name of the list: test > > > Enter the email of the person running the list: ted at powerusersbbs.net > > > Initial test password: > > > Traceback (most recent call last): > > > File "newlist", line 220, in ? > > > main() > > > File "newlist", line 169, in main > > > mlist.Create(listname, owner_mail, pw) > > > File "/unixos2/home/mailman/Mailman/MailList.py", line 786, in Create > > > self.__lock.lock() > > > File "/unixos2/home/mailman/Mailman/LockFile.py", line 219, in lock > > > self.__write() > > > File "/unixos2/home/mailman/Mailman/LockFile.py", line 350, in __write > > > fp = open(self.__tmpfname, 'w') > > > IOError: [Errno 2] No such file or directory: > > > '/unixos2/home/mailman/locks/ > > >.lock.netcast.3580' > > > > > > Seems it cannot create a lockfile or find . > > The "<" and ">" are illegal characters in filenames it seems. Try > changing the reference to '' in MailList.py to '=site=', or try the > attached patch (which does the same thing more verbosely). > Thanks I'll try it. In the meantime I got the complete program to install by changing DIRSETGID=: in makefile.in. Originally I used 'echo' but the README.BSD recommended : without it the /cgi-bin scripts are absent. Do I need to pass some configure options for cgi in OS/2? Unfortunately they do not work ie; http://powerusersbbs.net/mailman/admin Apache logs report: (191)Unknown error :couldn't create child process: 191: admin (191)Unknown error :couldn't spawn child process: 191: D:/unixos2/home/mailman/cgi-bin/admin Damn I was hoping to at least get the web interface working last night. -- Ted Sikora tsikora at ntplx.net **= Email 6 ==========================** Date: Sat, 07 Dec 2002 10:45:21 -0500 From: Ted Sikora Subject: config.site PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` PATH_SEPARATOR=';' Is this really needed? Trying to clean up my build environment. Seems to make no difference anyways. -- Ted Sikora tsikora at ntplx.net **= Email 7 ==========================** Date: Sat, 7 Dec 2002 11:06:32 +0000 From: John Poltorak Subject: Re: Installing autoconf On Sat, Dec 07, 2002 at 12:49:46AM +0100, Andreas Buening wrote: > John Poltorak wrote: > > > > [autoconf] > > > Is there any prospect of the OS/2 patches in 2.53bR2 being integrated into > > the mainstream version? > > The "patches" aren't anything special. They set > ac_executable_extensions, replace '\' by '/' in your PATH > and change the behaviour of AC_CHECK_LIB slightly so that > you don't get drowned by linker warnings if you use link386. It's great that there are so few patches, although I would have thought some of the would also apply to Win32 so should be acceptable for inclusion. This one for instance (general.m4) :- - [[\\/$]]* | ?:[[\\/]]* | NONE | '' ) ;; + [[\\/$]]* | ?:[[\\/]]* | ?: | NONE | '' ) ;; > They don't affect the usability if you've set up your environment > correctly. But how can anyone ensure that their environment has been set up correctly in the first place? Can everything necessary be handled by config.site? > To answer your question, I don't think they would > be accepted as they are. The problem about long term maintenance remains. Are the patches applicable to every release of autoconf? Wouldn't it be better to supply a standalone .m4 macro specifically for OS/2 - a sort of ac-os2 or aclocal of some sort which could be maintained indepedently of autoconf? > > 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. -- John **= Email 8 ==========================** Date: Sat, 07 Dec 2002 11:19:43 -0800 From: Ken Ames Subject: Re: Make bug?, was: got lost hi Stefan, Stefan Neis wrote: >On Fri, 6 Dec 2002, Ken Ames wrote: > > > >>Abnormal program termination >>core dumped >>gmake: *** [lib/libwx_os2-2.3.a] Error 3 >> >> > >Oops! Sounds like a serious problem on the part of the compiler. >What exactly are you using? EMX-0.9d (i.e. gcc-2.8.1) or >pgcc-2.95.something or gcc-3.0.3? Maybe some resource is running low? > > I am running emx 0.9d with fix4 and gcc 2.8.1 - it does this on a fresh reboot (only window open) hmmm, maybe file handles run out or something? a WAG. > > > >Yes, important addition to the readme. wxWindows is using "gcc -MMD" to >auto-generate files with dependency information, however, it uses "/" in >the path names (or rather a mixture of "/" and "\") which GNU make for >whatever reason doesn't like at all (although it should, IMHO). >I'm "manually" fixing the problem by running > for %1 in (*.d) do at (sed "s/\//\\/g" < %1 > dep.sed && copy dep.sed %1) >when needed. > > Regards, > > > Stefan > > oh no! shell script! (I think) I am completely lost in that so could you be a bit more specific as to where and how I use that? I need to figure out that 1st error above too, I don't like that kind of thing happening. thanks Ken oh, BTW, do you use the wxwindows irc channel? **= Email 9 ==========================** Date: Sat, 07 Dec 2002 11:47:31 -0500 From: Ted Sikora Subject: Re: Mailman getting close John Poltorak wrote: > > On Sat, Dec 07, 2002 at 09:57:49AM -0500, Ted Sikora wrote: > > > > Thanks I'll try it. In the meantime I got the complete program to > > install by changing DIRSETGID=: in makefile.in. Originally I used 'echo' > > but the README.BSD recommended : without it the /cgi-bin scripts are > > absent. Do I need to pass some configure options for cgi in OS/2? > > Unfortunately they do not work ie; > > > > http://powerusersbbs.net/mailman/admin > > > > Apache logs report: > > > > (191)Unknown error > > :couldn't create child process: 191: admin > > (191)Unknown error > > :couldn't spawn child process: 191: > > D:/unixos2/home/mailman/cgi-bin/admin > > > > Damn I was hoping to at least get the web interface working last night. > > I thought that would be the easiest bit to set up... No their compiled cgi-bin scripts or execs I believe. Here's what I get when trying it on the command line in Linux: ./admin Content-type: text/html Mailman CGI error!!!

Mailman CGI error!!!

The expected gid of the Mailman CGI wrapper did not match the gid as set by the Web server.

The most likely cause is that Mailman was configured and installed incorrectly. Please read the INSTALL instructions again, paying close attention to the --with-cgi-gid configure option. This entry is being stored in your syslog:

Failure to exec script. WANTED gid 98, GOT gid 0.  (Reconfigure to take
0?)
In OS/2: ./admin Execution failed because of module ".\ADMIN" "./admin" no such file or directory I copied the unixos2 /bin and /usr/bin to x:/usr/bin and added it to the path now all the scripts work standalone ie; ./newlist > > Maybe Zope would give me a clue about how to handle python programs on a > web server... How easy is it for a novice to install? Extremely easy just follow the readme should be up and running in 5 minutes or less. ftp://os2ports.com/pub/os2/unix/internet/Zope/ -- Ted Sikora tsikora at ntplx.net **= Email 10 ==========================** Date: Sat, 7 Dec 2002 12:38:29 -0500 From: Thomas Dickey Subject: Re: config.site On Sat, Dec 07, 2002 at 04:11:25PM +0000, John Poltorak wrote: > On Sun, Dec 08, 2002 at 12:54:22AM +0900, ?$B_7ED at P!!=g?(B wrote: > > Ted Sikora wrote: > > >PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` > > >PATH_SEPARATOR=';' > > >Is this really needed? > > I say YES. Without converting '\' to '/', you will fail to > > run some "configure" scripts. > > This shouldn't be a problem if the configure script is rebuilt with a > recent version of autoconf. That would be nice; however at least one of the autoconf maintainers has stated that he refuses to make changes for path-separator. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 11 ==========================** Date: Sat, 7 Dec 2002 12:39:04 +0000 From: John Poltorak Subject: The story so far... A number of people have joined the list in recent months and may not be familiar with what has been going on or what the general aims of the list are, so I'll attempt to recap... The purpose of the list is twofold. Firstly it is place to get help with setting up Unix apps and utils in an OS/2 environment. Or to be more precise Open Source apps, since a number of significant apps are now advertising themselves as cross-platform, rather than just being targetted at Unix. In due course it would be nice to be able to use OpenWatcom along with wxWindows and build something like OpenOffice straight out of the box on OS/2. OK, I may be dreaming, but why not? The second aim, which is a long term goal, is to build a UnixOS/2 distro. In essence, this will be something like a standard Linux distro such as SlackWare, but without the Linux kernel, although it will rely on an existing OS/2 kernel. All that the Linux kernel provides is a base OS which hosts a large quantity of Open Source Software. In principle most of that software should be able to run on OS/2, and in fact many apps, such as, Apache, XFree86, MySQL, Sendmail, Perl, Python, Emacs etc. already do. The problem is that there is no unifying framework for this environment. There is no standard directory structure, no standard set of apps, no standard build environment. Everything is left for the individual porter to decide for himself. UnixOS/2 is an attempt to provide a single framework and make it easier to bring OSS apps to OS/2. As a first step to doing so, SlackWare was selected as a reference platform for UnixOS/2 because it provided a fairly clear and non-proprietary method of package management, which seemed like a good model to follow. Anyone wanting to understand how UnixOS/2 is evolving should familiarise themselves with a normal Slackware distro. Initially, a number of UnixOS/2 packages were assembled based on existing SlackWare packages, but with Linux binaries substituted by OS/2 binaries wherever they were available. At the present time, I am attempting to rebuild all the existing packages from source code, which is a fairly time consuming task. As part of this rebuilding, I am hoping to provide build scripts for every package, so I would be obliged if anyone could try them out to make sure they work correctly. Wherever possible, I would like to use the standard GNU build system which is supplied with most apps. This normally consists of running configure, make and make install. Under OS/2 the supplied configure script rarely works, *but* when rebuilt using autoconf it stands a reasonable chance. I'm putting together a UnixOS/2 Build System which is essentially a wrapper around the GNU build system, and hope it will be useable for every UnixOS/2 app. It has already worked pretty well building Perl, which is uses quite a complex build environment, and I'm in the process of enhancing it. I'll provide further details as and when they are available. If anyone has any thoughts, questions, ideas, suggestions etc. feel free to provide them. -- John **= Email 12 ==========================** Date: Sat, 7 Dec 2002 14:58:45 +0000 From: John Poltorak Subject: Re: Mailman getting close On Sat, Dec 07, 2002 at 09:57:49AM -0500, Ted Sikora wrote: > > Thanks I'll try it. In the meantime I got the complete program to > install by changing DIRSETGID=: in makefile.in. Originally I used 'echo' > but the README.BSD recommended : without it the /cgi-bin scripts are > absent. Do I need to pass some configure options for cgi in OS/2? > Unfortunately they do not work ie; > > http://powerusersbbs.net/mailman/admin > > Apache logs report: > > (191)Unknown error > :couldn't create child process: 191: admin > (191)Unknown error > :couldn't spawn child process: 191: > D:/unixos2/home/mailman/cgi-bin/admin > > Damn I was hoping to at least get the web interface working last night. I thought that would be the easiest bit to set up... In the case of admin above, is that admin.pyc ? Do you need something within Apache to equate .pyc files with python? Maybe Zope would give me a clue about how to handle python programs on a web server... How easy is it for a novice to install? > -- > Ted Sikora > tsikora at ntplx.net -- John **= Email 13 ==========================** Date: Sat, 7 Dec 2002 15:15:15 +0100 (CET) From: Stefan Neis Subject: Make bug?, was: got lost On Fri, 6 Dec 2002, Ken Ames wrote: > gcc -c -I./lib/wx/include/os2-2.3 -I../../include -I../../src/regex > -I../../sr > c/zlib -I../../src/png -I../../src/jpeg -I../../src/tiff -D__WXPM__ > -O2 -MMD > -O2 -m486 -Zmt -Wall -o inffast.o ../../src/zlib/inffast.c > > Abnormal program termination > core dumped > gmake: *** [lib/libwx_os2-2.3.a] Error 3 Oops! Sounds like a serious problem on the part of the compiler. What exactly are you using? EMX-0.9d (i.e. gcc-2.8.1) or pgcc-2.95.something or gcc-3.0.3? Maybe some resource is running low? > [X:\wxwindows-2.3.4\gcc-build\pm]gmake > gmake: *** No rule to make target `../../src/os2Paccel.cpp', needed by > `accel.o' > . Stop. > > that is a stopped (from an error I am guessing) and restarted compile run. > any insight would be appreciated, thanks Yes, important addition to the readme. wxWindows is using "gcc -MMD" to auto-generate files with dependency information, however, it uses "/" in the path names (or rather a mixture of "/" and "\") which GNU make for whatever reason doesn't like at all (although it should, IMHO). I'm "manually" fixing the problem by running for %1 in (*.d) do at (sed "s/\//\\/g" < %1 > dep.sed && copy dep.sed %1) when needed. Regards, Stefan **= Email 14 ==========================** Date: Sat, 07 Dec 2002 15:24:18 -0500 From: Ted Sikora Subject: mailman cgi Well it seems it's not Mailman but Apache/2. No cgi script runs they all produce 'Internal Error: spawn child process'. Anyone know how to make unix cgi scripts work on OS/2? I renamed them tried changing permissions in unix then copying them. Is there a helper or variable I need to add for ScriptAlias on OS/2? -- Ted Sikora tsikora at ntplx.net **= Email 15 ==========================** Date: Sat, 7 Dec 2002 15:39:20 +0000 From: John Poltorak Subject: Re: config.site On Sat, Dec 07, 2002 at 10:45:21AM -0500, Ted Sikora wrote: > PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` > PATH_SEPARATOR=';' > > Is this really needed? Trying to clean up my build environment. Seems to > make no difference anyways. It all depends on so many different things.... Exactly which shell are you using? It may also depend on whether you are using Autoconf and which version of that. Nothing is straightforward on OS/2 :-). > -- > Ted Sikora > tsikora at ntplx.net -- John **= Email 16 ==========================** Date: Sat, 07 Dec 2002 15:52:46 -0500 From: Ted Sikora Subject: Re: mailman cgi Ted Sikora wrote: > > Well it seems it's not Mailman but Apache/2. No cgi script runs they all > produce 'Internal Error: spawn child process'. Anyone know how to make > unix cgi scripts work on OS/2? I renamed them tried changing permissions > in unix then copying them. Is there a helper or variable I need to add > for ScriptAlias on OS/2? > > -- > Ted Sikora > tsikora at ntplx.net I think we'll have to make wrapper for cgi. Does one exist? If I rename the file .cmd it runs. I'll see what I can come up with. Here's what I got so far. http://powerusersbbs.net/cgi-bin/test2.cmd -- Ted Sikora tsikora at ntplx.net **= Email 17 ==========================** Date: Sat, 7 Dec 2002 16:11:25 +0000 From: John Poltorak Subject: Re: config.site On Sun, Dec 08, 2002 at 12:54:22AM +0900, ?$B_7ED at P!!=g?(B wrote: > Ted Sikora wrote: > >PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` > >PATH_SEPARATOR=';' > >Is this really needed? > I say YES. Without converting '\' to '/', you will fail to > run some "configure" scripts. This shouldn't be a problem if the configure script is rebuilt with a recent version of autoconf. > # Jun Sawataishi > # > # My recent port: Bash 2.05b, Texinfo 4.3 -- John **= Email 18 ==========================** Date: Sat, 7 Dec 2002 16:46:54 +0000 From: John Poltorak Subject: Re: Mailman getting close On Sat, Dec 07, 2002 at 11:47:31AM -0500, Ted Sikora wrote: > John Poltorak wrote: > In OS/2: > > ./admin > Execution failed because of module ".\ADMIN" > "./admin" no such file or directory > > > I copied the unixos2 /bin and /usr/bin to x:/usr/bin and added it to the > path now all the scripts work standalone ie; ./newlist Sounds good. Are you close to having it working? > > > > Maybe Zope would give me a clue about how to handle python programs on a > > web server... How easy is it for a novice to install? > > Extremely easy just follow the readme should be up and running in 5 > minutes or less. > > ftp://os2ports.com/pub/os2/unix/internet/Zope/ Thanks, I've already downloaded it. I had started up without realising it included a webserver and couldn't work out what to do with it... I've connected through Mozilla now and am trying to find my way around. Can't say I know what I'm doing, but at least it works :-). > -- > Ted Sikora > tsikora at ntplx.net -- John **= Email 19 ==========================** Date: Sat, 7 Dec 2002 18:53:13 +0000 From: John Poltorak Subject: Re: config.site On Sat, Dec 07, 2002 at 12:38:29PM -0500, Thomas Dickey wrote: > On Sat, Dec 07, 2002 at 04:11:25PM +0000, John Poltorak wrote: > > On Sun, Dec 08, 2002 at 12:54:22AM +0900, ?$B_7ED at P!!=g?(B wrote: > > > Ted Sikora wrote: > > > >PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` > > > >PATH_SEPARATOR=';' > > > >Is this really needed? > > > I say YES. Without converting '\' to '/', you will fail to > > > run some "configure" scripts. > > > > This shouldn't be a problem if the configure script is rebuilt with a > > recent version of autoconf. > > That would be nice; however at least one of the autoconf maintainers has > stated that he refuses to make changes for path-separator. I've looked through various autom4te.cache/output.0 files and they seem to contain code like this:- # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conftest.sh echo "exit 0" >>conftest.sh chmod +x conftest.sh if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conftest.sh fi I'm not exactly certain about how this works, but it seems to me that $PATH_SEPARATOR is getting set appropriately if not already set, BICBW. > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net -- John **= Email 20 ==========================** Date: Sat, 07 Dec 2002 19:03:35 -0500 From: Ted Sikora Subject: Re: mailman cgi Ted Sikora wrote: > > Ted Sikora wrote: > > > > Well it seems it's not Mailman but Apache/2. No cgi script runs they all > > produce 'Internal Error: spawn child process'. Anyone know how to make > > unix cgi scripts work on OS/2? I renamed them tried changing permissions > > in unix then copying them. Is there a helper or variable I need to add > > for ScriptAlias on OS/2? > > > > -- > > Ted Sikora > > tsikora at ntplx.net > > I think we'll have to make wrapper for cgi. Does one exist? If I rename > the file .cmd it runs. I'll see what I can come up with. > > Here's what I got so far. > > http://powerusersbbs.net/cgi-bin/test2.cmd > Disregard my last few posts I was getting into left field there for a while. All cgi's now work. After playing with all these scripts my server locked solid. Now it only runs in VGA 16 colors. If I reinstall SDD704 or Gradd083 it locks solid on startup. Anyone get this before? -- Ted Sikora tsikora at ntplx.net **= Email 21 ==========================** Date: Sat, 7 Dec 2002 19:44:19 -0500 From: Thomas Dickey Subject: Re: Ncurses build error On Sat, Dec 07, 2002 at 10:49:25PM +0000, John Poltorak wrote: > > Whilst trying to build NCURSES, I get the following error:- ... > What does this mean? > > ld.exe (from emx 0.9d) is definitely available. > > Do I need a different version? > > There is no ncurses.a, but a libncurses.a has been created. ncurses/Makefile is in charge of that - but the configure script is supposed to set the name to ncurses.a It's done with this chunk in aclocal.m4: dnl --------------------------------------------------------------------------- dnl Compute the library-prefix for the given host system dnl $1 = variable to set AC_DEFUN([CF_LIB_PREFIX], [ case $cf_cv_system_name in OS/2*) LIB_PREFIX='' ;; os2*) LIB_PREFIX='' ;; *) LIB_PREFIX='lib' ;; esac ifelse($1,,,[$1=$LIB_PREFIX]) AC_SUBST(LIB_PREFIX) ])dnl This variable would be in the cache file (not created by default with autoconf 2.5x, but see configure --help): cf_cv_system_name When I last built on OS/2, I generated the configure script using autoconf 2.13 + patches; the only reason the configure script is generated currently with 2.52 + patches is to work around a defect in glibc which happens to cancel a bug in autoconf 2.5x (sometime I'll work on a fix to 2.13 to keep things in sync). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 22 ==========================** Date: Sat, 7 Dec 2002 20:23:29 -0500 From: Thomas Dickey Subject: Re: config.site On Sun, Dec 08, 2002 at 01:47:26AM +0100, Andreas Buening wrote: > John Poltorak wrote: > > > > On Sat, Dec 07, 2002 at 12:38:29PM -0500, Thomas Dickey wrote: > > [whether PATH_SEPARATOR works] > > > > That would be nice; however at least one of the autoconf maintainers has > > > stated that he refuses to make changes for path-separator. > > > > I've looked through various autom4te.cache/output.0 files and they seem to > > contain code like this:- > > [some code] > > > I'm not exactly certain about how this works, but it seems to me that > > $PATH_SEPARATOR is getting set appropriately if not already set, BICBW. > > That's true. Thomas, could you explain your statement, please? > Who refuses to make which kind of changes? Paul Eggert has said on more than one occasion that rather than accommodate shells with backslashes as separators, that the developers should adopt a POSIX shell. There are some changes to accommodate this, but they are not complete; when someone asks about this on the autoconf mailing list, he usually responds to that effect. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 23 ==========================** Date: Sat, 7 Dec 2002 20:28:59 +0000 From: John Poltorak Subject: Re: mailman cgi On Sat, Dec 07, 2002 at 03:24:18PM -0500, Ted Sikora wrote: > Well it seems it's not Mailman but Apache/2. No cgi script runs they all > produce 'Internal Error: spawn child process'. Anyone know how to make > unix cgi scripts work on OS/2? I renamed them tried changing permissions > in unix then copying them. Is there a helper or variable I need to add > for ScriptAlias on OS/2? I don't know anything about Apache, but on Xitami you need to associate file extensions with programs, as in:- [Filter] .php=c:\usr\sbin\php.exe .pl=c:\usr\bin\perl-5.6.exe I guess you would need something similar with .py or .pyc and python. I'm sure Apache would have a similar mechanism... > -- > Ted Sikora > tsikora at ntplx.net -- John **= Email 24 ==========================** Date: Sat, 7 Dec 2002 21:29:37 +0000 From: John Poltorak Subject: $PREFIX precedence If I have $PREFIX defined in config.site as well as on the configure command line and the two values are different, which takes precedence? From my tests, it appears that the config.site overides the command line parameter. Is there any way to make it prevail? -- John **= Email 25 ==========================** Date: Sat, 07 Dec 2002 21:53:41 +0000 From: "Lyn St George" Subject: Re: mailman cgi On Sat, 07 Dec 2002 15:24:18 -0500, Ted Sikora wrote: >Well it seems it's not Mailman but Apache/2. No cgi script runs they all >produce 'Internal Error: spawn child process'. Anyone know how to make >unix cgi scripts work on OS/2? I renamed them tried changing permissions >in unix then copying them. Is there a helper or variable I need to add >for ScriptAlias on OS/2? I have this in my Apache's conf, but as I don't use .cgi files I can't guarantee that it works (though ISTR that it did once upon a time...) AddHandler cgi-script .pl .exe .cgi >-- >Ted Sikora >tsikora at ntplx.net > > - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- **= Email 26 ==========================** Date: Sat, 7 Dec 2002 22:27:13 +1000 (est) From: Andrew MacIntyre Subject: Re: Mailman getting close This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime at docserver.cac.washington.edu for more info. ---888574994-19631-1039264033=:22079 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 6 Dec 2002, Ted Sikora wrote: > Ted Sikora wrote: > > > Using just python newlist gives: > > > > [netcast|d:/unixos2/home/mailman/bin]python newlist > > Enter the name of the list: test > > Enter the email of the person running the list: ted at powerusersbbs.net > > Initial test password: > > Traceback (most recent call last): > > File "newlist", line 220, in ? > > main() > > File "newlist", line 169, in main > > mlist.Create(listname, owner_mail, pw) > > File "/unixos2/home/mailman/Mailman/MailList.py", line 786, in Create > > self.__lock.lock() > > File "/unixos2/home/mailman/Mailman/LockFile.py", line 219, in lock > > self.__write() > > File "/unixos2/home/mailman/Mailman/LockFile.py", line 350, in __write > > fp = open(self.__tmpfname, 'w') > > IOError: [Errno 2] No such file or directory: > > '/unixos2/home/mailman/locks/ > >.lock.netcast.3580' > > > > Seems it cannot create a lockfile or find . The "<" and ">" are illegal characters in filenames it seems. Try changing the reference to '' in MailList.py to '=site=', or try the attached patch (which does the same thing more verbosely). -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au | Snail: PO Box 370 andymac at pcug.org.au | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia ---888574994-19631-1039264033=:22079 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="Mailman_MailList.py.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Mailman_MailList.py.patch Content-Disposition: attachment; filename="Mailman_MailList.py.patch" KioqIE1haWxMaXN0LnB5Lm9yaWcJV2VkIE1heSAzMCAwMTo0NToyNiAyMDAx DQotLS0gTWFpbExpc3QucHkJU2F0IERlYyAgNyAyMjoxOTozNiAyMDAyDQoq KioqKioqKioqKioqKioNCioqKiAyNTgsMjY4ICoqKioNCiAgDQogICAgICBk ZWYgSW5pdFRlbXBWYXJzKHNlbGYsIG5hbWUpOg0KICAgICAgICAgICIiIlNl dCB0cmFuc2llbnQgdmFyaWFibGVzIG9mIHRoaXMgYW5kIGluaGVyaXRlZCBj bGFzc2VzLiIiIg0KISAJc2VsZi5fX2xvY2sgPSBMb2NrRmlsZS5Mb2NrRmls ZSgNCiEgICAgICAgICAgICAgb3MucGF0aC5qb2luKG1tX2NmZy5MT0NLX0RJ UiwgbmFtZSBvciAnPHNpdGU+JykgKyAnLmxvY2snLA0KISAgICAgICAgICAg ICAjIFRCRDogaXMgdGhpcyBhIGdvb2QgY2hvaWNlIG9mIGxpZmV0aW1lPw0K ISAgICAgICAgICAgICBsaWZldGltZSA9IG1tX2NmZy5MSVNUX0xPQ0tfTElG RVRJTUUsDQohICAgICAgICAgICAgIHdpdGhsb2dnaW5nID0gbW1fY2ZnLkxJ U1RfTE9DS19ERUJVR0dJTkcpDQogIAlzZWxmLl9pbnRlcm5hbF9uYW1lID0g bmFtZQ0KICAJc2VsZi5fcmVhZHkgPSAwDQogIAlpZiBuYW1lOg0KLS0tIDI1 OCwyNzUgLS0tLQ0KICANCiAgICAgIGRlZiBJbml0VGVtcFZhcnMoc2VsZiwg bmFtZSk6DQogICAgICAgICAgIiIiU2V0IHRyYW5zaWVudCB2YXJpYWJsZXMg b2YgdGhpcyBhbmQgaW5oZXJpdGVkIGNsYXNzZXMuIiIiDQohICAgICAgICAg aWYgb3MubmFtZSBpbiAoJ29zMicsKToNCiEgICAgICAgICAgICAgc2VsZi5f X2xvY2sgPSBMb2NrRmlsZS5Mb2NrRmlsZSgNCiEgICAgICAgICAgICAgICAg IG9zLnBhdGguam9pbihtbV9jZmcuTE9DS19ESVIsIG5hbWUgb3IgJz1zaXRl PScpICsgJy5sb2NrJywNCiEgICAgICAgICAgICAgICAgICMgVEJEOiBpcyB0 aGlzIGEgZ29vZCBjaG9pY2Ugb2YgbGlmZXRpbWU/DQohICAgICAgICAgICAg ICAgICBsaWZldGltZSA9IG1tX2NmZy5MSVNUX0xPQ0tfTElGRVRJTUUsDQoh ICAgICAgICAgICAgICAgICB3aXRobG9nZ2luZyA9IG1tX2NmZy5MSVNUX0xP Q0tfREVCVUdHSU5HKQ0KISAgICAgICAgIGVsc2U6DQohICAgICAgICAgICAg IHNlbGYuX19sb2NrID0gTG9ja0ZpbGUuTG9ja0ZpbGUoDQohICAgICAgICAg ICAgICAgICBvcy5wYXRoLmpvaW4obW1fY2ZnLkxPQ0tfRElSLCBuYW1lIG9y ICc8c2l0ZT4nKSArICcubG9jaycsDQohICAgICAgICAgICAgICAgICAjIFRC RDogaXMgdGhpcyBhIGdvb2QgY2hvaWNlIG9mIGxpZmV0aW1lPw0KISAgICAg ICAgICAgICAgICAgbGlmZXRpbWUgPSBtbV9jZmcuTElTVF9MT0NLX0xJRkVU SU1FLA0KISAgICAgICAgICAgICAgICAgd2l0aGxvZ2dpbmcgPSBtbV9jZmcu TElTVF9MT0NLX0RFQlVHR0lORykNCiAgCXNlbGYuX2ludGVybmFsX25hbWUg PSBuYW1lDQogIAlzZWxmLl9yZWFkeSA9IDANCiAgCWlmIG5hbWU6DQo= ---888574994-19631-1039264033=:22079-- **= Email 27 ==========================** Date: Sat, 7 Dec 2002 22:49:25 +0000 From: John Poltorak Subject: Ncurses build error Whilst trying to build NCURSES, I get the following error:- make[1]: Entering directory `/unixos2/workdir/ncurses-5.2/progs' sh -c "./MKtermsort.sh awk ./../include/Caps" >termsort.c echo "#define PROG_CAPTOINFO \"`echo captoinfo.exe| sed 's/.exe$//'|sed 's,x,x,'|sed 's/$/.exe/'`\"" >transform.h echo "#define PROG_INFOTOCAP \"`echo infotocap.exe| sed 's/.exe$//'|sed 's,x,x,'|sed 's/$/.exe/'`\"" >>transform.h echo "#define PROG_RESET \"`echo reset.exe| sed 's/.exe$//'|sed 's,x,x,'|sed 's/$/.exe/'`\"" >>transform.h echo "#define PROG_INIT \"`echo init.exe| sed 's/.exe$//'|sed 's,x,x,'|sed 's/$/.exe/'`\"" >>transform.h cd ../objects; gcc -I../progs -I. -DNDEBUG -I. -I../include -I/usr/local/include -DHAVE_CONFIG_H -Zmt -D__ST_MT_ERRNO__ -c ../progs/tic.c cd ../objects; gcc -I../progs -I. -DNDEBUG -I. -I../include -I/usr/local/include -DHAVE_CONFIG_H -Zmt -D__ST_MT_ERRNO__ -c ../progs/dump_entry.c gcc ../objects/tic.o ../objects/dump_entry.o -L../lib -L/usr/local/lib -lncurses -Zmt -Zcrtdll -o tic.exe U:\EMX\BIN\ld.exe: No such file or directory for ncurses.a What does this mean? ld.exe (from emx 0.9d) is definitely available. Do I need a different version? There is no ncurses.a, but a libncurses.a has been created. -- John