Date: Sun, 16 Oct 2005 00:04:25 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 632 ************************************************** Saturday 15 October 2005 Number 632 ************************************************** Subjects for today 1 Re: WGET : John Poltorak 2 Re: OpenSSL v0.9.8 : Stefan.Neis at t-online.de 3 Re: Building Apache2 : Paul Smedley 4 LIBC Error: Couldn't register process in shared memory! : Roman Trunov 5 Re: LIBC Error: Couldn't register process in shared memory! : Dave Yeo" 6 Re: Building Apache2 : Steven Levine" 7 Re: Building Apache2 : John Poltorak 8 Re: Building Apache2 : John Poltorak 9 Re: OpenSSL v0.9.8 : John Poltorak 10 Re: Building Apache2 : Paul Smedley 11 Re: OpenSSL v0.9.8 : Nicholas Sheppard 12 Re: Building Apache2 : Paul Smedley 13 Re: Building Apache2 : John Poltorak 14 Building tar v1.15 : John Poltorak 15 Re: Building Apache2 : Paul Smedley 16 Re: Building Apache2 : John Poltorak **= Email 1 ==========================** Date: Fri, 14 Oct 2005 14:39:32 +0100 From: John Poltorak Subject: Re: WGET On Fri, Oct 14, 2005 at 08:57:37PM +0930, Paul Smedley wrote: > Hi John, > > John Poltorak wrote: > > > > Anyone know which is the latest version of WGET available on OS/2? > > > http://smedley.info/os2ports.html has 1.10.1 with SSL support You have been busy! Any chance of getting some patches and build instruction for any of the apps listed? > Cheers, > > Paul. -- John **= Email 2 ==========================** Date: Fri, 14 Oct 2005 23:13:59 +0200 (CEST) From: Stefan.Neis at t-online.de Subject: Re: OpenSSL v0.9.8 Hi, > > Has anyone tried building OpenSSL v0.9.8? Any success? > > I built it with EMX -- I used it to build Pine 4.64. > > There were a few changes I had to make but I don't > remember what they were > off-hand and I won't have a chance to look it up until > the weekend. IIRC, there was a problem found in one of the later 0.9.7 releases and there was a patch submitted for it which for some reason doesn't seem to have made it into OpenSSL's CVS. I googled for OpenSSL and OS2 and found a patch for 0.9.7d (or later, don't really remember right now) that both applied cleanly and made OpenSSL-0.9.8 compile. HTH, Stefan **= Email 3 ==========================** Date: Sat, 15 Oct 2005 12:53:22 +0930 From: Paul Smedley Subject: Re: Building Apache2 Hi John, John Poltorak wrote: > > Has anyone ever managed to build Apache2 from source? I realise a > pre-compiled version is available, but I'd prefer to build it myself > using my own default options. > > Apache v1 built quite easily, but I've never had any success with v2. I've been playing with building Apache2 here with Innotek GCC over the last couple of days. I can get it to build but not work :) I know where the problem lies but it's stuff that I don't really understand :( apr_arch_os2calls.h declares: extern int (*apr_os2_select)(int *, int, int, int, long); extern int (*apr_os2_soclose)(int); & #define select apr_os2_select #define soclose apr_os2_soclose unistd.h from innotek gcc declares int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); & int TCPCALL soclose(int); When building, make fails with: In file included from sockopt.c:27: U:/USR/include/unistd.h:534: error: `apr_os2_select' redeclared as different kind of symbol .../../include/arch/os2/apr_arch_os2calls.h:23: error: previous declaration of `apr_os2_select' U:/USR/include/unistd.h:663: error: `apr_os2_soclose' redeclared as different kind of symbol .../../include/arch/os2/apr_arch_os2calls.h:39: error: previous declaration of `apr_os2_soclose' Anyone have any ideas? Cheers, Paul. **= Email 4 ==========================** Date: Sat, 15 Oct 2005 08:26:52 +0400 From: Roman Trunov Subject: LIBC Error: Couldn't register process in shared memory! Hello, I tried to run some programs built with latest GCC (scummvm, wvgui latest etc.) on Warp 3 with FP#43 and all of them refused to run. All I got is subject message. I think this is very bad for members of OS/2 community who do not want to upgrade stable systems. Backward compatiblity always was strong side of OS/2, but it's broken now. Can this be fixed? I agree that program may abort when unsupported function (e.g. fork()) is called, but now not a single program compiled with GCC will not run on Warp 3. :-( These programs I've mentioned has never used fork(). Roman **= Email 5 ==========================** Date: Fri, 14 Oct 2005 23:36:18 -0700 (PDT) From: "Dave Yeo" Subject: Re: LIBC Error: Couldn't register process in shared memory! On Sat, 15 Oct 2005 08:26:52 +0400, Roman Trunov wrote: >Hello, > >I tried to run some programs built with latest GCC (scummvm, wvgui >latest etc.) on Warp 3 with FP#43 and all of them refused to run. All I >got is subject message. > >I think this is very bad for members of OS/2 community who do not want >to upgrade stable systems. Backward compatiblity always was strong side >of OS/2, but it's broken now. > >Can this be fixed? I agree that program may abort when unsupported >function (e.g. fork()) is called, but now not a single program compiled >with GCC will not run on Warp 3. :-( These programs I've mentioned has >never used fork(). Wonder if this from using the wrong TCPIP headers? Just need Paul or someone to build a version with TCPV40HDRS defined and see if it crashes on Warp 3. Dave **= Email 6 ==========================** Date: Sat, 15 Oct 2005 00:35:55 -0700 From: "Steven Levine" Subject: Re: Building Apache2 In <4350762A.1070906 at smedley.info>, on 10/15/05 at 12:53 PM, Paul Smedley said: >I've been playing with building Apache2 here with Innotek GCC over the >last couple of days. I can get it to build but not work :) >I know where the problem lies but it's stuff that I don't really >understand :( >apr_arch_os2calls.h declares: >extern int (*apr_os2_select)(int *, int, int, int, long); >extern int (*apr_os2_soclose)(int); >& >#define select apr_os2_select >#define soclose apr_os2_soclose >unistd.h from innotek gcc declares >int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); & >int TCPCALL soclose(int); >When building, make fails with: >In file included from sockopt.c:27: >U:/USR/include/unistd.h:534: error: `apr_os2_select' redeclared as >different kind of symbol >../../include/arch/os2/apr_arch_os2calls.h:23: error: previous >declaration of `apr_os2_select' >U:/USR/include/unistd.h:663: error: `apr_os2_soclose' redeclared as >different kind of symbol >../../include/arch/os2/apr_arch_os2calls.h:39: error: previous >declaration of `apr_os2_soclose' Without pulling a copy of the sources, my first suspect would be that some of the code is pulling in EMX definitions and the rest is not and thus the conflict. Also, the TCPV40HDRS define mentioned in another thread might apply. Regards, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.67 #10183 Warp4.something/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 7 ==========================** Date: Sat, 15 Oct 2005 10:21:59 +0100 From: John Poltorak Subject: Re: Building Apache2 On Sat, Oct 15, 2005 at 12:53:22PM +0930, Paul Smedley wrote: > Hi John, > > John Poltorak wrote: > > > > Has anyone ever managed to build Apache2 from source? I realise a > > pre-compiled version is available, but I'd prefer to build it myself > > using my own default options. > > > > Apache v1 built quite easily, but I've never had any success with v2. > > I've been playing with building Apache2 here with Innotek GCC over the > last couple of days. I can get it to build but not work :) What steps were involved in building it? And which version are you using? AFAIK Brian uses EMX to build it, so it should be buildable with a fairly basic toolset. My build ends at this point:- gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 -I../../include/arch/unix -c filesys.c -Zomf /ux2bs/workdir/httpd-2.0.52/srclib/apr/build/aplibtool --mode=compile gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 -I../../include/arch/unix -c mktemp.c && touch mktemp.lo In file included from ../unix/mktemp.c:82, from mktemp.c:1: g:\ux2bs\posix2\include\stdlib.h:363: arguments given to macro `arc4random' g:\ux2bs\posix2\include\stdlib.h:402: arguments given to macro `arc4random' gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 -I../../include/arch/unix -c mktemp.c -Zomf make[4]: *** [mktemp.lo] Error 1 > Cheers, > > Paul. > -- John **= Email 8 ==========================** Date: Sat, 15 Oct 2005 11:09:58 +0100 From: John Poltorak Subject: Re: Building Apache2 On Sat, Oct 15, 2005 at 12:35:55AM -0700, Steven Levine wrote: > Without pulling a copy of the sources, my first suspect would be that some > of the code is pulling in EMX definitions and the rest is not and thus the > conflict. > > Also, the TCPV40HDRS define mentioned in another thread might apply. If you are familiar with building Apache2, are you aware of any build instructions? v1.3 builds quite easily, but instructions are available. Never seen any for v2. > Regards, > > Steven > > -- > ---------------------------------------------------------------------- > "Steven Levine" MR2/ICE 2.67 #10183 Warp4.something/14.100c_W4 > www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) > ---------------------------------------------------------------------- > -- John **= Email 9 ==========================** Date: Sat, 15 Oct 2005 11:15:43 +0100 From: John Poltorak Subject: Re: OpenSSL v0.9.8 On Fri, Oct 14, 2005 at 11:13:59PM +0200, Stefan.Neis at t-online.de wrote: > Hi, > > > > Has anyone tried building OpenSSL v0.9.8? Any success? > > > > I built it with EMX -- I used it to build Pine 4.64. > > > > There were a few changes I had to make but I don't > > remember what they were > > off-hand and I won't have a chance to look it up until > > the weekend. > > IIRC, there was a problem found in one of the later 0.9.7 releases > and there was a patch submitted for it which for some reason doesn't > seem to have made it into OpenSSL's CVS. I googled for OpenSSL > and OS2 and found a patch for 0.9.7d (or later, don't really remember > right now) that both applied cleanly and made OpenSSL-0.9.8 compile. I remember that patch, and assumed it had been incorporated into the mainline code. I guess we need our official OS/2 maintainer to keep an eye on OpenSSL and ensure that each release stays buildable on OS/2. Any volunteers? > HTH, > Stefan -- John **= Email 10 ==========================** Date: Sat, 15 Oct 2005 19:53:07 +0930 From: Paul Smedley Subject: Re: Building Apache2 HI Steven, Steven Levine wrote: > In <4350762A.1070906 at smedley.info>, on 10/15/05 > Without pulling a copy of the sources, my first suspect would be that some > of the code is pulling in EMX definitions and the rest is not and thus the > conflict. Actually I just removed the #include for unistd.h and it builds now and generates a httpd.exe and httpd.dll, however won't load, it's putting an entry into the log files of: (OS 10047)Address family not supported by protocol family: make_sock: could not bind to address 192.168.0.2:81 [Sat Oct 15 19:52:19 2005] [alert] no listening sockets available, shutting down Need to do some debugging now :( > Also, the TCPV40HDRS define mentioned in another thread might apply. hmmm there's an idea - however it is compiling and linking so I don't think that's an issue.. Cheers, Paul. **= Email 11 ==========================** Date: Sat, 15 Oct 2005 20:25:35 +0000 (GMT) From: Nicholas Sheppard Subject: Re: OpenSSL v0.9.8 On Fri, 14 Oct 2005, Nicholas Sheppard wrote: > > I know I did have it working with a previous release, and I'd be > > interested to know what changes you made to get it to build. > > I'll look it up on the weekend. The way I have done it is a bit of hack and, from what Stefan says, there might be an easier way. In any case, this is what I did: After running os2\os2-emx.cmd, I've (a) added -DOPENSSL_BN_ASM_PART_WORDS to CFLAGS in OS2-EMX-DLL.MAK (or OS2-EMX.MAK for a static build, I suppose) (b) removed pqueue_print from os2/crypto.def Both of those files are generated by the os2-emx.cmd script so fixing it properly requires fixing the input to the script, which I haven't bothered to do. Nick S. **= Email 12 ==========================** Date: Sat, 15 Oct 2005 20:15:54 +0930 From: Paul Smedley Subject: Re: Building Apache2 Hi John, John Poltorak wrote: > On Sat, Oct 15, 2005 at 12:53:22PM +0930, Paul Smedley wrote: >> Hi John, >> >> John Poltorak wrote: >>> Has anyone ever managed to build Apache2 from source? I realise a >>> pre-compiled version is available, but I'd prefer to build it myself >>> using my own default options. >>> >>> Apache v1 built quite easily, but I've never had any success with v2. >> I've been playing with building Apache2 here with Innotek GCC over the >> last couple of days. I can get it to build but not work :) > > What steps were involved in building it? And which version are you using? I haven't taken very good notes - but I've tried to comment my source changes so that I can grep to find them :) I'm trying apache 2 2.0.55 with Innotek GCC 3.3.5 > My build ends at this point:- > > gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 > -I../../include/arch/unix -c filesys.c -Zomf > /ux2bs/workdir/httpd-2.0.52/srclib/apr/build/aplibtool --mode=compile gcc > -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 > -I../../include/arch/unix -c mktemp.c && touch mktemp.lo > In file included from ../unix/mktemp.c:82, > from mktemp.c:1: > g:\ux2bs\posix2\include\stdlib.h:363: arguments given to macro > `arc4random' > g:\ux2bs\posix2\include\stdlib.h:402: arguments given to macro > `arc4random' > gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I../../include -I../../include/arch/os2 > -I../../include/arch/unix -c mktemp.c -Zomf > make[4]: *** [mktemp.lo] Error 1 I saw something like this too - I just added a: #undef APR_HAVE_STDLIB_H And it built. Not sure what's included in posix2 stblib.h but emx stdlib.h is very basic compared with Innotek version.... Cheers, Paul. **= Email 13 ==========================** Date: Sat, 15 Oct 2005 13:03:42 +0100 From: John Poltorak Subject: Re: Building Apache2 On Sat, Oct 15, 2005 at 08:15:54PM +0930, Paul Smedley wrote: > Hi John, > > >>> Apache v1 built quite easily, but I've never had any success with v2. > >> I've been playing with building Apache2 here with Innotek GCC over the > >> last couple of days. I can get it to build but not work :) > > > > What steps were involved in building it? And which version are you using? > I haven't taken very good notes - but I've tried to comment my source > changes so that I can grep to find them :) The Apache2 archive contains os\os2 with numerous file in it including a Makefile.in and os2.h but I haven't seen any mention of them in the docs. Does configure detect it is running on OS/2 and automatically use these files or is some manual intervention required? > Cheers, > > Paul. -- John **= Email 14 ==========================** Date: Sat, 15 Oct 2005 14:05:38 +0100 From: John Poltorak Subject: Building tar v1.15 I've just built GNU tar v1.15 straight out of the box using UX2BS by including the following line in build.table:- tar;;ftp://ftp.gnu.org/pub/gnu/tar/tar-1.15.tar.gz;-ggdb;;;;. and running 'build tar'. Tar appears to build fine although I haven't tested it to any great extent, but I do have probelms with permissions when extracting files. Any suggestions as to what should be done to prevent this? -- John **= Email 15 ==========================** Date: Sat, 15 Oct 2005 22:42:45 +0930 From: Paul Smedley Subject: Re: Building Apache2 Hi John, John Poltorak wrote: > On Sat, Oct 15, 2005 at 08:15:54PM +0930, Paul Smedley wrote: >> Hi John, >> >>>>> Apache v1 built quite easily, but I've never had any success with v2. >>>> I've been playing with building Apache2 here with Innotek GCC over the >>>> last couple of days. I can get it to build but not work :) >>> What steps were involved in building it? And which version are you using? >> I haven't taken very good notes - but I've tried to comment my source >> changes so that I can grep to find them :) > > The Apache2 archive contains os\os2 with numerous file in it including a > Makefile.in and os2.h but I haven't seen any mention of them in the docs. > Does configure detect it is running on OS/2 and automatically use these > files or is some manual intervention required? It seems to detect OS/2 automatically. The reason you're seeing a unix/mktemp.c is that the OS/2 mktemp.c just redirects to the unix one :) Cheers, Paul. **= Email 16 ==========================** Date: Sat, 15 Oct 2005 14:35:33 +0100 From: John Poltorak Subject: Re: Building Apache2 On Sat, Oct 15, 2005 at 10:42:45PM +0930, Paul Smedley wrote: > > The Apache2 archive contains os\os2 with numerous file in it including a > > Makefile.in and os2.h but I haven't seen any mention of them in the docs. > > Does configure detect it is running on OS/2 and automatically use these > > files or is some manual intervention required? > > It seems to detect OS/2 automatically. The reason you're seeing a > unix/mktemp.c is that the OS/2 mktemp.c just redirects to the unix one :) I've just tried buildin v2.0.55 and this version fails with:- 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.7 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 Any ideas on what might be missing here? > > Cheers, > > Paul. -- John